Automatic Reboot After Power Failure

37,805

Solution 1

That's not something you can control in your operating system. That's what the BIOS is for. In most BIOS setups there'll be an option like After power loss with possible values like Power off and Reboot.

Solution 2

In the BIOS, look for something like "always restart on power failure"

In Ubuntu, edit /etc/default/grub.

sudo nano /etc/default/grub

and add

GRUB_RECORDFAIL_TIMEOUT=5

Then run:

sudo update-grub

This will make your machine display the boot options for 5 seconds before it boot the default option (instead of waiting forever for you to choose one).

Share:
37,805

Related videos on Youtube

sarwar
Author by

sarwar

Updated on September 18, 2022

Comments

  • sarwar
    sarwar almost 2 years

    I want a machine that loses power to automatically reboot when power is available. I've looked around and haven't found a solution that works for 11.04.

    Purportedly at one point you could do:

    echo 'server_mode=1' > /proc/pmu/options

    However, my install doesn't have a /proc/pmu folder. I assume this is still possible, where is the setting available?

    EDIT:

    If this isn't possible from the OS, is there a way to script these sorts of changes to BIOS or is this something that requires physical access to the machine on boot to manually edit the settings?.

  • Bevan
    Bevan over 5 years
    A UPS won't auto boot the machine, which is what the OP is asking. It will restore mains power, sure, but the BIOS has to kick the machine into action