(auto)mount (in KDE) not working after update from 12.1 to 12.2
SlackwareThis Forum is for the discussion of Slackware 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.
(auto)mount (in KDE) not working after update from 12.1 to 12.2
I worked with slackware 12.1 for almost a year and whenever I plugged in a usb device I was greeted with a konqueror-window. Since I updated to 12.2 nothing happens anymore.
This is my fstab:
/dev/sda1 /mnt/sda1 ntfs-3g umask=000 0 0
/dev/sdb1 /mnt/sdb1 auto noauto,users 0 0
/dev/sdc1 /mnt/sdc1 auto noauto,users 0 0
/dev/sdd1 /mnt/sdd1 auto noauto,users 0 0
/dev/sde1 /mnt/sde1 auto noauto,users 0 0
/dev/hdc /mnt/dvd auto noauto,users 0 0
/dev/hdd /mnt/dvdrec auto noauto,users 0 0
The first device is a hard disc which is mounted at boot - no problems here. But new usb-stick or flash cards can't be found even if I mount in command line:
I type: mount /mnt/sde1/
answer: mount: special device /dev/sde1 does not exist
Yes, the directories do exist in /mnt/
By the way, even as su the answer remains the same.
HELP!!!!!!!!!!!
----------------------------------------------------
Thanks a lot for all your quick answers. My "/etc/group" entry for plugdev looks like this:
plugdev:x:83:root,wagner (of course "wagner" is my user name. So the problem shouldn't be there.
I also tried the "dmesg | tail" command and got this:
Which I think is totally weird. Why does the system put a new usb-device into sdf if it's the second device I ever plugged in? Shouldn't it at least be "sdb"? And what's more, why is not "sdf1". I never before saw that a formatted device didn't have a number. This is exactly the same usb-stick that showed up as "sdb1" in slackware 12.1. I commented out the removable devices in fstab although those have never been a problem with slackware 12.1. On the contrary hal usually uses fstab, so I can find my device easier when I am working in a terminal. However it didn't change anything at all.
More HELP!!!!!!!!!!!!!!!!!!!! please
Last edited by seancrawford; 01-13-2009 at 10:37 AM.
Reason: answer
HAL is not new anymore, but here are a few notes related to it:
1. User accounts with permission to mount removable devices must be in at
least the plugdev group, and the power group is also recommended to
allow shutdown and reboot via HAL methods.
It doesn't say that /mnt/sde1 does not exist but that /dev/sde1 does not exist.
You should mount your device, wait for ten seconds, then type in a terminal
Code:
dmesg | tail
It will tel you the name given by the kernel to your device, and you should use that one.
In his case I know that my device is known as /dev/sda1
Furthermore if you use HAL (and you should if you want to use the auto-mounting with KDE), remove all the lines in /etc/fstab for the removable devices, they are useless as the system will take care of creating a device node for you when you plug-in the device. this stand for USB devices and for your CD/DVD readers and writers.
Last thing, don't forget to check that all users who need to mount removable device should belong to the 'plugdev' and 'cdrom' groups. You can use kuser (as root) for that.
Last edited by Didier Spaier; 01-12-2009 at 01:53 PM.
Reason: Typos
If the devices are listed in fstab then HAL will not poll for those devices. The devices then must be mounted manually. If this is what you want then consider autostarting KwikDisk to provide an easy way to mount devices.
If you want automatic mounting, then comment out the related mount points in fstab and ensure udev and hal are running. You should see hal polling in ps ax.
The lsusb command will inform you when a USB device is detected.
In KDE you also must have the KDED Media Manager and Media Notifier Daemon services enabled to start.
If after doing all this you do not see any automatic prompts when inserting a USB device, exit KDE, delete or edit ~/.kde/share/config/medianotifierrc and ~/.kde/share/config/mediamanagerrc.
Thanks a lot for all your quick answers. My "/etc/group" entry for plugdev looks like this:
plugdev:x:83:root,wagner (of course "wagner" is my user name. So the problem shouldn't be there.
I also tried the "dmesg | tail" command and got this:
Which I think is totally weird. Why does the system put a new usb-device into sdf if it's the second device I ever plugged in? Shouldn't it at least be "sdb"? And what's more, why is not "sdf1". I never before saw that a formatted device didn't have a number. This is exactly the same usb-stick that showed up as "sdb1" in slackware 12.1. I commented out the removable devices in fstab although those have never been a problem with slackware 12.1. On the contrary hal usually uses fstab, so I can find my device easier when I am working in a terminal. However it didn't change anything at all.
This is my fstab:
/dev/sda1 /mnt/sda1 ntfs-3g umask=000 0 0
/dev/sdb1 /mnt/sdb1 auto noauto,users 0 0
/dev/sdc1 /mnt/sdc1 auto noauto,users 0 0
/dev/sdd1 /mnt/sdd1 auto noauto,users 0 0
/dev/sde1 /mnt/sde1 auto noauto,users 0 0
/dev/hdc /mnt/dvd auto noauto,users 0 0
/dev/hdd /mnt/dvdrec auto noauto,users 0 0
Your entries for /dev/sd* devices in your fstab have the option noauto (the same applies to your dvd drives). As Woodman said, you should remove those entries from /etc/fstab.
By the way, there is a change in how udev is configured between 12.1 and 12.2. Please refer to CHANGES_AND_HINTS.TXT:
Quote:
As usual, there are changes in udev packaging that need mentioning...
First, be sure to move the /etc/rc.d/rc.udev.new over - the old
/etc/rc.d/rc.udev will not work with the new udev package (and the new
one won't work with the old udev package).
The system udev rules now reside in /lib/udev/rules.d/ instead of
/etc/udev/rules.d/ in older versions. There should never be a reason
to edit anything in /lib/udev/rules.d/, so if you think you have a case
where this is required, either you're wrong or it needs to be addressed
in the upstream source. However, you can override default rules by
placing one with an identical name inside /etc/udev/rules.d/
The rules files in /etc/udev/rules.d/ are still intended to (maybe) be
edited as needed by local system administrators, and as such, the rules
for optical and network devices will still be placed there.
Also pay attention to upgrade instructions in UPGRADE.TXT and in particular step 6 about configuration files.
Did you perform those steps about .new config files (udev in particular)?
Why does the system put a new usb-device into sdf if it's the second device I ever plugged in?
Because in fstab you manually reserved sda through sde.
Quote:
I commented out the removable devices in fstab although those have never been a problem with slackware 12.1.
I'm no expert with HAL, but HAL did go through some changes between 12.1 and 12.2. With respect to hald, udev, etc., I would not place complete emphasis on comparing how things worked between 12.1 and 12.2.
Make sure rc.udev, rc.hald, and rc.messagebus all are executable. Reboot without the external device.
Start X/KDE. Open a terminal session. Verify hald is polling (ps ax | grep poll).
Type lsusb.
Insert the device. Wait two seconds. Type lsusb.
You should see the device get assigned to the next available sdx sequence number, which might not be sdb.
If lsusb shows the device being added but no pop-up dialog boxes appear in KDE, then please refer to my previous post.
Your entries for /dev/sd* devices in your fstab have the option noauto (the same applies to your dvd drives). As Woodman said, you should remove those entries from /etc/fstab.
By the way, there is a change in how udev is configured between 12.1 and 12.2. Please refer to CHANGES_AND_HINTS.TXT:
Also pay attention to upgrade instructions in UPGRADE.TXT and in particular step 6 about configuration files.
Did you perform those steps about .new config files (udev in particular)?
...this could be the problem...after installation of the udev-package there was no /etc/rc.d/rc.udev.new And the /etc/rc.d/rc.udev was old with all the old paths in it. Any idea where I can get a new /etc/rc.d/rc.udev ?
I did precisely that: reinstall, bit there was no rc.udev.new. I checked the package but there is none. I seem to have a corrupt udev.tgz...
Did you delete /etc/rc.d/rc.udev before re-installing the package. If yes, then it's normal that there is no rc.udev.new because the post-installation script moved rc.udev.new to rc.udev.
If you had an existing /etc/rc.d/rc.udev before re-installing the package, then you used a corrupted udev-135-i486-2.tgz package.
Have you got the parted package installed? This one caught me out too until I was pointed at the changelog. Parted is now a dependency of HAL.
That's it!! You did it!!! You saved me!!! You made my day!!! thankyouthankyouthankyouthankyouthankyou
Now it finally works. and it was so easy.
Thanks again
Bjoern
P.S.: And it has absolutely no consequence to change the fstab. Quite contrary - hal uses the fstab and mounts to where it points. So you always know where hal monts your usb devices ;-)
Last edited by seancrawford; 02-20-2009 at 03:09 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.