Results 1 to 2 of 2
I have a usb drive which is always inserted in my USB slot. However, I do not often use it (but do not want to take it out). Currently, it's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-17-2012 #1Just Joined!
- Join Date
- Dec 2012
- Posts
- 1
Prevent specific USB device from automounting
I have a usb drive which is always inserted in my USB slot. However, I do not often use it (but do not want to take it out). Currently, it's being auto-mounted every time I start my computer. I feel this might over time wear out the USB drive unnecessarily. So my question is: how to prevent this particular USB drive from being mounted automatically? Whenever I need it, I'll mount it manually.
- 12-17-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,687
Hello and welcome!
It is probably udev that is doing the automounting, so the best approach would probably be to track down the rule that is doing it, and create an exception.
In the interim, you can try and edit the the /etc/fstab file, which controls the mounting of disk drives at boot time. say your USB storage device is /dev/sdb1, you can try this in /etc/fstab:
just make sure that the filesystem (e.g., vfat) is correct, and that the mount point (/mnt/usbdisk) exists. to mount it manually, just do (as root):Code:/dev/sdb1 /mnt/usbdisk vfat noauto 0 0
if you want to mount as a regular user, add "user" in the options column (4th field) after noauto (comma-separated).Code:mount /mnt/usbdisk


Reply With Quote
