LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-30-2002, 02:32 PM   #1
symphony_in_c
LQ Newbie
 
Registered: Jul 2002
Posts: 3

Rep: Reputation: 0
Mount freezing when mounting USB camera


Hi. When I try to mount my USB digital camera (mount -t vfat /dev/sda1 /mnt/camera), mount freezes.

I have the camera (HP Photosmart 318) set to disk drive mode, and have it connected and turned on before I start linux. I have all the kernle modules needed compiled into the kernel.

I get the following output form dmesg:

uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 10 for device 00:07.2
PCI: Sharing IRQ 10 with 00:07.3
PCI: Sharing IRQ 10 with 00:10.0
PCI: Sharing IRQ 10 with 00:10.1
uhci.c: USB UHCI at I/O 0xe400, IRQ 10
usb.c: new USB bus registered, assigned bus number 1
...

hub.c: USB new device connect on bus1/1, assigned device number 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: HP Model: PhotoSmart 318 Rev: 100
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 14721 512-byte hdwr sectors (8 MB)


Is the "PCI: Sharing IRQ 10" likely to be the problem? Otherwise I have no idea what is stopping the camera from mounting.

Can anybody help?
 
Old 08-30-2002, 11:11 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well, actually to me it looks like it's actually putting the device at scsi0 rather than sda1. That's my interpretation of this line anyway:
Quote:
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Try mounting it using that line instead, see if that works out.

Cool
 
Old 08-31-2002, 02:20 AM   #3
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
It looks like if it's trying to use a SCSI emulator to access an USB interface....what's up with that...hehe, can't USB just be USB...since people think USB is so "cool, and convenient". I tell you guys, USB is crap....
 
Old 08-31-2002, 02:45 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah I know, you really hate USB. I guess it would just "assume" the position of the first available block device, in this case, I guess sc comes before sd so it took the scsi emulation instead.

Again, I don't know for sure, but that's what it would look like.
 
Old 08-31-2002, 02:43 PM   #5
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
so, how would you make the USB interface take the position of the USB device, and to skip the SCSI device?,
 
Old 09-01-2002, 02:38 PM   #6
symphony_in_c
LQ Newbie
 
Registered: Jul 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the help, but as far as I can tell from a few Google searches, /dev/scsi0 only exists if you're using devfs. Besides, I didn't think the name was relevant, only the major/minor numbers?

It just seems odd that the camera appears perfectly in the /proc filesystem, but won't mount.
 
Old 09-01-2002, 04:45 PM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
scsi1 is just the name given to the chain, the first drive is /dev/sda1, he's got that right, and USB mass storage is reliant on treating a USB device as a scsi device in order to make disk accesses to it.

In /proc/scsi/usb-storage-0, does it appear as a storage device? (prior to mounting?).

Also, the best way to debug this may be to recompile your kernel with "verbose USB debugging" on, as well as verbose SCSI error messages. It makes for a horking lot of dmesg spam, but at least you can get an idea where the error is coming from.

Also, while you're at it, I'm assuming a current release of X-distro, they've all standardized on 2.4.18 for now, so you might want to d/l 2.4.19 and give that a whirl, a lot of improvements were made in USB in the 6 months between those 2 kernels.

Luck,

Finegan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a USB digital camera? dsschanze Linux - Hardware 11 09-03-2007 12:26 PM
Mounting USB camera with 2.6.1 kernel Azmeen Linux - Hardware 18 03-09-2005 03:54 PM
USB Camera Will Only Mount Once Glock Shooter Linux - Hardware 9 02-05-2005 08:26 AM
Mounting a digital camera as a USB device??? Serenity Linux - Hardware 13 03-17-2004 01:20 AM
Mounting USB Camera Arkas Linux - Hardware 1 08-20-2003 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration