Disabling automount for external HD?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Husse

Re: Disabling automount for external HD?

Post by Husse »

This can be done with the use of fstab but only separately for each drive
man fstab
I am not sure if there is a simpler way
A few reasonably simple steps have to be taken
Create a mountpoint - I suppose this is your data so a folder in /home/your-name will do fine
Plug in the USB disk and run blkid (possibly sudo blkid) (in the terminal)
Save the UUID you get for the disk without the surrounding quotes
Edit fstab

Code: Select all

gksu gedit /etc/fstab
Add a line like this
theUUIDgoeshere /home/your-name/mydrive msdos user,noauto 0 0
I put msdos there because lots of pendrives use FAT, but you must change it to what ever you have (ext3 or nfts would be the alternatives I guess)
It's the noauto that does the trick
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Beginner Questions”