Red Hat Bugzilla – Bug 70526
incorrect detection of filesystem type on diskette
Last modified: 2013-07-03 09:05:10 EDT
Description of Problem:
It is possible to have a the filesystem type of a diskette
be detected as vfat when the last filesystem put on the
diskette was ext2.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mformat a:
2. mke2fs /dev/fd0
3. mount /mnt/floppy
floppy mounted as vfat.
floppy mounted as ext2.
The problem is that e2fsprogs doesn't zero out the first block of the device in mke2fs,
leaving the FAT info there, and mount happens to check for FAT before ext2. It seems that
the right place to fix it is in e2fsprogs, because leaving the magic stuff there can cause
problems for other filesystems as well.
I think this block is kept as it on purpose to leave bootup support in
Florian La Roche