Set the Volume Label for the FDUBCD floppy image:
The mlabel (mtools suite) command adds a volume label to a disk. Its syntax is:
Code:
mlabel [-vcsn] [-N serial] drive:[new_label]
Mlabel supports the following options:
c Clears an existing label, without prompting the user
s Shows the existing label, without prompting the user.
n Assigns a new (random) serial number to the disk
N serial
Sets the supplied serial number. The serial number should be
supplied as an 8 digit hexadecimal number, without spaces
http://www.gnu.org/software/mtools/manu ... html#SEC57Generate a random serial number (only needs to be done once). Probably there is already one set in the current image, but it doesn't hurt.
Code:
mlabel -i fdubcd.img -n ::
Everytime the FDUBCD floppy version is increased, update the Volume Label.
Make the Volume Label just 11 characters long (pad with spaces): "FDUBCD141 "
For some reason mlabel doesn't pad the Volume Label with spaces, like it should do (Ubuntu includes mtools v4.0.12):
Code:
mlabel -i fdubcd.img ::"FDUBCD141 "
This issue seems to be fixed in mtools v4.0.14 and higher, so for those versions, you can use:
Code:
mlabel -i fdubcd.img ::FDUBCD14
For the current image, the Volume Label isn't set correctly.
Quote:
This 11 byte long string should match the volume label entry in the root directory. If no such entry is available this field should contain the string 'NO NAME ' (11 bytes long string). When updating the volume label, both, this field and the entry in the root directory should be updated.
http://www.maverick-os.dk/FileSystemFor ... ystem.htmlIn the FDUBCD floppy image the Volume Label field in the boot sector is empty (11 spaces), while the Volume Label in the root directoy is NwDsk340.
Code:
mlabel -i fdubcd.img -s ::
Volume label is NwDsk340
_________________
Download
Ultimate Boot CD v5.0:
http://www.ultimatebootcd.com/download.htmlUse
Parted Magic for handling all partitioning task:
http://partedmagic.com/