Bug 70526 - incorrect detection of filesystem type on diskette
Summary: incorrect detection of filesystem type on diskette
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: e2fsprogs
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-02 05:21 UTC by Richard Keech
Modified: 2013-07-03 13:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-07 13:47:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard Keech 2002-08-02 05:21:56 UTC
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):

mount-2.11n-12.7.3, kernel-2.4.18-5


How Reproducible:

every time.


Steps to Reproduce:

1. mformat a:

2. mke2fs /dev/fd0

3. mount /mnt/floppy


Actual Results:

floppy mounted as vfat.


Expected Results:

floppy mounted as ext2.


Additional Information:

Comment 1 Elliot Lee 2002-08-07 21:03:52 UTC
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.

Comment 2 Florian La Roche 2002-08-21 19:26:47 UTC
I think this block is kept as it on purpose to leave bootup support in
place.

greetings,

Florian La Roche



Note You need to log in before you can comment on or make changes to this bug.