LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-13-2006, 10:18 AM   #1
phyx
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
Preventing Automount for USB Devices on Ubuntu


Hi,

How do you I prevent automounting for usb devices? Every time I plug in my usb stick device, it gets mounted as /media/usbdisk, /media/sdb1. However, I want it to only manually mount. Any thoughts? Here's my fstab. I tried doing things setting a mount point and using a "noauto" option, but it didn't work.

Tested lines to /etc/fstab
/dev/sdb1 /media/udb1 ext3 rw,noauto 0 0
/dev/usbdisk /media/usbdisk ext3 rw,noauto 0 0

Here's the original fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda4 / ext3 noatime,errors=remount-ro 0 1
/dev/sda2 /boot ext2 noatime 0 2
/dev/sda3 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
 
Old 02-13-2006, 10:35 AM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
Try to uninstall the usbmount-package:
Code:
sudo apt-get remove usbmount
Note: The "noauto"-option of 'mount' only indicates that this device will not be moumted when using the '-a'-option. See "man mount" for further details about this.
 
Old 02-13-2006, 06:01 PM   #3
phyx
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Uh, any help on just disabling the automount. I don't really want to permanently remove the automount feature.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ubuntu won't automount, manual mount takes forever leupi Linux - Networking 1 01-22-2006 05:36 PM
usb stick automount mfrangos79 Linux - Hardware 9 09-19-2005 09:55 AM
USB automount options JetJock Debian 1 06-15-2005 11:14 PM
USB automount delta_simon Linux - Software 2 04-09-2005 04:36 AM
USB automount script longnam Slackware 1 03-29-2005 10:53 PM


All times are GMT -5. The time now is 11:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration