Bug 136966 - fstab-sync incorrectly types ext3 partition as ntfs
Summary: fstab-sync incorrectly types ext3 partition as ntfs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-24 06:02 UTC by Ian Burrell
Modified: 2013-03-06 03:41 UTC (History)
1 user (show)

Fixed In Version: 0.4.0-8
Clone Of:
Environment:
Last Closed: 2004-10-26 20:05:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
hald verbose output (117.86 KB, text/plain)
2004-10-26 04:15 UTC, Ian Burrell
no flags Details
lshal output (44.84 KB, text/plain)
2004-10-26 04:15 UTC, Ian Burrell
no flags Details
fstab (1.48 KB, text/plain)
2004-10-26 04:21 UTC, Ian Burrell
no flags Details

Description Ian Burrell 2004-10-24 06:02:31 UTC
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):

hal-0.4.0-5
kernel-2.6.9-1.640

Steps to Reproduce:
1. Remove automatic entries from /etc/fstab
2. Reboot
3. Attempt to mount partition
  
Actual results:

mount fails with ntfs not supported.  But partition is ext3 and should
be mountable.

/etc/fstab is incorrect:

/dev/hdb1               /media/idedisk5         ntfs   
pamconsole,exec,noauto,managed 0 0

Expected results:

Type should be ext3 instead of ntfs.

Additional info:

The fstype is being reported as ntfs by the lshal.  The partition
table type is the correct one.

Comment 1 David Zeuthen 2004-10-24 22:16:32 UTC
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
see http://freedesktop.org/Software/HalTraces

Thanks,
David

Comment 2 Ian Burrell 2004-10-26 04:15:17 UTC
Created attachment 105773 [details]
hald verbose output

Comment 3 Ian Burrell 2004-10-26 04:15:46 UTC
Created attachment 105774 [details]
lshal output

Comment 4 Ian Burrell 2004-10-26 04:21:55 UTC
Created attachment 105775 [details]
fstab

/dev/hdb1 is the partition that is being misidentified as ntfs.

Comment 5 Ian Burrell 2004-10-26 04:59:26 UTC
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.


Comment 6 David Zeuthen 2004-10-26 20:05:01 UTC
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

 http://people.redhat.com/davidz/dist/

and will hopefully make FC3.


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