Open a Terminal by using Ctrl+Alt+T or Applications->Accessories->Terminal. You need to have root access to do this tweak. Copy and paste the following command in the Terminal. Type the password for the user, when prompted.
sudo gedit /etc/modprobe.d/blacklist.conf
Now copy and paste this line “blacklist usb_storage” at the end of the file. After adding this save it and close the gedit.
2) Add this line “modprobe -r usb_storage” before exit 0 in /etc/rc.local
To add : Copy and paste the following command in the Terminal. Type the password for the user, if prompted.
sudo gedit /etc/rc.local
The above command will open the rc.local file in gedit. Now copy and paste this line “modprobe -r usb_storage” before the last line of the file. After adding this save it and close the gedit. Check the below screen shot for Fedora and Ubuntu.
sudo gedit /etc/modprobe.d/blacklist.conf
Now copy and paste this line “blacklist usb_storage” at the end of the file. After adding this save it and close the gedit.
2) Add this line “modprobe -r usb_storage” before exit 0 in /etc/rc.local
To add : Copy and paste the following command in the Terminal. Type the password for the user, if prompted.
sudo gedit /etc/rc.local
The above command will open the rc.local file in gedit. Now copy and paste this line “modprobe -r usb_storage” before the last line of the file. After adding this save it and close the gedit. Check the below screen shot for Fedora and Ubuntu.
No comments:
Post a Comment