Is there a way to make a hard drive “hot swappable?”
I have a hard drive I use on the road to back up videos. At night I want to plug it into my dietpi, have the pi recognize it, and Syncthing to start Syncing with my home hard drive. In the morning, unplug the hard drive and take it with me.
Preferable no intervention other than plug and unplug.
Possible?
Theoretical this might be possible, but you will need to setup own udev rules to trigger specific actions if the HDD gets connected.
That might be a good starting point. But you need to take it with care. Some parts like desktop notification might not be needed. As well mount point would need to be adjusted on your needs. And finally the clean up during unmount would need to be reviewed.
Thanks so much for the input! Happy Holidays.