I’m running a Ubuntu server on my old laptop with an external HDD connected to it. The external HDD is powered independently from the laptop, as it is plugged into the wall.
During a power outage, my laptop remains operational due to its battery, but the HDD shuts down. When power is restored, my laptop does not automatically remount the HDD, and I have to reboot the system manually to access it.
Does anyone know how I can resolve this issue?
Edit: Not sure if this added context changes anything, but this is the HDD I’m using. It’s a 3.5" HDD that gets its power directly from the wall.


So that means it’s not possible for me to power my 3.5" HDD with just USB, right?
100% correct. You need a wall adapter. As many have said we all recommend a UPS (Uninterruptible Power Supply) or battery backup for your stack.
You can get the cheapest one if it’s just short term outage or brown outs (grid low volting).
Based on your wattage the capacity of the UPS will dictate how long it’ll last during an outage.