[SOLVED] How to stop mounting all hard drives at startup in Ubuntu?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 stop mounting all hard drives at startup in Ubuntu?
I am running Ubuntu precise (12.04).
I installed and ran ntfs-config because I was an error while trying to copy files from my hard drive to a usb device. After checking the
'enable write support for external file'
box that issue was fixed; however, all my hard drives got mounted for some reason. I unmounted them with:
$ sudo umount /dev/...
but when I restart the computer they are all monted again. Is there a way to make sure that they don't mount upon startup?
If they are in /etc/fstab, you could set the mount to "noauto."
Here's a line from my fstab. Where it says "auto," substitute "noauto." Then you will have to mount them manually, either from the command line or through the file manager:
Thanks for your quick reply; unfortunatelly, I don't see 'auto' option anywhere, so would really appreciate your help. Here's the file's contents. Out of the once listed I only need sde5 mounted.
I tried installing dconf-editor and unchecking the box for 'org.gnome.desktop.media-handling automount' but to no avail. I'm afraid to mess with /etc/fstab file without really knowing what I am doing. From the posts above I gather that I can substitute
Code:
defaults,noauto
where ever I have
Code:
defaults,nls=utf8,umask=0222
that is do I do change the previous line to example 1:
Code:
defaults,noauto,nls=utf8,umask=0222
or to example 2:
Code:
noauto,nls=utf8,umask=0222
Also I think that the problem that I am experiencing now is a result of installing ntfs-config which overwrote my original /etc/fstab is there a way to get those settings back?
UPDATE: Okay I looked in the /etc and found a file called fstab-ntfs-cofig-save so I just replaced the fstab file with it and everything started working as desired
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.