Disable USB storage device from Linux system

Disable USB storage device from Linux system 

Our team has decided to share the knowledge of Linux system between the groups of people...There are two methods to disable the USB device from the linux system .We use redhat 7.3 linux operating system for our channel.If you like the content please subscribe our channel.
1)Method-1:-
** create a configuration file in directory /etc/modprobe.d
** file name should be usb-storage.conf
** write the following commands in that file using any editor
** install usb-storage /bin/true
** restart the system
2)Method-2:-
** unmount the storage device
** umount /dev/sdb1
** if you want to use the pendrive in future mount it to any location 
** mount /dev/sdb1  /a

Comments