mkdosfs rounds reserved sectors to cluster size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dosfstools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dosfstools
Some embedded devices require a FAT file-system with one, and only one reserved sector.
Specifically this is documented at http://
mkdosfs.c lines 1060 and 1061 contains
/* Adjust the reserved number of sectors for alignment */
reserved_
This rounds the number of reserved sectors up to the cluster size, preventing the creation of only one reserved sector.
Removing these two lines fixes the problem and returns the default number of reserved sectors to 1 for FAT12/16 and 32 for FAT32.
Ubuntu 10.10
dosfstools:
Installed: 3.0.9-1
Candidate: 3.0.9-1
Version table:
*** 3.0.9-1 0
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: dosfstools 3.0.9-1 [modified: sbin/mkdosfs]
ProcVersionSign
Uname: Linux 2.6.35-28-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Thu Mar 31 09:17:27 2011
ProcEnviron:
SHELL=/bin/bash
LANG=en_ZA.utf8
SourcePackage: dosfstools
tags: | added: patch |
Status changed to 'Confirmed' because the bug affects multiple users.