Page 1 of 1

Re: Disabling automount for external HD?

Posted: Sat May 30, 2009 2:06 pm
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