You are not logged in.

#1 2008-01-06 21:37:54

raroman
Member
From: Sweden
Registered: 2008-01-05
Posts: 29

[resolved] Mounting USB device when no /dev/sdbx assigned

I'm only posting this because the forum still says "there are no stupid questions here".
I wouldn't dare post it otherwise.

I used to tail my /var/log/messages to see where my usb camera was assigned its /dev/sdbx (usually 1) in order to mount it.
After a long overdue sysupgrade, however, I'm not getting that far anymore.
Here is a "before and after" shot of my messages.

BEFORE:

Jan  1 12:47:19 bindu usb 5-3: new high speed USB device using ehci_hcd and address 2
Jan  1 12:47:19 bindu usb 5-3: configuration #1 chosen from 1 choice
Jan  1 12:47:19 bindu Initializing USB Mass Storage driver...
Jan  1 12:47:19 bindu scsi4 : SCSI emulation for USB Mass Storage devices
Jan  1 12:47:19 bindu usbcore: registered new driver usb-storage
Jan  1 12:47:19 bindu USB Mass Storage support registered.
Jan  1 12:47:24 bindu Vendor: Sony      Model: Sony DSC          Rev: 6.00
Jan  1 12:47:24 bindu Type:   Direct-Access                      ANSI SCSI revision: 00
Jan  1 12:47:24 bindu SCSI device sdb: 1947648 512-byte hdwr sectors (997 MB)
Jan  1 12:47:24 bindu sdb: Write Protect is off
Jan  1 12:47:24 bindu SCSI device sdb: 1947648 512-byte hdwr sectors (997 MB)
Jan  1 12:47:24 bindu sdb: Write Protect is off
Jan  1 12:47:24 bindu sdb: sdb1
Jan  1 12:47:24 bindu sd 4:0:0:0: Attached scsi removable disk sdb

AFTER:

Jan  4 23:13:56 bindu usb 5-4: new high speed USB device using ehci_hcd and address 4
Jan  4 23:13:56 bindu usb 5-4: configuration #1 chosen from 1 choice

This leaves me stuck as to where I can mount my cam nowadays... sad


---
Note: Edit only to change subject to "(resolved)"

Last edited by raroman (2008-01-21 20:08:29)

Offline

#2 2008-01-07 06:46:05

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

Hi raroman,
if not loaded, try to modprobe usb-storage module (as root) and then connect the camera:

modprobe usb-storage

Offline

#3 2008-01-07 09:03:04

raroman
Member
From: Sweden
Registered: 2008-01-05
Posts: 29

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

Hi Luca
Thanks for the tip. I read this:
http://wiki.archlinux.org/index.php/USB_Storage_Devices
I do use a stock arch kernel, so it should be properly compiled (with SCSI-Support, SCSI-Disk-Support and usb_storage).
I think with modprobe usb-storage I'm now one step closer, but I still don't get a /dev/sdb1 or whatever.

/var/log/messages.log:
Jan  7 09:41:10 bindu Initializing USB Mass Storage driver...
Jan  7 09:41:10 bindu usbcore: registered new interface driver usb-storage
Jan  7 09:41:10 bindu USB Mass Storage support registered.

Jan  7 09:41:20 bindu usb 5-4: new high speed USB device using ehci_hcd and address 4
Jan  7 09:41:20 bindu usb 5-4: configuration #1 chosen from 1 choice

lsusb seems in order

lsusb:
Bus 005 Device 007: ID 054c:004e Sony Corp. DSC-xxx (ptp)

Offline

#4 2008-01-07 11:50:51

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 247

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

Not an answer to your question, but ptp from lsusb could mean your camera supports Picture Transfer Protocol. You could try with libgphoto2 instead of mounting it, gtkam or konqueror (with kdegraphics) are nice frontends.

Offline

#5 2008-01-07 15:22:31

Agent69
Member
Registered: 2006-05-26
Posts: 189

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

I know my Nikon D50 can be set to either PTP or USB Storage Device mode. You might want to see if there is an option for you to do so on your camera.

My previous camera, an old Kodak Easyshare, only supported PTP, so I had to do what Mico suggests.

Offline

#6 2008-01-10 21:23:11

raroman
Member
From: Sweden
Registered: 2008-01-05
Posts: 29

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

Thanks, Agent69 and Mico
PTP seems like an alternative, and I'll try that some time.
But is there no hope of regaining the old "mount /dev/sdbx" option?
I don't like relying on too many different (especially gui) tools to do my work.

Given my incapability of solving this myself, perhaps I shouldhmm

Offline

#7 2008-01-21 20:07:15

raroman
Member
From: Sweden
Registered: 2008-01-05
Posts: 29

Re: [resolved] Mounting USB device when no /dev/sdbx assigned

Hi all
I have to close this thread, it is resolved. Without PTP, luckily.  smile

I must have messed up something else on the way, because Luca's modprobe usb-storage would have done the trick.
Sorry!  And thanks for your help!

Offline

Board footer

Powered by FluxBB