How to disable auto-mounting of USB Devices on Slackware 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.
How to disable auto-mounting of USB Devices on Slackware 12.2?
I have installed Slack 12.2 yet. My issue is about mounting USB devices. Although I entered "noauto" option on the related lines on fstab file, KDE directly opens index of USB flash drives on a new window. Using the same fstab file on Slack 12.1 (KDE), everything goes fine, no problem occurs, it is asked that whether mount or not on a pop up window. I want Slack 12.2 to ask me whether mount or not before opening mount directory (content) on a new window.
These entries are the possibilities that suit to mount usb devices many times without shutting down the computer. For each plugging of usb device, Slack choses different device name (sdb, sdb1, sdb2, sdc, sdc1, etc...). I solved my problem like this, but there must be packages that do this operation to mount volumes. I am not an advanced Slack user and do not know an easy way to mount volumes without manually. Which method do you use?
I think hal-disable-polling may help, but I don't remember the details, please check the man page.
i'm looking that subject now, but when i inserted a dvd on dvd-rom, index of dvd was not opened directly, first KDE requested me options on a pop up window, then clicking related icon mounting completed. I think different rules are valid for each usb, sata and ide devices.
Thanks for everyone.
Last edited by sertmusluman; 12-18-2008 at 12:24 PM.
It is not necessary anymore. I used to manage mounting in Slackware 11 by a combination of fstab entries and udev rules but, as I understand it it is not necessary in Slackware 12. In fact Pat says in 'changes and hints'
Quote:
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.
So I would delete or at least comment all this out from your fstab file. When you plug in a usb drive you ought to get a box coming up asking whether you want it automounted in konqueror.
It is not necessary anymore. I used to manage mounting in Slackware 11 by a combination of fstab entries and udev rules but, as I understand it it is not necessary in Slackware 12. In fact Pat says in 'changes and hints'
So I would delete or at least comment all this out from your fstab file. When you plug in a usb drive you ought to get a box coming up asking whether you want it automounted in konqueror.
I have tried this already. Story is below
1. I successfully completed Slackware 12.2 full installation
2. I did no change on fstab file. I preserved fstab file that was produced during the installation
3. I logged on Slack as user
4. I plugged an USB mass storage
5. Slack 12.2 directly tried to open target mount directory, but could not be successful.
(Without my entries on Slack 12.1, it was asked that whether mount or not. When i clicked open content in a directory button, i came to the point on the above picture.But here on slack 12.2 i directly meet the eroor mesage above)
Last edited by sertmusluman; 12-19-2008 at 05:08 AM.
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.
Looking at the screenshot you posted I think you did not add your account to the "plugdev" group.
As to the involuntary automounting, I will have to install 12.2 with KDE3 on a computer tonight to see (I have KDE4 here).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.