bugmtools - Bugs: bug #30750, [mlabel] restores fat32...


bug #30750: [mlabel] restores fat32 "allocation units" to 0

Submitted by:  Ray Rashif <schivmeister>
Submitted on:  Wed 11 Aug 2010 03:55:11 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 11 Aug 2010 03:55:11 PM UTC, original submission:


Distribution: Arch Linux
Package: mtools 4.0.13 *

  • Recompiled from source for this report


When labelling a FAT32 partition in a multi-partition flash-based disk, created via fdisk and formatted via mkdosfs or any partitioning tool (GUI or otherwise), the allocation unit size reverts to 0 bytes.


Create and format a USB device into 1 primary FAT32 and 1 primary ext2 partition.

In this case I used the program "partitionmanager", and as such am able to tell the size of the allocation from the space used post-format. For eg. a 16KB allocation would use up 16KB of space, and not 0. This program cannot label a FAT32 partition, so I had to rely on mlabel. One can also plug the USB device into a Microsoft Windows system to verify the allocation unit size.

Assuming the FAT32 partition is /dev/sdb1 and has an allocation of 16KB, issue the command: mlabel -i /dev/sdb1 ::NEWLABEL

Verify that the used space is now 0 (or 0.0bytes).

One can also try to reproduce it with a single-partition FAT32 device, but since I have not tested it this way I cannot confirm the issue would still stand.

Ray Rashif <schivmeister>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by schivmeister (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3