Description of problem: FAT filesystems can contain volume labels in 2 different places: a reserved location in the boot sector, and a special directory entry in the root directory. Here's what various libraries and commands do: FreeDOS label: only gets/sets directory entry libvolume_id (used by udev before v142): gets directory entry if present, otherwise boot sector libblkid (part of util-linux-ng; previously e2fsprogs; used by many commands): gets directory entry if present, otherwise boot sector mkdosfs -n: sets directory entry and boot sector dosfslabel: only sets boot sector dosfslabel is clearly the odd one out, not even consistent with mkdosfs from the same package. It should look for a directory entry with the volume label and update that if present, as well as updating the boot sector. Version-Release number of selected component (if applicable): 3.0.0-2 How reproducible: always Steps to Reproduce: 1. dd bs=512 count=2880 </dev/zero >foo 2880+0 records in 2880+0 records out 1474560 bytes (1.5 MB) copied, 0.0121247 s, 122 MB/s 2. mkdosfs -n foo foo mkdosfs 3.0.0 (28 Sep 2008) 3. dosfslabel foo bar 4. blkid foo foo: SEC_TYPE="msdos" LABEL="foo" UUID="B63E-8D7A" TYPE="vfat" Actual results: foo: SEC_TYPE="msdos" LABEL="foo" UUID="B63E-8D7A" TYPE="vfat" Expected results: foo: SEC_TYPE="msdos" LABEL="bar" UUID="B63E-8D7A" TYPE="vfat" Additional info:
Is blkid looking at the right place? https://bugzilla.redhat.com/show_bug.cgi?id=533552
(In reply to comment #1) > Is blkid looking at the right place? > > https://bugzilla.redhat.com/show_bug.cgi?id=533552 blkid may also be broken in some way, but the intended behaviour of the code is as described in comment 0. I must admit I didn't test any version of Windows.
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
dosfslabel has the same behaviour in 3.0.1-6.fc12.
Created attachment 370106 [details] make dosfslabel write volume label if present This patch applies to 3.0.1-6.fc12 and has been tested on FAT12, FAT16 and FAT32 filesystems created using mkdosfs.
Hi, applied the patch upstream, will be present in 3.0.7 in a few hours. Regards, Daniel
Fixed in dosfstools-3.0.9-2.fc14 in rawhide.