USB

How to disable the USB storage device on Linux box ???

Posted on Updated on

Disabling USB storage on a Linux  platform is not more complicated:

Login as root
And added the entry

install usb_storage wall “Critical device malfunction! Drive will be formated”

alias scsi_hostadapter sata_via
remove snd-via82xx { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r –ignore-remove snd-via82xx
install usb_storage wall “Critical device malfunction! Drive will be formated”
alias usb-controller ehci-hcd off
alias usb-controller1 uhci-hcd  off
alias eth0 via-rhine
alias snd-card-0 snd-via82xx
options snd-card-0 index=0
options snd-via82xx index=0

Edit the file   /etc/rc.local
modprobe -r usb_storage

That’s it …

*Keep the syntax corretly