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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s