To Enable / Disable USB
To really disable and enable USB, lets say port 3 and device 2 (you can get the information from lsusb -t)
To really disable and enable USB, lets say port 3 and device 2 (you can get the information from lsusb -t)
- echo '3-2' |sudo tee /sys/bus/usb/drivers/usb/unbind
- echo '3-2' |sudo tee /sys/bus/usb/drivers/usb/bind
Another Method
chmod 000 /media/ here is where device is mounted hence make it 000 -> not able to read or write files
chmod 777 /media/ extact opposite to above i.e able to read and write the files
the above chmod is nothing but change mode which is a part of unix/linux code mainly used for read or write permission that can be represented by numbers.
Comments
Post a Comment