LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Unable to mount usb device manually (https://www.linuxquestions.org/questions/debian-26/unable-to-mount-usb-device-manually-740873/)

randomx 07-17-2009 05:19 PM

Unable to mount usb device manually
 
Debian Lenny, kernel 2.6.26-2-686

I'm trying to manually mount my digital camera.
Picasa recognizes the device and imports pictures. However, I'd like to access my device manually as there are small video files I'd like to retrieve. It's for a fujifilm Z33 WP digicam.

Code:

$ lsusb
Bus 005 Device 010: ID 04cb:01f5 Fuji Photo Film Co., Ltd
Bus 005 Device 004: ID 046d:c012 Logitech, Inc. Mouseman Dual Optical
Bus 005 Device 002: ID 413c:0058 Dell Computer Corp. Port Replicator
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 413c:8103 Dell Computer Corp. Wireless 350 Bluetooth
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Code:

$dmesg | grep -i USB
[  95.476182] usb 5-7: new high speed USB device using ehci_hcd and address 5
[  96.134327] usb 5-7: configuration #1 chosen from 1 choice
[  96.134892] usb 5-7: New USB device found, idVendor=04cb, idProduct=01f5
[  96.134904] usb 5-7: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[  96.134910] usb 5-7: Product: Digital Camera
[  96.134915] usb 5-7: SerialNumber: 123456356456456456
[  449.051668] usb 5-7: USB disconnect, address 5
[  458.156053] usb 5-7: new high speed USB device using ehci_hcd and address 6
[..]

commands "dh -h", "fdisk -l", "less /etc/fstab" aren't particularly useful as they don't show the extra usb device in question.

In Picasa...where it says "Select Device", it finds
Code:

USB PTP Class Camera@usb:
and

Code:

USB PTP Class Camera@usb:005,010
selecting either one of them can access the camera directly.

How can I pinpoint my device and mount it using the regular mount /mnt/point/ /path/to/my/cam?

frankbell 07-17-2009 06:44 PM

Try this.

As root. Run dmesg. See how the kernel is seeing the Fuji (probably as a SCSI drive).

Create a mount point in /mnt or /media. Then add the whole thing to your f0stab.

Example (from memory--I may have missed a bit here and there, but it should work in principle. The webpage where I learned about this four years ago seems to have gone to the Big 404 in the Sky).

Code:

/dev/sdc  /mnt/fuji  auto  rw,user  0    0
Then you can mount it with "mount /mnt/fuji" (to continue the example) or create a symlink ("ln -s /mnt/fuji") into your home directory and just use "mount fuji."

I don't use it with my current system, but this worked great before Linux plug and play caught up with the current generation of USB drives. It also worked for my thumb drive and several other USB thingees, like my external USB DVD/CD burner and USB floopy drive.

randomx 07-18-2009 01:04 AM

Yes, the dmesg command does not give anything else besides what I wrote earlier.

Code:

#dmesg
[..]
[ 3836.268361] usb 1-2.4.4: new full speed USB device using uhci_hcd and address 6
[ 3836.404299] usb 1-2.4.4: configuration #1 chosen from 1 choice
[ 3836.411509] usb 1-2.4.4: New USB device found, idVendor=04cb, idProduct=01f5
[ 3836.411521] usb 1-2.4.4: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[ 3836.411528] usb 1-2.4.4: Product: Digital Camera
[ 3836.411533] usb 1-2.4.4: SerialNumber: 123456356456456456
[..]

and also...
Code:

#tail /var/log/messages
[ 3836.268361] usb 1-2.4.4: new full speed USB device using uhci_hcd and address 6
[ 3836.404299] usb 1-2.4.4: configuration #1 chosen from 1 choice
[ 3836.411509] usb 1-2.4.4: New USB device found, idVendor=04cb, idProduct=01f5
[ 3836.411521] usb 1-2.4.4: New USB device strings: Mfr=0, Product=2, SerialNumber=3
[ 3836.411528] usb 1-2.4.4: Product: Digital Camera
[ 3836.411533] usb 1-2.4.4: SerialNumber: 123456356456456456

I also tried "modprobe -r uhci_hcd" and "modprobe uhci_hcd" to see the system's reaction to it. Nothing changed.

I also triggered Picasa, selected the device and opened a terminal to see the data flow...no indication as to where it is mounting the camera or if it's accessing the device directly through /dev/xxx (no joy on /dev/sdc by the way)

Any other thoughts?

randomx 07-18-2009 02:36 PM

I haven't been able to access the device directly (mount it manually or automount) *BUT* a quick solution to retrieve my video files and pictures was to use gtkam.

I was hesitant to even try it in the beginning even before posting because of a bad experience I had before with a diff camera. I'm sure gphoto2 and others may have allowed me to get my raw pix and video files but I didn't try those.

Anyway...thanks for helping; gtkam did it for me.


All times are GMT -5. The time now is 05:10 PM.