<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Linux Disable USB Devices (Disable loading of USB Storage Driver)</title> <atom:link href="http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: darrell</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-67902</link> <dc:creator>darrell</dc:creator> <pubDate>Fri, 10 Feb 2012 07:56:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-67902</guid> <description>None of these work, is there no proper site for Linux commands</description> <content:encoded><![CDATA[<p>None of these work, is there no proper site for Linux commands</p> ]]></content:encoded> </item> <item><title>By: rupam</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-62862</link> <dc:creator>rupam</dc:creator> <pubDate>Tue, 27 Sep 2011 11:05:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-62862</guid> <description>i tried mv command to disable the usb.it worked but when i try to enable it using modprobe  usb-storage or insmod command it fails.gives me warning with the previous as depreciated config file /etc/modprobe.conf ,all config files belong in /etc/modprobe.d
what to do?plz help me.its urgent</description> <content:encoded><![CDATA[<p>i tried mv command to disable the usb.it worked but when i try to enable it using modprobe  usb-storage or insmod command it fails.gives me warning with the previous as depreciated config file /etc/modprobe.conf ,all config files belong in /etc/modprobe.d<br
/> what to do?plz help me.its urgent</p> ]]></content:encoded> </item> <item><title>By: razvi</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-62547</link> <dc:creator>razvi</dc:creator> <pubDate>Mon, 19 Sep 2011 03:01:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-62547</guid> <description>thnk u dennis</description> <content:encoded><![CDATA[<p>thnk u dennis</p> ]]></content:encoded> </item> <item><title>By: chinmay</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-60759</link> <dc:creator>chinmay</dc:creator> <pubDate>Fri, 15 Jul 2011 06:46:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-60759</guid> <description>I am using this command but Usb not blocking &amp; when i put the pen drive is laptop showing the all files &amp; folders.
what i will do ?</description> <content:encoded><![CDATA[<p>I am using this command but Usb not blocking &amp; when i put the pen drive is laptop showing the all files &amp; folders.</p><p>what i will do ?</p> ]]></content:encoded> </item> <item><title>By: shweta</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-57287</link> <dc:creator>shweta</dc:creator> <pubDate>Thu, 14 Apr 2011 16:51:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-57287</guid> <description>hey, i m using fedora &amp; i want to block all the USB&#039;s &amp; give access to a particular usb device..
I tried changin kernel entries using grub command but it is completely blocking all the usbs
can anyone help me?</description> <content:encoded><![CDATA[<p>hey, i m using fedora &amp; i want to block all the USB&#8217;s &amp; give access to a particular usb device..<br
/> I tried changin kernel entries using grub command but it is completely blocking all the usbs<br
/> can anyone help me?</p> ]]></content:encoded> </item> <item><title>By: Burim Shala</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-56076</link> <dc:creator>Burim Shala</dc:creator> <pubDate>Wed, 02 Mar 2011 09:13:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-56076</guid> <description>Worked for me using Grub Method ,it worked perfectly and i think it disabled also the USB Power ,cuz im not seeing Led&#039;s lighted in my keyboard.</description> <content:encoded><![CDATA[<p>Worked for me using Grub Method ,it worked perfectly and i think it disabled also the USB Power ,cuz im not seeing Led&#8217;s lighted in my keyboard.</p> ]]></content:encoded> </item> <item><title>By: dennis</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-55819</link> <dc:creator>dennis</dc:creator> <pubDate>Mon, 21 Feb 2011 02:50:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-55819</guid> <description>hi, guys.
to remove the driver, move it
# mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root
and update the initramfs
# update-initramfs -k all -c -v
after updating initramfs , surelly it will not reapear.
reboot</description> <content:encoded><![CDATA[<p>hi, guys.</p><p>to remove the driver, move it<br
/> # mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root</p><p>and update the initramfs<br
/> # update-initramfs -k all -c -v</p><p>after updating initramfs , surelly it will not reapear.</p><p>reboot</p> ]]></content:encoded> </item> <item><title>By: Ganesh</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-55269</link> <dc:creator>Ganesh</dc:creator> <pubDate>Mon, 31 Jan 2011 11:58:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-55269</guid> <description>thnk u arun.....
do keep in touch.... post your doubts here......
we&#039;l do the bst to slve them.......</description> <content:encoded><![CDATA[<p>thnk u arun&#8230;..<br
/> do keep in touch&#8230;. post your doubts here&#8230;&#8230;<br
/> we&#8217;l do the bst to slve them&#8230;&#8230;.</p> ]]></content:encoded> </item> <item><title>By: ArunMohan</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-55266</link> <dc:creator>ArunMohan</dc:creator> <pubDate>Mon, 31 Jan 2011 10:31:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-55266</guid> <description>Hey Ganesh, thanks.. Its working.. I think u have vast knowledge in linux. I would like to know more about linux.. how can i contact u??</description> <content:encoded><![CDATA[<p>Hey Ganesh, thanks.. Its working.. I think u have vast knowledge in linux. I would like to know more about linux.. how can i contact u??</p> ]]></content:encoded> </item> <item><title>By: Ganesh</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-55165</link> <dc:creator>Ganesh</dc:creator> <pubDate>Tue, 25 Jan 2011 18:04:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-55165</guid> <description>ah... alas i found some simple way to get through...
For disabling using cmd------------------------------------------
jst move the modules to some other location other than the default..
#mv  /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko  /root(or to any other place)
this is for mass storage blocking....
for blocking other usb connections like netsetter etc use the cmd below
#mv /lib/modules/2.6.18-164.el5/kernel/drivers/usb/serial/usbserial.ko  /root
2.6.18-164.el5 is my kernal version.. u could view ur version by  #uname  -r
For enabling----- do he revrse! bring the file back
#mv /root/usb-storage.ko   /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko
#mv /root/usbserial.ko   /lib/modules/2.6.18-164.el5/kernel/drivers/usb/serial/usbserial.ko
After that type #modprobe -a usbserial
#modprobe -a usb_storage
------------------------SIMPLEST WAY IS TO BLOCK in GRUB------------------------------
Open the /etc/grub.conf and edit the  kernal line and insert &#039;nousb&#039;
kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/    nousb rhgb quiet
#reboot
and U&#039;r done..........
wen u need to enable just edit and remove &#039;nousb&#039; and reboot
---------------------------------ThankYou--------------------------------------------------------------</description> <content:encoded><![CDATA[<p>ah&#8230; alas i found some simple way to get through&#8230;<br
/> For disabling using cmd&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> jst move the modules to some other location other than the default..<br
/> #mv  /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko  /root(or to any other place)<br
/> this is for mass storage blocking&#8230;.<br
/> for blocking other usb connections like netsetter etc use the cmd below<br
/> #mv /lib/modules/2.6.18-164.el5/kernel/drivers/usb/serial/usbserial.ko  /root<br
/> 2.6.18-164.el5 is my kernal version.. u could view ur version by  #uname  -r<br
/> For enabling&#8212;&#8211; do he revrse! bring the file back<br
/> #mv /root/usb-storage.ko   /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko<br
/> #mv /root/usbserial.ko   /lib/modules/2.6.18-164.el5/kernel/drivers/usb/serial/usbserial.ko<br
/> After that type #modprobe -a usbserial<br
/> #modprobe -a usb_storage<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;SIMPLEST WAY IS TO BLOCK in GRUB&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br
/> Open the /etc/grub.conf and edit the  kernal line and insert &#8216;nousb&#8217;<br
/> kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/    nousb rhgb quiet<br
/> #reboot<br
/> and U&#8217;r done&#8230;&#8230;&#8230;.<br
/> wen u need to enable just edit and remove &#8216;nousb&#8217; and reboot<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;ThankYou&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p> ]]></content:encoded> </item> <item><title>By: Ganesh</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-55161</link> <dc:creator>Ganesh</dc:creator> <pubDate>Tue, 25 Jan 2011 15:06:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-55161</guid> <description>sorry......
by just moving /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko to /root doesnt work.....
i think there is something more to do........
pls do rply if anyone has a sugession........</description> <content:encoded><![CDATA[<p>sorry&#8230;&#8230;<br
/> by just moving /lib/modules/2.6.18-164.el5/kernel/drivers/usb/storage/usb-storage.ko to /root doesnt work&#8230;..<br
/> i think there is something more to do&#8230;&#8230;..<br
/> pls do rply if anyone has a sugession&#8230;&#8230;..</p> ]]></content:encoded> </item> <item><title>By: Nima</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-52735</link> <dc:creator>Nima</dc:creator> <pubDate>Fri, 17 Dec 2010 22:11:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-52735</guid> <description>thanks! but i cant disable usb storage with this way! i use debian, please help me! :-s
mv ....    dont work!</description> <content:encoded><![CDATA[<p>thanks! but i cant disable usb storage with this way! i use debian, please help me! :-s</p><p>mv &#8230;.    dont work!</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-50317</link> <dc:creator>Live</dc:creator> <pubDate>Sun, 24 Oct 2010 15:56:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-50317</guid> <description>So I guess, it&#039;s a little TOO Extreme to 000 /media entirely.
Finally, after reading a lot of tutorials and howto&#039;s. vivitek can you update your post. Really, this tutorial doesn&#039;t work for me.
As it turns out, try leaving your usb device storage in your computer port and reboot, see that it will automount even though you&#039;ve removed usb-storage.ko.
After further investigation, I found out the reason why, when I boot, I noticed usb_storage module is still Loaded, dunno, where the kernel gets it from, since I already removed it as stated in this tutorial.
Check it for yourself:
lsmod &#124; grep usb
So I just inserted rmmod usb_storage in the /rc.local of my Ubuntu so it doesn&#039;t get a module upon insertion, of course, remove also the usb-storage.ko from your kernel, beware, upon kernel NEW INSTALL, it will be back there again. So lock your kernel versions!
Whew.
Hope this is my final solution. Thanks.</description> <content:encoded><![CDATA[<p>So I guess, it&#8217;s a little TOO Extreme to 000 /media entirely.</p><p>Finally, after reading a lot of tutorials and howto&#8217;s. vivitek can you update your post. Really, this tutorial doesn&#8217;t work for me.</p><p>As it turns out, try leaving your usb device storage in your computer port and reboot, see that it will automount even though you&#8217;ve removed usb-storage.ko.</p><p>After further investigation, I found out the reason why, when I boot, I noticed usb_storage module is still Loaded, dunno, where the kernel gets it from, since I already removed it as stated in this tutorial.</p><p>Check it for yourself:</p><p>lsmod | grep usb</p><p>So I just inserted rmmod usb_storage in the /rc.local of my Ubuntu so it doesn&#8217;t get a module upon insertion, of course, remove also the usb-storage.ko from your kernel, beware, upon kernel NEW INSTALL, it will be back there again. So lock your kernel versions!</p><p>Whew.</p><p>Hope this is my final solution. Thanks.</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-50315</link> <dc:creator>Live</dc:creator> <pubDate>Sun, 24 Oct 2010 12:27:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-50315</guid> <description>After sometime, none of this still worked for me, I tried to mount a Seagate USB external Hard Disk, and somehow it MOUNTED!
Ubuntu, what a shame.
So I though of a quick and dirty fix.
sudo chmod 000 /media
Try to mount your media you suckers. I kid, I kid.</description> <content:encoded><![CDATA[<p>After sometime, none of this still worked for me, I tried to mount a Seagate USB external Hard Disk, and somehow it MOUNTED!</p><p>Ubuntu, what a shame.</p><p>So I though of a quick and dirty fix.</p><p>sudo chmod 000 /media</p><p>Try to mount your media you suckers. I kid, I kid.</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-50256</link> <dc:creator>Live</dc:creator> <pubDate>Thu, 21 Oct 2010 10:27:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-50256</guid> <description>Nevermind, I solved it by:
sudo gconf-editor
Uncheck &amp; Set As Default:
apps&gt;nautilus&gt;preferences&gt;media_automount
Thanks. :)</description> <content:encoded><![CDATA[<p>Nevermind, I solved it by:</p><p>sudo gconf-editor</p><p>Uncheck &amp; Set As Default:</p><p>apps&gt;nautilus&gt;preferences&gt;media_automount</p><p>Thanks. :)</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-50251</link> <dc:creator>Live</dc:creator> <pubDate>Thu, 21 Oct 2010 07:45:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-50251</guid> <description>Hi JAS, yes I&#039;ve tried what you said, to REBOOT, but try this:
*assuming you&#039;ve already DISABLED USB Storage Device AutoMount in Lucid Lynx*
1. Turn OFF computer
2. Insert any USB Storage Device
3. Turn ON computer &amp; boot to your desktop
4. Wala! USB Storage Device is alive &amp; kicking in there!</description> <content:encoded><![CDATA[<p>Hi JAS, yes I&#8217;ve tried what you said, to REBOOT, but try this:</p><p>*assuming you&#8217;ve already DISABLED USB Storage Device AutoMount in Lucid Lynx*</p><p>1. Turn OFF computer<br
/> 2. Insert any USB Storage Device<br
/> 3. Turn ON computer &amp; boot to your desktop<br
/> 4. Wala! USB Storage Device is alive &amp; kicking in there!</p> ]]></content:encoded> </item> <item><title>By: JAS</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-48808</link> <dc:creator>JAS</dc:creator> <pubDate>Sun, 15 Aug 2010 07:11:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-48808</guid> <description>what OS &amp; version is yours?
if ubuntu only what you have to do is:
ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
mv  /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko  /root
reboot
after that you may check &quot;dmsg&quot; for any bugs accruing</description> <content:encoded><![CDATA[<p>what OS &amp; version is yours?</p><p>if ubuntu only what you have to do is:</p><p>ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko<br
/> mv  /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko  /root</p><p>reboot</p><p>after that you may check &#8220;dmsg&#8221; for any bugs accruing</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-48523</link> <dc:creator>Live</dc:creator> <pubDate>Tue, 27 Jul 2010 13:33:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-48523</guid> <description>This only works but after I restart my Lucid Lynx, the USB device storage is mounted again on the desktop.
I&#039;ve already tried.
sudo gedit /etc/rc.local/
sudo rmmod usb_storage
sudo modprobe -r usb_storage
echo &#039;install usb-storage : &#039; &gt;&gt; /etc/modprobe.conf
ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root
How do I really unmount it?
Nothing works for me!!!</description> <content:encoded><![CDATA[<p>This only works but after I restart my Lucid Lynx, the USB device storage is mounted again on the desktop.</p><p>I&#8217;ve already tried.</p><p>sudo gedit /etc/rc.local/</p><p>sudo rmmod usb_storage<br
/> sudo modprobe -r usb_storage</p><p>echo &#8216;install usb-storage : &#8216; &gt;&gt; /etc/modprobe.conf</p><p>ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko<br
/> mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root</p><p>How do I really unmount it?</p><p>Nothing works for me!!!</p> ]]></content:encoded> </item> <item><title>By: Live</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-48506</link> <dc:creator>Live</dc:creator> <pubDate>Mon, 26 Jul 2010 01:59:35 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-48506</guid> <description>This works great!</description> <content:encoded><![CDATA[<p>This works great!</p> ]]></content:encoded> </item> <item><title>By: ragesh</title><link>http://www.cyberciti.biz/faq/linux-disable-modprobe-loading-of-usb-storage-driver/#comment-45092</link> <dc:creator>ragesh</dc:creator> <pubDate>Tue, 08 Dec 2009 06:07:49 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=3487#comment-45092</guid> <description>dear sir,
how to disable pendrive in domain user ? please give me replay</description> <content:encoded><![CDATA[<p>dear sir,<br
/> how to disable pendrive in domain user ? please give me replay</p> ]]></content:encoded> </item> </channel> </rss>
