USB Devices Do Not Mount

I’ve got openSUSE 11.0 with KDE 4, and I’m having a problem getting my USB devices (external hard drive and camera) to mount once the system is on. If I connect them before startup, all is good; I just have to click on their icons to mount them in the “computer” menu in the app launcher. If I connect them while the computer is running normally, I get nothing. I did notice that if I go to the YAST control center and look at Hardware Information, the devices show up there; I just can’t get them to automatically mount and have not a clue how to manually do it. What do I need to do to fix this?

EDIT: I should note that I have no problems with my external firewire hard drive, it works fine whether I turn it on before or not.

Thanks,
Dan

Also, here’s fdisk. /dev/sdb is the firewire drive.

linux-8amt:/home/dan # fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0000c935

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         262     2104483+  82  Linux swap / Solaris
/dev/sda2   *         263        2873    20972857+  83  Linux
/dev/sda3            2874       30401   221118660   83  Linux

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

-Dan

Hi dbsoundman

I’ve never had this problem, but am aware of many users describing this ‘automounting’ issue, even with openSUSE 10.3.

I know there can be many causes of this problem, so just to get started can you please do the following:

  1. Can you please output of

cat /etc/fstab
(to make sure no unintended external device entry)

cat /etc/resmgr.conf
(to make sure usb access is enabled)

  1. Make sure that KDE Service Manager settings include ‘Media Notifier Daemon’.

  2. lsmod |grep usb (to see what usb modules are loaded).

  3. As root, issue ‘udevadm monitor’ command, then plug in a usb memory stick, and note (if any) output.

Here’s something strange…I turned on my USB hard drive today before I turned on the PC, and when I turned it on, the drive was there, but I tried to mount it and nothing happened. I ran those commands, and when I ran the last one as root (udevadm monitor), and plugged in my digital camera, it showed up normally. I unmounted the camera and shut down the terminal, then tried the camera and the hard drive again, and they automounted just fine. Maybe something was wrong with my last session? Or did that command turn something on that is staying on now?

Here’s the outputs of those commands. All were done before the USB devices were connected. The last one shows when the device was connected as well.

dan@linux-8amt:~> cat /etc/fstab
/dev/disk/by-id/scsi-SATA_ST3250410AS_6RY5JKA7-part1 swap                 swap       defaults              0 0
/dev/disk/by-id/scsi-SATA_ST3250410AS_6RY5JKA7-part2 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_ST3250410AS_6RY5JKA7-part3 /home                ext3       acl,user_xattr        1 2
proc                 /proc                proc       defaults              00
sysfs                /sys                 sysfs      noauto                00
debugfs              /sys/kernel/debug    debugfs    noauto                00
devpts               /dev/pts             devpts     mode=0620,gid=5       00
dan@linux-8amt:~> cat /etc/resmgr.conf
# This is the default set of devices people logged in on the desktop get
# access to:
class desktop

# remote X logins
class remote-x-desktop

# dvb devices
class dvb

# v4l devices
class v4l

# sound devices (alsa+oss)
class sound

# other video stuff
class video

# input devices like mice, joystick
class input

# CD-ROM, DVD-ROM, Burners etc.
class cdrom

# all kinds of removeable media
class floppy

# generic libusb access
class usb

# cameras
class camera

# devices that can cost you money
class modem

# scanners
class scanner

# PDAs
class pda

# portable audio players
class audioplayer

class desktop includes dvb
class desktop includes v4l
class desktop includes sound
class desktop includes video
class desktop includes input
class desktop includes cdrom
class desktop includes floppy
class desktop includes usb
class desktop includes camera
class desktop includes scanner
class desktop includes pda
class desktop includes audioplayer
dan@linux-8amt:~> lsmod | grep usb
usb_storage           112800  0
usbcore               188248  4 usb_storage,ehci_hcd,ohci_hcd
scsi_mod              195032  6 usb_storage,sbp2,sr_mod,sg,sd_mod,libata
dan@linux-8amt:~> sudo udevadm monitor
root's password:
sudo: udevadm: command not found
dan@linux-8amt:~> su
Password:
linux-8amt:/home/dan # udevadm monitor
udevmonitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent

UEVENT[1215631584.615846] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1(usb)
UEVENT[1215631584.620299] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/usb_endpoint/usbdev4.2_ep00 (usb_endpoint)
UEVENT[1215631584.624794] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0 (usb)
UDEV  [1215631584.639584] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1(usb)
UDEV  [1215631584.645522] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/usb_endpoint/usbdev4.2_ep00 (usb_endpoint)
UDEV  [1215631584.680118] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0 (usb)
UEVENT[1215631584.709576] add      /class/scsi_host/host9 (scsi_host)
UDEV  [1215631584.715126] add      /class/scsi_host/host9 (scsi_host)
UEVENT[1215631584.716065] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep81 (usb_endpoint)
UEVENT[1215631584.716180] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep01 (usb_endpoint)
UEVENT[1215631584.716272] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep82 (usb_endpoint)
UDEV  [1215631584.722418] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep81 (usb_endpoint)
UDEV  [1215631584.740451] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep82 (usb_endpoint)
UDEV  [1215631584.745783] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/usb_endpoint/usbdev4.2_ep01 (usb_endpoint)
UEVENT[1215631585.734334] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UEVENT[1215631585.735803] add      /class/scsi_disk/9:0:0:0 (scsi_disk)
UDEV  [1215631585.744930] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV  [1215631585.751522] add      /class/scsi_disk/9:0:0:0 (scsi_disk)
UEVENT[1215631585.763989] change   /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UDEV  [1215631585.764365] change   /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0 (scsi)
UEVENT[1215631585.804263] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UEVENT[1215631585.804296] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0/block/sdc/sdc1 (block)
UEVENT[1215631585.804304] add      /class/scsi_device/9:0:0:0 (scsi_device)
UEVENT[1215631585.804315] add      /class/scsi_generic/sg3 (scsi_generic)
UEVENT[1215631585.804323] add      /class/bsg/9:0:0:0 (bsg)
UDEV  [1215631585.858573] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0/block/sdc (block)
UDEV  [1215631586.129664] add      /devices/pci0000:00/0000:00:13.1/usb4/4-1/4-1:1.0/host9/target9:0:0/9:0:0:0/block/sdc/sdc1 (block)
UDEV  [1215631586.132049] add      /class/scsi_device/9:0:0:0 (scsi_device)
UDEV  [1215631586.132701] add      /class/scsi_generic/sg3 (scsi_generic)
UDEV  [1215631586.133703] add      /class/bsg/9:0:0:0 (bsg)

-Dan

Thanks for update. Keep us posted if you have problems again. :slight_smile:

Hello All,
I am a little lost. Last month my laptop was fried by an electrical problem in our flat. I could not afford a new one and someone gave me an old desktop without a OS. I decided having been Windoz based all my life to try Linux. I got a magazine that had the disk and all the instructions in it.
All is ok except that I can not write to my external USB harddrive. First of all I did not know I had to “mount” it. So I plugged it in and I beleive the first time it automounted. Then I unplugged it to use it with another computer and when I plugged it back in I can only read the file. I can not save new files. When I try to save it either says KDE media manager is not on OR it crashes. I don’t know enough about Linux to know how to troubleshoot it. Can anyone help a blonde thats new at Linux?:\

It could be that you can not write to it because the external drive is formatted as NTFS. OpenSUSE does not handle this as well as it could, because (IMHO) openSUSE distribution is only recently obtaining confidence in an NTFS driver that has write capabilties.

What you could do is apply a work around that is recommended here:
NTFS - openSUSE

Specifically, with your external drive NOT connected, open a gnome-terminal or konsole, and type:
cd /sbin
su -c 'ln -s mount.ntfs-3g mount.ntfs’and enter your root password when prompted for a password. Then plug in your external drive and see if you can write to it.

This should not happen. But hopefully the above symbolic link fix will work for you.

Since you are new to openSUSE linux, here is a link to a web page with some very basic concepts that I recommend you read: Concepts - openSUSE

Welcome to our forum!

Thanks for the Welcome and all the info. I am afraid I am alittle stumped by all this. I guess I am a plug and play gal. Its been a LONG time since Ihad to use commands…LOL I did find some work arounds on the pages you gave. I will try them. Thanks for your help!

Its pretty simple. With your hard drive NOT connected (and if using KDE) press <alt><f2> and in the “run command” dialog box that pops up, type “konsole” (no quotes). That will start a terminal (sort of looks like a dos box).

Then simply type:
cd /sbin
su -c ‘ln -s mount.ntfs-3g mount.ntfs’
and when prompted for a password, enter the root password. Then plug in your external hard drive.

well I am still trying. I have done all the things suggested and still can not write to my harddrive.

I want to do a quality check on how you followed the recommendation.

Please type in a gnome-terminal or konsole:
ls /sbin | grep ntfsand post here the output. You should get something like:

oldcpu@stonehenge01:~> ls /sbin | grep ntfs
mkfs.ntfs
mount.ntfs
mount.ntfs-3g 

Ok so now I have the HD mounted BUT when I try to save it says “KDE mediamanger is not on”. so now what?

ok this is what I have:
smith_jc@localhost:~> ls /sbin | grep ntfs
mkfs.ntfs
mount.ntfs
mount.ntfs-3g
smith_jc@localhost:~>

But it still says KDE media manager is not running.

What application are you trying to save from?

Does a drag and drop from your file manager (to the external drive) work?

Ok let me tell you my actions the last few hours. People keep saying to go to KDE control center and I did not have that so I loaded the packet and then enabled media manager. This allowed me mount the HD. Now I can not open the files on the HD at all and when I try to save (from open office, gwenview or any application) it says Permissions failed.

Mediamanager? KDE control center? I see no such recommendation on this thread.

If using KDE4, just open the file manager (Dolphine I believe), or KDE3 open Konqueror.

Then with the file manager open, navigate to the directory /media and you should see your hard drive mounted there.

But even more easy, when you plug in your external hard drive, you should get a pop up dialog box, where you can select a file manager icon to access your external hard drive.

Its really that easy. I think you are making this more complex than it actually is.

Ok I have been traveling so not dealing with this. I may be making this harder then it is BUT when I plug in the HD I get no such pop up. Also when I go to the media file I can view the HD but when I click on it I can not open it at all.

Ok when I try to save to the HDD now I get this error

an error occurred while accessing IOMEGA HDD. The system said: mount only root can mount /dev/sdb1 on /media/IOMEGA_HDD

I would expect to see that error only if:
a. you inappropriately removed the symbolic link from /sbin or
b. you have an inappropriate entry in your /etc/fstab file, or
c. you have not rebooted since a kernel update, or
d. you are missing a necessary software package

With your external hard drive plugged in, please copy and paste the following, one line at a time, into a konsole, and post here the output:uname -a
rpm -q libfuse2 ntfs-3g
ls /sbin | grep ntfs
cat /etc/fstab
df -h
su -c 'fdisk -l’Enter your root password when prompted after entering the last command.

With that information it might be possible to see what is configured wrong on your PC.