OpenSuse 12.1 USB Drive - how to (auto)mount?

I’m new to OpenSuse, coming off of a few years of Ubuntu and hoping things will run faster. I did not install Gnome or KDE desktops, but went with XFCE. When I insert a USB storage device, it shows up in dmesg output and** lsusb** output, but no device name is given. I tried ones that were discussed on articles I found on the subject (e.g. /dev/sdb1) but none of them existed. I tried udisks and mount, all via sudo, but nothing worked. I suppose there is something obvious here that I am missing because I cannot find many hits on the subject via Google. Anyone know what I’m doing wrong? Thanks in advance.

**dmesg output:
**[23879.654104] usb 1-4: new high speed USB device number 2 using ehci_hcd
[23879.768930] usb 1-4: New USB device found, idVendor=04b0, idProduct=031a
[23879.768935] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[23879.768940] usb 1-4: Product: NIKON DSC COOLPIX S4000-PTP
[23879.768943] usb 1-4: Manufacturer: NIKON
[23879.768947] usb 1-4: SerialNumber: 0

When you connect the device it should just show in the file manager

You can mount from the command prompt, but you need to know the device name from

fdisk -l

For example, if the drive shows up as /dev/sdb1, you could do

udisks --mount /dev/sdb1

On 2012-07-14 06:26, YellowGranite wrote:
>
> I’m new to OpenSuse, coming off of a few years of Ubuntu and hoping
> things will run faster. I did not install Gnome or KDE desktops, but
> went with XFCE. When I insert a USB storage device, it shows up in
> dmesg output and* lsusb* output, but no device name is given. I tried
> ones that were discussed on articles I found on the subject (e.g.
> /dev/sdb1) but none of them existed. I tried udisks and mount, all via
> sudo, but nothing worked. I suppose there is something obvious here that
> I am missing because I cannot find many hits on the subject via Google.
> Anyone know what I’m doing wrong? Thanks in advance.
>
> *dmesg output:

Please post these things using code tags.
Posting in Code Tags - A Guide


> *[23879.654104] usb 1-4: new high speed USB device number 2 using ehci_hcd
> [23879.768930] usb 1-4: New USB device found, idVendor=04b0, idProduct=031a
> [23879.768935] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [23879.768940] usb 1-4: Product: NIKON DSC COOLPIX S4000-PTP
> [23879.768943] usb 1-4: Manufacturer: NIKON
> [23879.768947] usb 1-4: SerialNumber: 0

If that output is complete, you can not mount the device in any way whatsoever, because it does
not mention the device name. Try a plain USB stick, I guess that one is a camera, and perhaps a
non supported model. A camera should trigger an application such as shotwell.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hi
That’s because it’s mounting as a ptp device, you will see it appear in
dmesg, but if you don’t have fuse/gvfs installed it won’t mount.

For example with my tablet set to ptp device;


[389754.519691] usb 2-1.1: new high-speed USB device number 6 using ehci_hcd
[389754.625378] usb 2-1.1: New USB device found, idVendor=0b05, idProduct=4e4f
[389754.625383] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[389754.625386] usb 2-1.1: Product: Transformer TF101
[389754.625389] usb 2-1.1: Manufacturer: asus

ls .gvfs/gphoto2\ mount\ on\ usb%3A002\,006/
DCIM  Pictures

gvfs-mount -l
Volume(0): ASUSTek Computer, Inc. Transformer TF101
Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
Mount(0): ASUSTek Computer, Inc. Transformer TF101 -> gphoto2://[usb:002,006]/
Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
Mount(1): ASUSTek Computer, Inc. Transformer TF101 ->   gphoto2://[usb:002,006]/
Type: GDaemonMount

Can your device be set to a different mount type?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 3.0.34-0.7-default
up 4 days 12:28, 3 users, load average: 0.35, 0.45, 0.40
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Hi
Looks like you either need to build libptp libptp2 Project Page or install gPhoto which incorporates the library.

I missed this

[23879.768940] usb 1-4: Product: NIKON DSC COOLPIX S4000-PTP

As Malcolm correctly identified, gphoto can handle these. IIRC, I have a work camera and iPhone that use this method to tranfer files with.

For reference, my openSUSE 11.4 system has these packages installed

gphoto-2.4.10-2.1.x86_64
libgphoto2-2.4.10-3.1.x86_64

Thank you everyone for your helpful replies. Sorry I didn’t notice them sooner (have to check on notifications). I installed gphoto. With the camera attached, I can now open the device using Shotwell. I’d love for it to open in the file browser, like it did for me in Ubuntu.

I’d love for it to open in the file browser, like it did for me in Ubuntu.

I know I can browse/copy with the KDE (Dolphin) file manager. I guess you’re using the Thunar file manager if using XFCE?

Yes, I use Thunar - also command shell.

On 2012-07-19 14:36, YellowGranite wrote:
>
> Yes, I use Thunar - also command shell.

have you installed this?

+++······················
thunar-volman - Thunar Volume Manager

The Thunar Volume Manager is an extension for the Thunar file manager, which enables automatic
management of removable drives and media. For example, if thunar-volman is installed and
configured properly, and you plug in your digital camera, it will automatically launch your
preferred photo application and import the new pictures from the camera into your photo collection.
This package contains:

Removable Drives and Media
······················+±


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)