Configure automatic fsck time at boot

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
hugonapoli
Posts: 3
Joined: Wed 30 Mar 2016, 22:27
Location: Uruguay
Contact:

Configure automatic fsck time at boot

#1 Post by hugonapoli »

Hi, people.
This is my first answer here, after searching on Google and finally here, without finding a solution (still).

I work as a hardware and software technician in various educative institutions, and I always build Puppy servers for the administrative sections, and for the informatic room.
Until now, I could do all what I needed with Puppy Linux (I always used the 'Slacko' edition), but I'm stucked this time.

Sometimes, some of the servers shutdowns improperly, and at reboot, Puppy does an automatic fsck. This is ok, like all of we knows, but there is a 4 minutes of delay before the automatic reboot of the system, and I want to reduce it to 30 seconds or less.

What is the file that I have to configure? Or, what is the procedure to follow to change the "4 minutes default value" for "30 seconds or less"?

Thanks beforehand, and it's a pleasure to can count with this great community.
Last edited by hugonapoli on Fri 01 Apr 2016, 20:41, edited 1 time in total.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#2 Post by MochiMoppel »

Edit the file /sbin/init. Search for the line

Code: Select all

read -t 240 abcdef
and change the 240 sec timeout to whatever you like.

hugonapoli
Posts: 3
Joined: Wed 30 Mar 2016, 22:27
Location: Uruguay
Contact:

#3 Post by hugonapoli »

Thanks you a lot, MochiMoppel.
I will do it the next week and I will tell to you and the community how it went.
Receive a big hug from Uruguay.

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#4 Post by MochiMoppel »

Who could ask for more? Thanks.
Image

hugonapoli
Posts: 3
Joined: Wed 30 Mar 2016, 22:27
Location: Uruguay
Contact:

#5 Post by hugonapoli »

MochiMoppel wrote:Who could ask for more? Thanks.
Image
Not me, my friend :D
Your tip was enough. I could do what I wanted. Thanks you so much!

Also, I can make a contribution.

The message telling that "The system will reboot in 4 minutes" is maintained despite the changes in the line suggested for MochiMoppel.

Then, we have to make another change besides that.

We have to found the line

Code: Select all

echo 'Computer will reboot in 4 minutes, else press ENTER for immediate reboot.'
and change it inserting our new values -in my case, 10 seconds instead of 4 minutes-.
The mentioned line will remain like this one:

Code: Select all

echo 'Computer will reboot in 10 seconds, else press ENTER for immediate reboot.'
or, in Spanish:

Code: Select all

echo 'El ordenador se va a reiniciar en 10 segundos. Puedes presionar la tecla ENTER, para un reinicio inmediato.'


:D

Thanks you again, MochiMoppel :D

Post Reply