LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-04-2012, 05:10 AM   #1
shikha1984
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
disable usb for mass storage device in ubuntu


hello all
please tell me how i can disable usb for mass storage device, however i want to use usb keyboard,usb mouse and usb printer. i want to disable it for pen drive and external hard disk.
Thanks in advance
 
Old 06-04-2012, 05:29 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Look in the policy kit editor for the policy on mounting removable storage.

You could also look at your udev rules. comment out a rule used for mounting usb storage devices and replace it with one that branches to the end target.

I'm not an Ubuntu user. They use something similar to systemd. If there is a targer for automounting external disks, you may be able to disable it. You will need to use Google for this one, or wait for another response on this one. This option may not exist.

I was going to recommend blacklisting the usb-storage module, but on my system it isn't used after mounting a pen drive.

You could also blacklist the vfat and ntfs and ntfs-3g kernal modules to prevent these filesystems from being used.

Last edited by jschiwal; 06-04-2012 at 06:18 AM.
 
  


Reply



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
How to disable USB Mass Storage device ( usb drive ) in Linux vijaush Linux - Newbie 4 06-25-2008 09:43 AM
USB Mass storage Device purefan Linux - Hardware 15 06-06-2005 01:56 PM
usb - mass storage device d1l2w3 Mandriva 7 01-10-2005 10:10 PM
USB Mass Storage Device ebasi Linux - Hardware 2 12-23-2004 02:06 PM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 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