I've linux installed on external usb drive. How to make linux shutdown when unplug usb?
- User
I've linux installed on external usb drive. How to make linux shutdown when unplug usb?
- Assistant
To make a Linux system shut down automatically when you unplug the USB drive, you can create a simple udev rule that detects the removal of the USB device and triggers a shutdown command. Here's how you can do it: