LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2008, 04:56 PM   #1
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
USB external disk stopped showing up on the desktop


I have an external 300GB USB drive. This has been happily showing up on my desktop for some time now with an appropriate little icon. I had configured it to automount, which it duly did. All was well. Until this evening.

Now, when I plug the disk in, I get no such icon. The curious thing is the disks show up just fine in fdisk -l, and I can mount them manually using the mount command as root. The same situation arises with my two other external disks (all USB hard drives, not flash drives).

I've checked whether this is just a problem with my kde profile by logging in to KDE as another user, but no joy there either. So it seems to be independent of KDE.

As a fix, I could set up the old udev rules I used to have and edit mount points for them in /etc/fstab, but this is not ideal because something which was working has now ceased to do so.

This happened to me a little while ago, but I wanted to change my partitioning, so it seemed like an opportune time to reinstall and start from scratch. After the fresh install, everything started working as expected. But now, it's gone back to not working.

My thoughts are this is a hal/udev problem, and I've tried stopping and restarting each individually, but nothing's making any difference. Even a reboot didn't fix it!

Any thoughts welcome

edit: I should add the disk's label shows up fine in /dev/disk/by-label, so it seems udev is doing its bit.

edit2: more reading done, and I've checked the contents of /media/.hal-mtab and it's empty when the disk is plugged in. Presumably it's not supposed to be? Does this mean it's hal?

Last edited by pwc101; 08-12-2008 at 05:29 PM.
 
Old 08-12-2008, 06:05 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
At the command line, run lsusb before and after plugging in the drive. Your USB drive should appear in the list. If not then start there.

If the drive appears in the lsusb list, then udev is working. Next look at HAL polling. Run ps ax | grep polling. You should see an entry for the USB device nodes.

Also check KDE. Open the KDE Control Center. Select the Desktop tree, select the Behavior option, then select the Device Icons tab. Ensure Unmounted Removable Medium is selected.

While in the Control Center, open the KDE Components tree, select Service Manager, then ensure both KDED Media Manager and Media Notifier Daemon are enabled to start and currently running.
 
Old 08-13-2008, 01:40 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Thanks for replying.
Quote:
Originally Posted by Woodsman View Post
At the command line, run lsusb before and after plugging in the drive. Your USB drive should appear in the list. If not then start there.
Code:
pwc101@dorothy:~> /sbin/lsusb
Bus 004 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 004 Device 003: ID 0bc2:0502 Seagate RSS LLC
Bus 004 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
pwc101@dorothy:~>
My external disk is a Seagate drive, so it's showing up fine in there.
Quote:
Originally Posted by Woodsman View Post
If the drive appears in the lsusb list, then udev is working. Next look at HAL polling. Run ps ax | grep polling. You should see an entry for the USB device nodes
Code:
pwc101@dorothy:~> ps ax | grep polling
 2575 ?        S      0:00 hald-addon-storage: polling /dev/hdc (every 2 sec)
pwc101@dorothy:~>
I get no output for USB, only for my DVD drive (/dev/hdc), it seems.
Quote:
Originally Posted by Woodsman View Post
Also check KDE. Open the KDE Control Center. Select the Desktop tree, select the Behavior option, then select the Device Icons tab. Ensure Unmounted Removable Medium is selected.
This is already ticked.
Quote:
Originally Posted by Woodsman View Post
While in the Control Center, open the KDE Components tree, select Service Manager, then ensure both KDED Media Manager and Media Notifier Daemon are enabled to start and currently running.
Both these services are running.

So it seems that hald has stopped polling for usb devices? Odd...

Is this fixable?

Last edited by pwc101; 08-13-2008 at 01:43 AM. Reason: formatting
 
Old 08-13-2008, 01:50 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
I'm no HAL guru, but check for files in /etc/hal/fdi/information. Possibly there is a file there for your USB hard drive that is disabling polling.
 
Old 08-13-2008, 03:09 PM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Woodsman View Post
I'm no HAL guru, but check for files in /etc/hal/fdi/information. Possibly there is a file there for your USB hard drive that is disabling polling.
That directory was empty (as were all the others a level up).

The trouble is it's stopped working for all devices, not just a particular external disk.

I'm stumped, but I'm going to try restoring /etc from a backup of before it happened. If that solves the problem, then I'll try and find out exactly what broke, and post it here.
 
Old 08-13-2008, 03:36 PM   #6
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Ok, well, I backed up /etc, then deleted it (that was weird!), restored it from my backed up tarball and rebooted. The problem persists, so it seems to be outside of some config file in /etc. The only other place I can think where the problem might lay is in /dev.

Next on the todo list is remove hal and reinstall it (which doesn't feel like a solution!), although I've not got high hopes...

Does anyone have any ideas?
 
Old 08-13-2008, 05:01 PM   #7
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Does it also happen in Xfce? You said you used a fresh KDE profile, but I would double check this way that it is really not KDE's fault. Else I have no real ideas, maybe remove all removable devices, stop hald and delete the files in /var/run/hald and /var/cache/hald if there are any left?

I'm not expert for this in any way but these things came to my mind. I hope it may help
 
Old 08-14-2008, 02:36 AM   #8
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by titopoquito View Post
Does it also happen in Xfce? You said you used a fresh KDE profile, but I would double check this way that it is really not KDE's fault. Else I have no real ideas, maybe remove all removable devices, stop hald and delete the files in /var/run/hald and /var/cache/hald if there are any left?

I'm not expert for this in any way but these things came to my mind. I hope it may help
I've tried using an Xfce profile, but don't get any media icons on the desktop, only Trash, Home, Filesystem and System icons.

Clearing out /var/chache/hald and /var/run/hald didn't fix it either.

I haven't yet tried uninstalling and reinstalling hal, but will try, just in case.

As an aside, I've realised I quite like Xfce and might stick with it. Every cloud has a silver lining, I suppose!
 
Old 09-15-2008, 01:08 AM   #9
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
I was just about to start a new thread because I'm having a similar problem. I wonder if it has something to do with the latest update in KDE in slackware-current? That's the only thing that I've done recently (as far as I remember) and now USB storage devices and CD/DVD have stopped automounting and showing up in Konqueror's Show Media (system:/media).

Like you I can mount manually and my USB devices appear when I run lsusb. However, there are no processes running when I do ps ax | grep polling.

Also (if relevant), in Peripherals -> Storage Media -> Advanced, the options for Enable HAL backend and Enable CD polling are greyed out (though they are checked).

Any ideas?
 
Old 10-16-2008, 03:26 PM   #10
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by brixtoncalling View Post
I was just about to start a new thread because I'm having a similar problem. I wonder if it has something to do with the latest update in KDE in slackware-current? That's the only thing that I've done recently (as far as I remember) and now USB storage devices and CD/DVD have stopped automounting and showing up in Konqueror's Show Media (system:/media).

Like you I can mount manually and my USB devices appear when I run lsusb. However, there are no processes running when I do ps ax | grep polling.

Also (if relevant), in Peripherals -> Storage Media -> Advanced, the options for Enable HAL backend and Enable CD polling are greyed out (though they are checked).

Any ideas?
I hate to say it, but I have the exact same problem here.

One thing to check is if you have parted installed, as per changelog (current):
Quote:
Thu Sep 11 00:49:16 CDT 2008
l/parted-1.8.8-i486-1.tgz: Moved from /extra (this is now a HAL dependency).
Hope someone can offer a suggestion to fix this.

Cheers, Leon.
 
Old 10-17-2008, 03:55 AM   #11
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
I think a solution was found in this thread, started by brixtoncalling:

http://www.linuxquestions.org/questi...roblem-670488/

I haven't tried it, but I switched to XFCE, and everything seems to work fine, although strangely automounting also works in my girlfriend's profile, which uses KDE.

Either way, I hope it fixes your problem.
 
Old 10-17-2008, 04:12 PM   #12
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Thumbs up

This solved it for me, as found on http://wiki.archlinux.org/index.php/...ount_correctly

In short:

Quote:
If

# hald --verbose=yes --daemon=no

says something like

18:50:59.028 [I] blockdev.c:502: Probing storage device /dev/sda
Run started hald-probe-storage (10000) (0)
! full path is '/usr/lib/hal/hald-probe-storage', program_dir is '/usr/lib/hal'
/usr/lib/hal/hald-probe-storage: error while loading shared libraries: libvolume_id.so.1: cannot open shared object file: No such file or directory

You'd have to create a symlink to the library:

# ln -s /lib/libvolume_id.so.0 /lib/libvolume_id.so.1
Hope this helps someone!

Cheers, Leon.
 
Old 11-13-2008, 02:08 AM   #13
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by LJSBrokken View Post
This solved it for me, as found on http://wiki.archlinux.org/index.php/...ount_correctly

In short:



Hope this helps someone!

Cheers, Leon.
WAS it the exact same problem--rewriteable media--or was it cd/dvds? (including rewritable ones accessed read-only) The answer may be that some POSIX OSes may ruin rewritable media if you remove them while they are mounted: I have had a USB hard disc and several USB sticks ruined, seemingly after taking them out mounted, so if it is important, plug it into the back where you may think of umounting before going to remove. I have never seen KDE automatically unmount a device: I do not think it can--the Linux kernel will not, AFAIK.

--David
 
Old 11-13-2008, 06:05 AM   #14
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
Originally Posted by dchmelik View Post
WAS it the exact same problem--rewriteable media--or was it cd/dvds? (including rewritable ones accessed read-only) The answer may be that some POSIX OSes may ruin rewritable media if you remove them while they are mounted: I have had a USB hard disc and several USB sticks ruined, seemingly after taking them out mounted, so if it is important, plug it into the back where you may think of umounting before going to remove. I have never seen KDE automatically unmount a device: I do not think it can--the Linux kernel will not, AFAIK.

--David
Yes, the problem was USB storage devices not being mounted by hal and showing up on the desktop.

AFAIK it is impossible to automagically unmount a device when you simply pull it out.
 
Old 11-13-2008, 11:39 AM   #15
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by dchmelik View Post
WAS it the exact same problem--rewriteable media--or was it cd/dvds? (including rewritable ones accessed read-only) The answer may be that some POSIX OSes may ruin rewritable media if you remove them while they are mounted: I have had a USB hard disc and several USB sticks ruined, seemingly after taking them out mounted, so if it is important, plug it into the back where you may think of umounting before going to remove. I have never seen KDE automatically unmount a device: I do not think it can--the Linux kernel will not, AFAIK.

--David
Windows is the same as *nix in this regard. Removeable media like USB drives must be 'safely removed' in Windows to avoid corruption. I don't know whether Windows or Linux have different odds of corruption, but it is really required to do this step in either OS regardless. Pulling a USB stick in ANY OS without unmounting it with software tools is a bad idea. Windows doesn't automatically unmount USB sticks either (and I realize Windows doesn't actually 'mount' partitions, so my terminology and even my general overview here is incorrect -- but my point is still valid). It is akin to removing a hard drive while still in use, which is obviously not a good thing. I have removed a USB stick without unmounting it once (from Slackware 12.0 or 12.1 -- I don't remember how long ago it was), but it suffered no corruption. There are really only two cases where Windows is 'safer' than Linux. Floppy drives don't need to be unmounted (but if you eject the disk while it is being written to it could be disatrous. Also, who uses floppies nowadays?) and CDs (though there is really no chance of ruining a read-only CD whether it is unmounted before ejecting or not. Also, KDE automatically unmounts the CD for me through HAL when I press the CD drive's eject button). FUD has no place here.

Last edited by T3slider; 11-13-2008 at 11:41 AM.
 
  


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
Multiple usb external drives not showing up ecubed Linux - Hardware 4 04-21-2008 08:52 PM
USB icon not showing on desktop shahgols Ubuntu 5 12-21-2007 06:22 PM
USB Printer stopped working after plugging in Flash Disk hockpa2e Slackware 3 08-19-2006 09:25 AM
usb controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
USB 2.0 External Disk Wont Work, but almost in USB 1.1 integr8er Linux - Hardware 2 03-13-2004 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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