Red Hat Bugzilla – Bug 136966
fstab-sync incorrectly types ext3 partition as ntfs
Last modified: 2013-03-05 22:41:50 EST
Description of problem:
fstab-sync is adding an ext3 partition as type ntfs. It correctly
detects other ext3 partitions as ext3, and ntfs partitions as ntfs.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Remove automatic entries from /etc/fstab
3. Attempt to mount partition
mount fails with ntfs not supported. But partition is ext3 and should
/etc/fstab is incorrect:
/dev/hdb1 /media/idedisk5 ntfs
pamconsole,exec,noauto,managed 0 0
Type should be ext3 instead of ntfs.
The fstype is being reported as ntfs by the lshal. The partition
table type is the correct one.
Hi, thanks for reporting this - please, as root, shutdown the hal
daemon (service haldaemon stop) and include the output of 'hald
--daemon=no --verbose=yes' in this bug. For more information please
Created attachment 105773 [details]
hald verbose output
Created attachment 105774 [details]
Created attachment 105775 [details]
/dev/hdb1 is the partition that is being misidentified as ntfs.
I am pretty sure that this partition was ntfs before it was
reformatted as ext3. I looked at the first sector and it is very
similar to the first sector of the real NTFS partitions. My guess is
that making the ext3 filesystem did not overwrite the first sector.
mount is also detecting this partition as ntfs.
Clearing the first sector causes hald to detect it as ext3.
I've flipped the probing order in hal to detect ext3 before ntfs; this
should fix the issue. This fix is in hal-0.4.0-8 available from here
and will hopefully make FC3.