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.

  • Landless2029@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 hours ago

    You have a 3.5" based HDD (aka desktop drive). many people use 2.5" drives (laptop drives) since they get power from the PC with just usb

      • Landless2029@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        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.