UbuntuThis forum is for the discussion of Ubuntu 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.
I want to disable automounting of removable media such as anything on USB, memory cards, and even eSATA. I do want the device node to be set up, but that's it.
On Ubuntu 6.10 there was a System -> Preferences -> Removable_Drives_And_Media that allows you to set that on a per user basis. (TMK, hot plugged devices will not automount unless somebody is logged in at the GUI.) I would imagine the current versions of Ubuntu would have something similar. Enforcing that system wide ... that might take a little more digging.
When I need to be sure devices are not automounted, I will be doing things via text console (e.g. Ctrl+Alt+F1) anyway. So I could just not log in to the GUI. But there is a catch. I need to have the wireless network running. So this would work if I can get the wireless network to autostart w/o any user logged in (something others have asked for, too, and for which I've not yet seen an answer).
I don't know what effect that has on the device node or what you need to do to make the changes effective; for what I wanted a reboot was good enough. The hald man page suggests it's OK (if a little more complex than usual) to restart hald on a running system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.