Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liberodark/blockusb


https://github.com/liberodark/blockusb

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# blockusb

## Install

### Dowload :
`wget -O /usr/bin/usb-umount.sh https://raw.githubusercontent.com/liberodark/blockusb/master/usb-umount.sh`

### Make executable :
`chmod +x /usr/bin/usb-umount.sh`

### Create file usb-umount.rules :
`nano /etc/udev/rules.d/100-usb-umount.rules`

### Add in usb-umount.rules :
`KERNEL=="sd*", ACTION=="add", RUN+="/usr/bin/usb-umount.sh"`

### Reload udevadm :
`udevadm control --reload-rules`

### Detect usb :
`ls -lha /dev/disk/by-id/usb-*`