Unplugging external drive doesn't trigger a shutdown

Hello Kicksecure folks,

I installed Debian on my brand new Western Digital external SSD drive. Then I proceeded to distro morph it following the guide (prob should have went with the ISO route) and everything works as intended.

However when I unplug my SSD or it comes unplugged somehow (has happened before) it doesn’t trigger a full shutdown?

Why doesn’t it fully shutdown when unplugged?
I do want to add that also set up LUKS when I installed Debian.

Do I need to create a udev rule that runs a shutdown script (unmount, cryptsetup luksClose, and sync)?

panic button / panic shutdown / BusKill - The USB kill cord for your laptop - Development - Whonix Forum alike functionality is not a standard, default functionality of Debian (or any operating system that I am aware of).

Adding such a feature is planned but will take time.

2 Likes

Ok, in the meantime though is there a udev starting point I could try to test?

I’d be willing to test anything related to implementation of such a feature.

@NTH9R6 I think you might be confusing TAILS and kicksecure. TAILS is the only OS that I know-of that is designed to trigger an emergency shutdown when the USB stick that it’s installed-on is removed:

But, as Patrick pointed-out, probably the easiest way to get your system to shutdown when a USB device ejects is BusKill, which can be installed on debian-based systems:

sudo apt-get install buskill
buskill

But if you prefer to do this with udev, we have a guide on that too:

Update: it actually looks like privacy__tech_tips@tube.tchncs.de just published a video showing how to do this on kicksecure today

They show how to do the self-destruct trigger, but you can trivially change that to lock the screen instead, if you prefer.

Feel free to experiment with this.