Mounting of USB storage fails

Bug #32182 reported by Tapio Vaattanen
12
Affects Status Importance Assigned to Milestone
HAL
New
Undecided
Unassigned
hal (Ubuntu)
Breezy
Invalid
Medium
Unassigned
linux-source-2.6.15 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Impossible to connect digital camera acting as USB mass storage to Ubuntu 5.10

I have HP PhotoSmart M307 digital camera which is configured to connect to computer as USB disk drive. This works perfectly with SuSE 9.3 and FC3.

After I installed Ubuntu 5.10 over FC3 on the same machine, I haven't been able to connect the camera to the computer anymore. It still works with my other computer running SuSE 9.3. I'm not able to mount the USB drive automaticly nor manually through mount command. When camera is connected, "sudo fdisk -l" hangs.

I'm not sure this is bug of hal, but since I'm not able to mount the USB storage even manually, it shouldn't be problem of gvm. I noticed that there are similar bug reports, but in those cases manual mount has worked or installing libpmount0.0 or some other package has fixed the problem. I've tried those fixes and work arounds with no luck.

Output of uname -a

Linux metical 2.6.12-10-386 #1 Mon Feb 13 12:13:15 UTC 2006 i686 GNU/Linux

Output of id:

uid=1000(hannele) gid=1000(hannele) ryhmät=4(adm),20(dialout),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),104(lpadmin),105(scanner),106(admin),1000(hannele)

output of id hal:

uid=111(hal) gid=111(hal) ryhmät=111(hal),24(cdrom),25(floppy),46(plugdev)

Revision history for this message
Tapio Vaattanen (elsonico) wrote : gvm.log

Output of gnome-volume-manager 2>&1 | tee gvm.log

Revision history for this message
Tapio Vaattanen (elsonico) wrote : lshal.txt

Output of lshal > lshal.txt

Revision history for this message
Tapio Vaattanen (elsonico) wrote : devices.txt

Output of ls -l /dev/sd* > devices.txt

Revision history for this message
Tapio Vaattanen (elsonico) wrote : dmesg.txt

Ouput of dmesg

description: updated
summary: + Impossible to connect digital camera acting as USB mass storage to
+ Ubuntu 5.10
description: updated
Revision history for this message
Tapio Vaattanen (elsonico) wrote :

I tested the camera (HP M307) with Dapper live CD with same results. The USB HD does not mount automaticly nor it isn't possible to mount it manually. "fdisk -l" hangs.

Same behaviour on two different laptops.

Revision history for this message
Martin Pitt (pitti) wrote :

[4320926.919000] sda: assuming drive cache: write through
[4320926.919000] /dev/scsi/host3/bus0/target0/lun0: unknown partition table

This explains it; the kernel seems to be unable to detect the partition table on the camera. So /dev/sda exists, but no partition devices.

Changed in hal:
assignee: nobody → ben-collins
Revision history for this message
Martin Pitt (pitti) wrote :

rejecing 'hal upstream' task, it's not hal's fault

Changed in hal:
status: Unconfirmed → Rejected
Revision history for this message
Martin Pitt (pitti) wrote :

rejecting hal/breezy task

Changed in hal:
status: Unconfirmed → Rejected
Revision history for this message
Tapio Vaattanen (elsonico) wrote :

When connecting the same camera to SuSE 9.3 kernel doesn't detect the partition table either(?). Ouput of dmesg on SuSE:

usb 2-1: new full speed USB device using uhci_hcd and address 2
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
  Vendor: HP Model: PhotoSmart M307 Rev: No.1
  Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 1983752 512-byte hdwr sectors (1016 MB)
sda: Write Protect is off
sda: Mode Sense: 87 00 00 08
sda: assuming drive cache: write through
SCSI device sda: 1983752 512-byte hdwr sectors (1016 MB)
sda: Write Protect is off
sda: Mode Sense: 87 00 00 08
sda: assuming drive cache: write through
 sda: unknown partition table
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0, type 0
usb-storage: device scan complete

It still does mount properly both automated and manually by giving command "mount /dev/sda /mnt/".

I also tested Ubuntu 5.10 with self compiled vanilla kernel 2.6.15 with no better luck. I used Ubuntu's config though and made only oldconfig ("make oldconfig)" before compiling.

Revision history for this message
Martin Pitt (pitti) wrote :

Aah, I got confused, sorry. It seems that the camera does not have a partition table in the first place, but just has a file system on the raw device /dev/sda. Then it is indeed a hal problem.

So, hal incorrectly detects 'block.is_volume = false (bool)', which should be true for you. Can you please generate a full hal debug output, as described on the second half of http://wiki.ubuntu.com/DebuggingRemovableDevices ? This could help me to find out the problem.

Thank you!

Changed in linux-source-2.6.15:
assignee: ben-collins → pitti
status: Unconfirmed → Needs Info
Revision history for this message
Tapio Vaattanen (elsonico) wrote :

I attached hal.log.

Revision history for this message
Tapio Vaattanen (elsonico) wrote : hal.log

Output of sudo hald --daemon=no --verbose=yes 2>&1 | tee hal.log

Revision history for this message
Jürgen (j-w-ott) wrote :

can you see anything in /proc/bus/usb ?
I lost my usbfs merging from breezy to dapper

Revision history for this message
Martin Pitt (pitti) wrote :

@Juergen: /proc/bus/usb is deprecated in Dapper; this is now under udev's control in /dev/bus/usb.

Revision history for this message
bmoore (moore-brandon) wrote :

the only way i can get my usb storage devices to work is by running this once during each session:

sudo modprobe -r ehci_hcd

Revision history for this message
Martin Pitt (pitti) wrote :

> the only way i can get my usb storage devices to work is by running this once during each session:
> sudo modprobe -r ehci_hcd

Ah, that sounds familiar. Failures of the USB 2.0 driver are unfortunately very common (see bugs 15563, 16541, 17168, 41229, 27889). I'm closing this one as duplicate.

Changed in hal:
assignee: pitti → nobody
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.