LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-23-2016, 10:30 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
How to prevent auto-mount a specific USB drive


I have just installed 15.10. I need to prevent a specifi USB drive from auto-mounting because it is used as an external backup drive and should not be normally visible. However, I do still want users to be able to have their own USB device auto-mounted when inserted.

With 14.04 I used instructions such as: http://askubuntu.com/questions/30112...-auto-mounting to create a udev rule (although I never really tested it), but 15.10 does not ship with udisks and `apt-get install udisks` gives "No installation candidate".

How do I accomplish this on 15.10?
 
Old 01-24-2016, 03:01 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Have you tried putting it in fstab by UID and noauto option?
 
Old 01-25-2016, 06:43 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Well, that worked just fine! I wonder why the complex udev rule solution is the only one I found posted -- which I don't think works anyway unless the automounted drive has actually been mounted.
 
  


Reply

Tags
auto-mounting, usb drive



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] USB drive won't auto mount Firefox54 Linux - Hardware 11 10-26-2013 05:16 PM
Way to make autofs mount to specific USB flash drive to specific folder? utahnix Linux - Software 2 11-24-2010 05:27 PM
Auto mount USB drive to specified mount point after reboot smallbook Linux - Server 7 07-21-2010 04:40 AM
Trying to use udev to auto mount usb drive njnear Linux - General 5 12-04-2007 01:53 AM
auto mount usb drive jag Slackware 3 07-28-2006 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration