[SOLVED] Ubuntu automatically mount windows partitions?
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.
Hi all....Ubuntu is automatically mounting all windows partitions. I wanted to mount only one common partition i,e NTFS storage partition to mount and used for both OSs i,e windows and Ubuntu. I unticked all partitions in NTFS configuration tools but in vain.
You have ntfs partitions on sda2, sda3 and sda9. Put a hash mark (#) to the left of the line (the beginning of the line) referencing the partitions(s) you do not want mounted. You could also delete the line but make sure you have a backup first. Need to use sudo.
You have ntfs partitions on sda2, sda3 and sda9. Put a hash mark (#) to the left of the line (the beginning of the line) referencing the partitions(s) you do not want mounted. You could also delete the line but make sure you have a backup first. Need to use sudo.
Thanks yancek for the reply.
Do I have to put # in the terminal window?There is already # for the entries?
this should open up the file in a text-editor window---go to the lines that start with UUID and put a # at the beginning of them.
reboot and wont mount the partitions
this should open up the file in a text-editor window---go to the lines that start with UUID and put a # at the beginning of them.
reboot and wont mount the partitions
Thanks mf93! This command only open in terminal. Its not opening in text editor. Further help will be appreciated.Thanks.
Look at the reference at the bottom of the terminal.
Hint: ^A means Ctrl+A, ^B is Ctrl+B, etc.
Thanks for the reply and clues. But how to save this file? I don't know all these jargons please.When I want to write out the file, it ask me a name. Should I give a separate name? I am afraid of things going wrong????
p.s I would definitely recommend spending some time learning how to use the linux terminal- it is an extremely useful tool and will help you quickly solve a lot of problems similar to this one. I would also recommend researching a little bit of how linux works because it is pretty intuitive and can help you debug problems exponentially faster than using this forum. It can be boring and tedious, but it is definitely worth it in the long run.
Do you understand that "saving" a file is writing it to the same name?
AFAIK pico (actually it's nano, a free, open-source clone of pico) automatically puts in the name of the original file when you choose to "WriteOut". Also, it prompts you if you want to write it when you exit with unwritten changes.
For learining the command line, see the LinuxCommand tutorial, linked to in my sig.
p.s I would definitely recommend spending some time learning how to use the linux terminal- it is an extremely useful tool and will help you quickly solve a lot of problems similar to this one. I would also recommend researching a little bit of how linux works because it is pretty intuitive and can help you debug problems exponentially faster than using this forum. It can be boring and tedious, but it is definitely worth it in the long run.
Thanks a million for the help. Ultimately it got solved. I will try to give a time to learn terminal commands.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.