USB Devices Fail To Mount - They Worked Fine Yesterday
SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB Devices Fail To Mount - They Worked Fine Yesterday
Hello forum,
All of my USB devices have suddenly failed to mount (two USB hard drives and a card reader). I am running openSUSE 10.2
When I try to mount any of them, I get the message "Cannot lookup privilege from PolicyKit".
They seem to have stopped working when I installed a few programs yesterday, the Hewlett Packard Office jet HPOJ driver, xine gui media player, and the Main Actor video editor.
So I uninstalled all three of those programs but the problem still persists.
When I stop and restart the policykitd service (/etc/init.d/policykitd stop/start), the error message changes to "hal-storage-removable-mount refused uid 1000" but when I reboot the computer, I get the original error message all over again.
When I run "resmgr dump" in a root terminal window, this is the results:
Code:
linux-6cp2:/home/roy # resmgr dump
### begin dump
class desktop-console
class audioplayer
class pda
class scanner
class modem
class camera
class usb
class floppy
class cdrom
class input
class video
class sound
class v4l
class dvb
class remote-x-desktop
class desktop
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
class desktop includes desktop-console
login "roy" :0
grant "roy" desktop
grant "roy" dvb
grant "roy" v4l
grant "roy" sound
grant "roy" video
grant "roy" input
grant "roy" cdrom
grant "roy" floppy
grant "roy" usb
grant "roy" camera
grant "roy" scanner
grant "roy" pda
grant "roy" audioplayer
grant "roy" desktop-console
### end dump
linux-6cp2:/home/roy #
If I run resmgr in a root terminal window, nothing happens after waiting a few minutes. I just get a non blinking cursor.
All of this is unfamiliar territory for me so I am asking if somebody would be kind enough to try to help me get my USB devices (hard drives) to working again.
Thanks for the reply but I tried "rcpolicykitd stop/start" in a root shell and the end results were the same, meaning I got the second error message. And when I rebooted the computer, I got the first error message.
I have noticed that when I run either "policykitd stop/start" or "rcpolicykitd stop/start, the USB drives will mount ONLY if I log out of X and log back in X as a root user. But when I log out of root X and log back into X as a regular user, I get the same error message all over again.
I've also noticed that I have lost write access to the NTFS partitions I have mounted from the internal hard drives. OpenSUSE enabled write privledges by default on NTFS partitions when everything was working alright.
I have broken something somewhere and don't know what.
Please don't give up on this thread. I'm willing to go through great lengths to get this fixed.
Do an "rpm -V PolicyKit", "rpm -V resmgr", "rpm -V pam-config" and "rpm -V xorg-x11" as root. In my system they return nothing and everything works. Also, what is the version of Xorg you have (rpm -q xorg-x11)?
Appariently nothing is missing from those four packages and my version of xorg is 7.2-26
Typing dmesg in a terminal window said two of my ntfs partitions were dirty from my internal hard drives (not the USB hard drives). I have a multiboot configuration. So I booted into WindowsXP and Windows automatically did a chkdsk on those same two partitions without any user intervention from me so they must have really been in bad shape for some reason. After booting back into openSUSE, the dmesg warning went away and I re-gained write access to one of those ntfs partitions where it was lost before. I did not gain write access to the other ntfs partition due to improper flag settings according to dmesg. I don't know this has anything to do with me not being to mount my USB devices but I thought I would mention it anyway.
Any more suggestions would be greatly appreciated,
Roy
Regretfully, after trying both possibilities, neither of them fixed my problem. I did not unplug my USB mouse, however. Would that have to be unplugged also?
My USB card is most probably seated correctly since everything works fine in the other Linux distributions (multi-boot) so I didn't check that.
I am not a SUSE user .. however, conceptually speaking, this problem happened after you installed those 3 rpms .. Sounds to me that they overwrote or changed some modules related to the loadable usb modules. I cannot claim that this may be the problem, but I would try to unload and reload the usb-storage and the uhci_hcd modules (or whatever equivalent for SUSE). Try a command to list the currently loaded modules e.g. /sbin/lsmod also try to see exactly the contents of those rpms using something like e.g. rpm -ql <rpm-name> | grep "lib" | less
I hope this may help a little bit .. Please let me know ..
Regretfully, after trying both possibilities, neither of them fixed my problem. I did not unplug my USB mouse, however. Would that have to be unplugged also?
My USB card is most probably seated correctly since everything works fine in the other Linux distributions (multi-boot) so I didn't check that.
Here is my non root terminal readout with those two commands:
roy@linux-6cp2:~> rpm -V hal
S.5....T /etc/PolicyKit/privilege.d/hal-storage-removable-mount-all-options.privilege
S.5....T c /etc/dbus-1/system.d/hal.conf
.......T /etc/udev/rules.d/90-hal.rules
roy@linux-6cp2:~> groups
users root dialout video
roy@linux-6cp2:~>
The quick way is to reinstall the hal package from the opensuse distribution media or server, provided that you didn't intentionally make these changes to these files. If you made them intentionally, then you need to show us the content of these files. Most likely the HP program you installed made these changes, what is the filename of the package and where did you get it from? I have installed the other programs and they cause no problem to my system.
All I know about the printer driver is that the tarball version is called hpoj-0.91.tgz but I actually installed the rpm version from the graphical package manager.
I also know this driver creates an entry in the services manager (a running process) called ptal, which might interact with HAL, I'm not sure right now.
I plan to uninstall and reinstall HAL soon if all else fails.
Unless I missed something, the hpoj project is dead since 2005 and the last suse version it supported is 8.2, so installing the hpoj package was a bad idea. It has been replaced with the hplip project, so you need to check whether your printer is supported there, assuming it isn't supported by opensuse 10.2, and install the relevant package. Opensuse 10.2 includes hplip-1.6.10.
The quick way is to reinstall the hal package from the opensuse distribution media or server, provided that you didn't intentionally make these changes to these files. If you made them intentionally, then you need to show us the content of these files. Most likely the HP program you installed made these changes, what is the filename of the package and where did you get it from? I have installed the other programs and they cause no problem to my system.
There's your quick fix. You can do that using YaST or with whatever packager you're using, I'm using smart nowadays, I finally got rid of zen!!!
You could also try adding the following lines to this file: /etc/dbus-1/system.d/hal.conf
Check your conf file first to see if you have "root" and "default user" in your policy. This info is on the link I gave you and I believe it should work. I would rather reinstall the hal package as auxsvr suggested, it sounds much safer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.