Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a USB drive that is, for all intensive purposes, permanently inserted. It's a licensing thumb drive for a Windows application I use.

How can I prevent Linux from automounting that drive, since I will never use it while on Linux. My specific flavor is Linux Mint 14 Cinnamon, but I'm assuming this might have something to do with fstab.

share|improve this question
How does your automount works? If its based on udev, simply restrict this device by VID/PID. – Eddy_Em Mar 10 '13 at 5:45
I doubt it has anything to do with fstab (but if it does, just open up /etc/fstab and comment out the offending line). – davidgo Mar 10 '13 at 8:00
auto-mounting using fstab takes place at the time of booting. Once loaded and running, fstab entries is not looked for unless told to using mount -a command. – paintbox Mar 12 '13 at 17:54
up vote 0 down vote accepted

If the usb is permanently plugged in you should be able to prevent the usb from auto-mounting with /etc/fstab file. An example of fstab entry follows.

/dev/sdb1 /media/usb auto ro,noauto,user,exec 0 0

If you don't want the device to be mounted automatically, use the noauto option as mentioned in the fourth column. With noauto, the device can be mounted only explicitly. Auto is the default option.

The first column specifies device name. Find your usb's device name using sudo fdisk -l.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.