Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 25 Aug 2016, 02:20
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Configure automatic fsck time at boot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
hugonapoli

Joined: 30 Mar 2016
Posts: 3
Location: Uruguay

PostPosted: Wed 30 Mar 2016, 18:42    Post subject:  Configure automatic fsck time at boot
Subject description: Change the default "reboot automatically in 4 minutes" after auto fsck
 

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, 16:41; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1061
Location: Japan

PostPosted: Wed 30 Mar 2016, 20:49    Post subject:  

Edit the file /sbin/init. Search for the line
Code:
read -t 240 abcdef
and change the 240 sec timeout to whatever you like.
Back to top
View user's profile Send private message 
hugonapoli

Joined: 30 Mar 2016
Posts: 3
Location: Uruguay

PostPosted: Thu 31 Mar 2016, 11:28    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1061
Location: Japan

PostPosted: Thu 31 Mar 2016, 22:38    Post subject:  

Who could ask for more? Thanks.
Back to top
View user's profile Send private message 
hugonapoli

Joined: 30 Mar 2016
Posts: 3
Location: Uruguay

PostPosted: Fri 01 Apr 2016, 15:55    Post subject:  

MochiMoppel wrote:
Who could ask for more? Thanks.


Not me, my friend Very Happy
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:
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:
echo 'Computer will reboot in 10 seconds, else press ENTER for immediate reboot.'


or, in Spanish:

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


Very Happy

Thanks you again, MochiMoppel Very Happy
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0413s ][ Queries: 11 (0.0036s) ][ GZIP on ]