(NOT SOLVED YET)) How to disable USB storage only (USB headets should continue to work)
David Taveras
d3taveras38d3 at gmail.com
Fri Apr 2 18:51:59 UTC 2010
Hello guys..
Iam trying to disable only usb-storage support. I have rm -fr
/lib/modules/2.6.31-20-generic/kernel/drivers/usb/storage/ .. and then
rebooted.
If i pop in a USB drive once its booted back then it works as expected
(cannot mount the USB drive) .. but if I pop in the USB drive while
the OS is booting once it enters the deskptop i see the drive already
mounted. What is the correct way to do this?
I also tried:
# echo 'install usb-storage : ' >> /etc/modprobe.conf
Ive noticed that when I do the test of inserting the USB driver before
the OS boots when it comes up there is a directory created by the OS
in /sys/bus/usb/drivers/usb-storage
Where is the OS still loading the drivers from? I only have 1 kernel installed.
David
On Fri, Mar 26, 2010 at 11:54 PM, Swapnil Jain <swapnil at pisces.net.in> wrote:
> Dear Daniel,
>
>
> Type the following command:
>
> # echo 'install usb-storage : ' >> /etc/modprobe.conf
>
> You can also remove USB Storage driver, enter:
>
> # 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
>
>
> BIOS option
>
> You can also disable USB from system BIOS configuration option. Make sure BIOS is password protected.
>
> Grub option
>
> You can get rid of all USB devices by disabling kernel support for USB via GRUB. Open grub.conf or menu.lst and append "nousb" to the kernel line as follows:
>
> kernel /vmlinuz-2.6.18-128.1.1.el5 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 nousb
>
>
> Save and close the file. Once done just reboot the system:
> # reboot
>
>
> Thanks!
> ------------------------------------------------------------
> Swapnil Jain ( http://swapnil-indore.blogspot.com/ )
> [Contact for Secure, Robust & Easy to Use Security Solutions]
> Networking & Security Consultant ( http://www.pisces.net.in )
> Indore, India
> ------------------------------------------------------------
> E-mail: swapnil at pisces.net.in
> GTalk : swapnil at pisces.net.in
> MSN: jswapnil at hotmail.com
> Skype : sj1410
> YIM : sj1410
> ------------------------------------------------------------
>
>
>
> On 27-Mar-2010, at 12:09 AM, David Taveras wrote:
>
>> Hello,
>>
>> Using karmic.
>>
>> I tried pico /etc/modprob/blacklist.conf
>>
>> Added:
>>
>> blacklist usb-storage
>> blacklist usb_storage
>>
>> I rebooted then poped a USB pendrive but it still works. What is the
>> correct way to do this?
>>
>> Daniel
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list