Hi there. Sorry if this is not the right forum area for this question. Please, move the thread where appropriate.
I am thinking about a PXE microSD card flasher. The idea is to boot a Raspberry PI from PXE, with no microSD card. That initial network OS would wait until the user inserts a microSD WHILE THE RASPBERRY IS ALIVE AND WAITING, then the OS connects to a image repository and starts flashing the microSD card, rebooting the RPI to the microSD card when done.
I need the microSD to be initially unplugged because I need the Raspberry PI to do a PXE boot (I am talking about RPI 3B+ here) and I can not count on what could be in the microSD. After booting, I need to be able to plug the microSD with out damaging the RPI or the microSD card, in order to overwrite it.
So my question is simple: Would be electrically safe to insert a microSD card in a running (PXE booted) Raspberry PI? I would like to know about Raspberry PI 3B, 3B+ and 4B.
I am interested in the electrical aspect, not the filesystem corruption aspect.
Also, can I know that a microSD is present beside trying to read a particular sector until success?
In the same line, just out of curiosity, would it be electrically safe to unplug a microSD from a powered on RPI?. Lets suppose the that filesystem was flushed & unmounted to avoid logical corruption.
If you have a better approach or cool suggestion, let me know.
Thanks a lot.
PS: If somebody else already did something similar, please, let me know.
