blades
Posts: 10
Joined: Wed Oct 10, 2012 8:21 am

is it possible to pause the boot process for 5 minutes?

Tue Nov 13, 2012 5:09 pm

Hi, I was wondering if it is possible to pause the boot process for 5 minutes and how.
That pause must be done first thing, before Pi checks anything else.
Thanx in advance for any replies

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5710
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: is it possible to pause the boot process for 5 minutes?

Tue Nov 13, 2012 5:16 pm

Code: Select all

boot_delay=300
in config.txt

User avatar
tedhale
Posts: 114
Joined: Thu Sep 20, 2012 4:52 pm
Location: Williamsburg, VA, USA
Contact: Website

Re: is it possible to pause the boot process for 5 minutes?

Tue Nov 13, 2012 9:07 pm

Out of curiosity - why?
- Ted B. Hale
http://raspberrypihobbyist.blogspot.com

blades
Posts: 10
Joined: Wed Oct 10, 2012 8:21 am

Re: is it possible to pause the boot process for 5 minutes?

Tue Nov 13, 2012 9:46 pm

my Raspbian does not connect automatically to the router if I have a power cut off in house, that's because Pi boots faster than router connects to internet so I want to tell Pi to pause for a while so to give router time to boot. Then, after paused Pi boots, it boots and connects to a connected router.
sorry for bad english, I hope you got the message.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: is it possible to pause the boot process for 5 minutes?

Tue Nov 13, 2012 10:32 pm

That makes sense.

Of course, as a solution, it sounds kludgey, and people (including yours truly) will recommend that you get a UPS (at least get a UPS for the router - that's the key piece of equipment)
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

blades
Posts: 10
Joined: Wed Oct 10, 2012 8:21 am

Re: is it possible to pause the boot process for 5 minutes?

Wed Nov 14, 2012 1:44 pm

dom wrote:

Code: Select all

boot_delay=300
in config.txt
Well it didn't work. I use an sd card and a usb stick to boot my Pi according to this tutorial
http://www.networkinghowtos.com/howto/r ... ory-stick/
which is working ok, I added boot_delay=120 to config.txt and it boots never, after 2 minutes Pi shows a vertical magenta line to the left of the monitor and as I said it never boots.
Is there something I did wrong;

T-i-m
Posts: 47
Joined: Sun Jun 15, 2014 8:02 pm

Re: is it possible to pause the boot process for 5 minutes?

Thu Sep 18, 2014 8:30 am

I know this is an old thread but I had this very similar question and didn't really find a noob-friendly answer that I could understand.

Anyway, yes you can pause, the boot process by adding a line to the /boot/config.txt
Run this command:
sudo nano /boot/config.txt

And add the line
boot_delay=5

to delay the boot process for 5 seconds. For some reason I couldn't go higher then 5 or maybe 7 seconds on my B+. I didn't investigate this further but think this was just something related to HDMI, the raspberry probably booted but didn't start using the HDMI.

Anyway, this was not the solution in my case. I wanted to pause the boot process later.
To do this I found the scripts in the folders:
/etc/rc.XXX
All the scripts in those folder that start with and S are run at various stages in the boot process. So in my case the solution was to add a line:
sleep 7
to sleep the boot process for 7 seconds. That line can be added somewhere in any of those files.
In my case I added it to /etc/rcS.d/S01fake-hwclock using this command to edit the file:
sudo nano /etc/rcS.d/S01fake-hwclock

Return to “Debian”