After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 576616 - Cannot set label of fat32 partition with dosfstools
Cannot set label of fat32 partition with dosfstools
Status: RESOLVED NOTABUG
Product: gparted
Classification: Other
Component: application
0.4.3
Other All
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2009-03-24 21:32 UTC by Orion Poplawski
Modified: 2013-05-16 11:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Orion Poplawski 2009-03-24 21:32:40 UTC
Please describe the problem:
Trying to use gparted to set the label of a fat32 partition on a USB drive.  The "Label" option is greyed out.

Model: SanDisk U3 Contour (scsi)
Disk /dev/sdb: 8213MB           
Sector size (logical/physical): 512B/512B
Partition Table: msdos                   

Number  Start   End     Size    Type     File system  Flags
 1      29.7kB  8201MB  8201MB  primary  fat32        lba  


System is running Fedora 10.  I'm running the KDE desktop.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Curtis Gedak 2009-03-24 22:28:13 UTC
To label a FAT16 or FAT32 file system, you need to have the mtools package installed.

See http://gparted.sourceforge.net/features.php

Do you have mtools installed?
Comment 2 Orion Poplawski 2009-03-24 22:30:31 UTC
Ah, that's what it needs.  My system did have dosfstools so I guess I just assumed it would use that.
Comment 3 Curtis Gedak 2009-03-24 22:33:22 UTC
When I last looked, dosfstools did not provide the ability to label an already existing fat16 or fat32 partition.

If this has changed please let me know and I can investigate changing GParted to use dosfstools for labelling instead of mtools.

Closing this bug and marking it with a resolution of "NOTABUG".
Comment 4 Orion Poplawski 2009-03-24 22:45:37 UTC
dosfstools now has dosfslabel as of 3.0.0.  Seems like gparted could make use of either if present.
Comment 5 Curtis Gedak 2009-03-25 16:20:17 UTC
Thank you Orion for the information about dosfslabel.

The command dosfslabel will be considered for use in a future release of GParted.  This would remove the dependency for mtools, which is used only for labelling fat16 and fat32 partitions.
Comment 6 Curtis Gedak 2009-10-04 17:50:12 UTC
With dosfstools v3.0.5 there appears to be a problem with the dosfslabel command.  Specifically, dosfslabel only changes the volume label in one of two known locations in the FAT file system.

See the following bug report for more details:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506786

RedHat also has a bug report on this problem:
https://bugzilla.redhat.com/show_bug.cgi?id=503228

This problem needs to be fixed before considering using the dosfslabel command in Gparted.
Comment 7 Curtis Gedak 2010-02-27 18:12:24 UTC
It would appear that the dosfslabel command was fixed with dosfstools-3.0.7:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559985
Comment 8 Curtis Gedak 2010-12-02 17:35:09 UTC
Forum user mwk has written a detailed post regarding FAT16/32 file system volume labels, and how these work with Windows, mlabel, and dosfslabel:

   Partition Label: only capital letters?
   http://gparted-forum.surf4.info/viewtopic.php?pid=24646#p24646
Comment 9 Curtis Gedak 2010-12-07 02:14:10 UTC
Forum user mwk has added another post to the previous post in comment #8.  It appears that lowercase volume labels do cause problems with the DOS operating system:

   MS-DOS: Unable to Change Volume Label
   http://support.microsoft.com/kb/71715/en-us
Comment 10 Mike Fleetwood 2013-05-16 11:38:52 UTC
I think we should close this RESOLVED/NOTABUG.  Initial question of
can't label fat32 was resolved by installing the required mtools.
Following investigation concluded dosfslabel has too many issues to be
used to label fat file systems.