I want a bash script to monitor USB ports of a linux server to detect when an external hard drive is plugged in and removed.
When a USB external drive is plugged in or removed, a text file is generated in some temp file about usb drive specs and time.