Bug 80289 - mkfs.ext2 of former ntfs fails to remove ntfs identifer
mkfs.ext2 of former ntfs fails to remove ntfs identifer
Product: Red Hat Linux
Classification: Retired
Component: e2fsprogs (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Thomas Woerner
Jay Turner
Depends On:
  Show dependency treegraph
Reported: 2002-12-23 22:51 EST by Timothy Burt
Modified: 2015-01-07 19:02 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-07 09:59:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Timothy Burt 2002-12-23 22:51:43 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)

Description of problem:

repartitioning and reformatting a drive that had a single ntfs partition 
results in a ext2 or ext3 partition that cannot be mounted.

When attempting to mount the partition, mount returns with:

mount: fs type ntfs not supported by kernel

Somehow, a magic number or other identifier is left unmolested by the mkfs 
utility.  This results in the erroneous identification of the filesystem as 
being ntfs.

e2fsck correctly identifies the partition as ext2.

An octal dump (od -c) of the first 16 bytes of the partition show:

   ë   R 220   N   T   F   S                  \0 002  \b  \0  \0

Version-Release number of selected component (if applicable):

How reproducible:
Didn't try.  I have only one ntfs disk that needs repartitioning.

Additional info:

Whether mount should ignore the NTFS identifier or mkfs should remove or zero 
the identifier is not known.  I think that mkfs should do more.

I don't know of a workaround.
Comment 1 Florian La Roche 2003-02-14 08:52:38 EST
The kernel should not look at the first sector to autodetect a NTFS


Florian La Roche

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