I'm currently running Octoprint on my Ubuntu Linux server machine with a TP Link wireless power outlet. I can turn off power to the printer via the TP Link outlet remotely as necessary. In general, this works pretty well, but every so often it ends up that my Ubuntu server can no longer "see" the printer via USB and I'm forced to restart the server. Given that the server drives a lot of things in the house, it is a huge pain to be forced to reboot the server.
I've been considering switching over to an Octopi setup instead, with the Pi driven off of a buck converter connected to my PSU. However, if I do that, I can't see how to avoid corrupting the SD card when the power is cut off.
How do other people handle this kind of setup? The other (better?) option would be if I was able to reset the USB subsystem on my current server setup without having to restart the whole server machine. Suggestions would be welcome there as well.