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
-
- 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?
Code: Select all
boot_delay=300
- 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?
Out of curiosity - why?
- Ted B. Hale
http://raspberrypihobbyist.blogspot.com
http://raspberrypihobbyist.blogspot.com
Re: is it possible to pause the boot process for 5 minutes?
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.
sorry for bad english, I hope you got the message.
-
- Posts: 4277
- Joined: Sun Jan 15, 2012 1:11 pm
Re: is it possible to pause the boot process for 5 minutes?
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)
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)
(One of the best lines I've seen on this board lately)
Re: is it possible to pause the boot process for 5 minutes?
Well it didn't work. I use an sd card and a usb stick to boot my Pi according to this tutorialdom wrote:in config.txtCode: Select all
boot_delay=300
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;
Re: is it possible to pause the boot process for 5 minutes?
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
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