Bitcoin Forum
May 05, 2024, 09:04:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOVED] force ubuntu to boot after power failure without user input  (Read 9094 times)
WebMonkey (OP)
Member
**
Offline Offline

Activity: 100
Merit: 10



View Profile WWW
July 25, 2011, 12:42:59 PM
Last edit: July 25, 2011, 03:08:15 PM by WebMonkey
 #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
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
1714899869
Hero Member
*
Offline Offline

Posts: 1714899869

View Profile Personal Message (Offline)

Ignore
1714899869
Reply with quote  #2

1714899869
Report to moderator
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


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 (OP)
Member
**
Offline Offline

Activity: 100
Merit: 10



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 (OP)
Member
**
Offline Offline

Activity: 100
Merit: 10



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!