Bug 145834 - hal makes fstab 'vfat' for /media/usbdisk
Summary: hal makes fstab 'vfat' for /media/usbdisk
Alias: None
Product: Fedora
Classification: Fedora
Component: hal   
(Show other bugs)
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Zeuthen
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-01-21 23:46 UTC by Joshua Ferraro
Modified: 2013-03-06 03:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-21 18:17:33 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Joshua Ferraro 2005-01-21 23:46:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0 StumbleUpon/1.999

Description of problem:
hal has /media/usbdisk in fstab set to 'vfat' rather than 'auto'. 
using a card with an ext2 filesystem hal mounted it as vfat but when
fstab was changed to 'auto' it mounted correctly

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

How reproducible:

Steps to Reproduce:
1.insert a CF card with ext2 filesystem into a usb cardreader
2. mount /media/usbdisk
3. run 'mount' to see that it has mounted it as vfat rather than ext2

Additional info:

Comment 1 David Zeuthen 2005-01-24 22:43:36 UTC
Please give the output of

 dd if=/dev/sda1 bs=512 count=1 |hexdump -C

where you should replace /dev/sda1 with the device file of the CF
card. You need to do this as root.

Comment 2 David Zeuthen 2005-03-21 18:17:33 UTC
This bug probably stems from the fact that the first sector of your partition
with an ext2 filesystem contains a VFAT signature (ext2 signatures start at
offset 0x0400 IIRC) - so it's probably a bug with your disk formatting software. 

You can fix this by doing a 'dd if=/dev/zero of=/dev/sda1 bs=512 count=1' with
the usual disclaimers; if it breaks you get to keep both pieces etc.

Feel free to reopen this bug if there isn't a VFAT signature in the first sector
(what I asked for in comment 1).

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