Simple method to disable usb disk on linux

There are many way in the internet. But I think of this way.
You can disable the usb disk, and you can still use the keyboard.

1.
find /lib/modules/-name “storage"

/lib/modules/2.6.9-34.ELsmp/kernel/drivers/usb/storage
/lib/modules/2.6.9-34.0.2.EL/kernel/drivers/usb/storage
/lib/modules/2.6.9-34.EL/kernel/drivers/usb/storage
/lib/modules/2.6.9-34.0.2.ELsmp/kernel/drivers/usb/storage

2.
you can change “usb-storage.ko" to another name in these folder

or delete “usb-storage.ko".
( or rm /lib/modules/`uname -r`/kernel/drivers/usb/storage)

If you restore “usb-storage.ko" , system will connect usb without reboot.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s

%d 位部落客按了讚: