Take the 2-minute tour ×

I am using Ubuntu 10.10. I want to disable my usb port due to some resign.
so how i can disable my usb port and after that how i can enable it..

share|improve this question
Do you want to disable USB storage devices? Why are you still using such an old Ubuntu? –  david6 Apr 23 '12 at 5:15
My answer only applies for a specific set of circumstances. Why is it you want to disable a usb port, for what type of device, and are you trying to disable all usb ports or just one? –  hbdgaf Apr 23 '12 at 8:19
@david6 10.10 is not that old. Less than two years ago, after all. Some institutions are still using 8.04, which is a LTS; desktop support for it just ended last year, with server support ending now. –  Chan-Ho Suh Apr 23 '12 at 20:52
Define "disable". Do you want to remove the power or make Ubuntu ignore any USB device? –  Lekensteyn Apr 23 '12 at 22:09
add comment

4 Answers

You could try this, although may cause other issues:

sudo echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf


share|improve this answer
how can we re enable it via command line?? –  Sushantp606 Nov 30 '13 at 8:43
Edit file /etc/modprobe.d/blacklist.conf, to remove line which that this added. ie. "blacklist usb-storage". You could use vim or gedit, from the command line. eg. sudo vim /etc/modprobe.d/blacklist.conf –  david6 Nov 30 '13 at 9:16
thanks , yeah it will work for sure , but cant we do it directly via terminal –  Sushantp606 Nov 30 '13 at 9:23
add comment

Just rename storage to storage-old:


share|improve this answer
change the kernel revision with the kernel ver. you have –  Osama El-gedawy Feb 22 '13 at 21:24
add comment

You're not being very specific.

List the USB modules currently loaded:

lsmod | grep usb

You can unload the modules with

sudo rmmod usb_storage    # for disks

Be carefull, you can easily lock yourself out if you're using USB keyboard/mouse and remove the usbhid module.

share|improve this answer
add comment

This is not strictly an Ubuntu or Linux solution, but you could go into the bios of the computer and disable the usb ports from there.

Some computers will allow you to select which ports to disable (HP).

You can then also password protect the bios to ensure they are not just switched on again.

You may also want to pay attention to what usb input devices (keyboard / mouse) you have before disabling usb.

share|improve this answer
add comment

Your Answer


