FS#3497 - HAL tries to mount vfat USB drive as JFS

Attached to Project: Arch Linux
Opened by Dan Gray (deggy) - Wednesday, 16 November 2005, 20:46 GMT
Last edited by Dale Blount (dale) - Wednesday, 16 November 2005, 20:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

As of hal-0.5.4-2 and hal-0.5.5 the system will attempt to mount my USB drive as a JFS volume, rather than a VFAT volume. hal-0.5.4-1 exhibits the corrent behaviour and a downgrade fixes the problem.
This task depends upon

Closed by  arjan timmerman (blaasvis)
Friday, 12 May 2006, 07:23 GMT
Reason for closing:  None
Comment by Jan de Groot (JGC) - Wednesday, 16 November 2005, 22:36 GMT
That USB disk, does it have partitions, or is it a raw device? When I try to mount a CD drive with no CD in it, hal wants to mount it as JFS too. In this case, hal tries to mount the device instead of the volume.
Comment by Jan de Groot (JGC) - Wednesday, 16 November 2005, 22:57 GMT
It's actually a bug in pmount. pmount has a limited set of supported filesystems (reiser4 excluded for example). It loops through the struct of supported filesystems and at a certain point it uses the matching filesystem, which happens to be jfs on failure. After that a fail-over vfat thingy is tried, which is never reached because the jfs mount fails.

I'll dive into the pmount code tomorrow, doesn't look that difficult to fix.
Comment by Dan Gray (deggy) - Thursday, 17 November 2005, 05:42 GMT
That sounds pretty close to what I suspected and certainly matches the behaviour I see. Sorry I didn't send any kernel ouput with the bug report, was very late!
Comment by Dan Gray (deggy) - Saturday, 19 November 2005, 07:41 GMT
Here's the output from the syslogs from a mount...

-----------------------------------------
UDF-fs: No VRS found
Unable to identify CD-ROM format.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.
NTFS driver 2.1.23 [Flags: R/W MODULE].
NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume.
HFS+-fs: unable to find HFS+ superblock
VFS: Can't find a HFS filesystem on dev sda.
VFS: Can't find ext3 filesystem on dev sda.
VFS: Can't find an ext2 filesystem on dev sda.
ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on sda
JFS: nTxBlock = 3764, nTxLock = 30118
---------------------------

I've compiled the jfs kernel module and so at this point gnome returns errors for a bad jfs filesystem on the appropriate SCSI device.

Dan

Comment by Dan Gray (deggy) - Saturday, 19 November 2005, 08:01 GMT
Here's the output after a downgrade to hal-0.5.4-1 - mount's work fine and package seems to work OK with the latest gnome-vfs (had to -d the HAL downgrade).

----------------
UDF-fs: No VRS found
Unable to identify CD-ROM format.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda.
NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume.
HFS+-fs: unable to find HFS+ superblock
VFS: Can't find a HFS filesystem on dev sda.
VFS: Can't find ext3 filesystem on dev sda.
VFS: Can't find an ext2 filesystem on dev sda.
ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find reiserfs on sda
--------------------
Comment by Dan Gray (deggy) - Sunday, 27 November 2005, 14:45 GMT
Jan,
Did you get anywhere with this? I've noticed a forum thread on pmount/hal issues but it doesn't seem to specificly address my problem.

Comment by Dan Gray (deggy) - Sunday, 27 November 2005, 15:00 GMT
Jan,
Please ignore previous. I checked in /testing and and upgraded to pmount 0.9.6-1 from there. Then I reupgraded to HAL 0.5.5.1-2 and added udev 071-4 from /testing for good measure. Everything seems to work fine again now.

Dan.
Comment by Luke Hoersten (lhoerste) - Sunday, 15 January 2006, 05:58 GMT
I'm running pmount-0.9.6-2 hal-0.5.5.1-5 and udev-079-1 and I still have this problem. I'm unable to mount almost anything because of it.
Comment by arjan timmerman (blaasvis) - Sunday, 19 March 2006, 15:52 GMT
try dbus + hal from testing.

Loading...