Disabling automount for external HD?

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Disabling automount for external HD?

Postby midnightreport on Sat May 23, 2009 4:39 pm

Hello friends,

I have been using Felicia for a few months now, but this is my first post to the forums. Loving Linux so far, by the way.

Anyway, my n00b question. Awhile back, when I plugged in an external USB hard drive with Mint running, it would throw up a dialog box asking for my password for authorization to mount the drive. I recall checking a box saying something like "always automount"...

When I plug in my external hard drive, I want Nautilus to display the drive in the left-hand column of "Places", but NOT automatically mount the drive. How would I go about setting that up?

Thank you so much!
midnightreport
Level 1
Level 1
 
Posts: 1
Joined: Sat May 23, 2009 4:30 pm

Linux Mint is funded by ads and donations.
 

Re: Disabling automount for external HD?

Postby Husse on Sat May 30, 2009 2:06 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19714
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 42 guests