Bitcoin Forum
December 06, 2016, 09:58:49 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [SOVED] force ubuntu to boot after power failure without user input  (Read 8566 times)
WebMonkey
Member
**
Offline Offline

Activity: 100



View Profile WWW
July 25, 2011, 12:42:59 PM
 #1

as the topic says:

how do i get ubuntu to boot after a power failure without any user input?

the mobo is setup to power on after power failure but of course ubuntu is angry and wont boot.

this is at a remote site with no ups available.

'monkey

SOLUTION:
edit /etc/grub.d/00_header
to resemble:


if [ "${recordfail}" = 1 ]; then
  set timeout=0  <----edit this integer so that it is 0 [zero]
else
  set timeout=3
fi

--
the default for set timeout is -1 which of course is "wait forever"
=]

'monkey

Team Calvary Racing

support the ministry
BTC: 1KXvwsDwRM2RUdwtnff3feuYrHH2a1JHnR
LTC: LWdf2pnmQqBkg7GP7rmfGYCZaAQrjsu2Yx
1481061529
Hero Member
*
Offline Offline

Posts: 1481061529

View Profile Personal Message (Offline)

Ignore
1481061529
Reply with quote  #2

1481061529
Report to moderator
1481061529
Hero Member
*
Offline Offline

Posts: 1481061529

View Profile Personal Message (Offline)

Ignore
1481061529
Reply with quote  #2

1481061529
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Rob P.
Member
**
Offline Offline

Activity: 84



View Profile WWW
July 25, 2011, 12:48:07 PM
 #2

Might you define "angry"?

My Ubuntu rigs always boot.  I run them causeless and headless.  I just turn the power supplies off, work on them, then turn the power supplies on and they boot fine.

What are you experiencing?

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
WebMonkey
Member
**
Offline Offline

Activity: 100



View Profile WWW
July 25, 2011, 12:55:27 PM
 #3

i knew i'd get into trouble not being more specific.

and the best part is, i can't at present.

i don't remember what the "screen" looked like the last time it happened.

but a keypress on the keyboard would continue the boot process. (the box has neither keyboard nor monitor at current location)

i know it's my fault for putting the machine "out there" aware of this behavior.

the best i can remember, the "screen" is similar to when windows gets shutdown improperly.
you get some choices about booting but eventually it will timeout and boot with the default option.

this ubuntu 11.04 box does not.

i'll have to wait untill the box can be picked up and brought back here but i'm afraid the quirk will always be there.
i can remote reboot all day long but it won't boot unattended after a power failure.

thanks for the reply though!

'monkey

Team Calvary Racing

support the ministry
BTC: 1KXvwsDwRM2RUdwtnff3feuYrHH2a1JHnR
LTC: LWdf2pnmQqBkg7GP7rmfGYCZaAQrjsu2Yx
WebMonkey
Member
**
Offline Offline

Activity: 100



View Profile WWW
July 25, 2011, 02:11:11 PM
 #4

this may be what i'm looking for:

--
Last Boot Failed or Boot into Recovery Mode
 
If the last boot failed or after a boot into Recovery Mode the menu will be displayed until the user makes a selection. The timeout setting in /etc/default/grub do not apply in this case. To change this behaviour, /etc/grub.d/00_header must be modified (if statement checking recordfail at the end of 00_header).
--

'monkey

Team Calvary Racing

support the ministry
BTC: 1KXvwsDwRM2RUdwtnff3feuYrHH2a1JHnR
LTC: LWdf2pnmQqBkg7GP7rmfGYCZaAQrjsu2Yx
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!