User avatar
brightspirit
Posts: 19
Joined: Thu Jun 07, 2012 9:48 pm
Location: Manchester, UK

Speed up boot and auto login

Fri Jun 08, 2012 7:29 pm

If you want to speed your boot up and log in here's an easy way.
In /etc/rc.conf you can disable a lot of the DAEMONS and have many working in the background. For example this would suit many:

DAEMONS=(!hwclock @syslog-ng @network !openntpd !@netfs @crond )

The '!' disables and the '@' allows others to start up in the background whilst others in the foreground are booting.
You can also speed up your boot and automatically login by altering the /etc/inittab.
Alter the lines starting with rm, rh, su to the following rather than putting them in wait:

rm:2345:once:/etc/rc.multi
rh:06:once:/etc/rc.shutdown
su:S:once:/sbin/sulogin -p

To auto login just add '-a username' (where 'username' is your login name) to the line c1 and only have lines c1 and c2 running. For example:

c1:2345:respawn:/sbin/agetty -a username -8 -s 115200 tty1
c2:2345:respawn:/sbin/agetty -8 -s 115200 ttyAMA0

You can # out all the unnecessary lines and start working while the last bit is booting in the background. Your inittab will probably looks something like this:

id:3:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:once:/etc/rc.multi
rh:06:once:/etc/rc.shutdown
su:S:once:/sbin/sulogin -p
c1:2345:respawn:/sbin/agetty -a username -8 -s 115200 tty1
c2:2345:respawn:/sbin/agetty -8 -s 115200 ttyAMA0

With a bit of fiddling around you will probably get it a bit faster still and you can make it boot directly to X rather than the command line. There's 101 different ways of doing it but I find this easy and works for me. Now I've just got to get around to profiling it :D

phrasz
Posts: 46
Joined: Fri Jun 01, 2012 4:13 am

Re: Speed up boot and auto login

Sat Jun 09, 2012 3:17 am

Also, don't forget your Class 10 card!

I had a x133 4GB Transcend (Non-SDHC) that I was using for some time. Then I saw the 30 MB/s San Disk Ultra Class 10 go on sale, so I upgraded. That alone caused my boot speed to be cut in half...

User avatar
andrea2277
Posts: 6
Joined: Thu Dec 13, 2012 12:33 pm

Re: Speed up boot and auto login

Mon Jan 28, 2013 9:32 pm

Hi,

this don't work .. the message:

(none) login: pi (automatic login)
unable to determine your tty name
INIT: id "c1" respawning too fast: disabled for 5 minutes


I have delete the content etc/inittab and replace with:

id:3:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:once:/etc/rc.multi
rh:06:once:/etc/rc.shutdown
su:S:once:/sbin/sulogin -p
c1:2345:respawn:/sbin/agetty -a username -8 -s 115200 tty1
c2:2345:respawn:/sbin/agetty -8 -s 115200 ttyAMA0

but don't work.. :(

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Speed up boot and auto login

Mon Jan 28, 2013 10:38 pm

Is this archlinuxarm? We haven't used init for quite awhile.

User avatar
andrea2277
Posts: 6
Joined: Thu Dec 13, 2012 12:33 pm

Re: Speed up boot and auto login

Mon Jan 28, 2013 11:12 pm

No.. I have installed Raspbian (release: 2012-10-28-wheezy-raspbian) and i have this error:

(none) login: pi (automatic login)
unable to determine your tty name
INIT: id "c1" respawning too fast: disabled for 5 minutes

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Speed up boot and auto login

Tue Jan 29, 2013 2:35 pm

If you have another copy of that file, it might be best to restore the backup. The original poster did not say what system they are running, but this is the ArchLinux subforum and you said you are running Raspbian, that could make a big difference in what will and what will not work. Our login is root, and different from yours. I think you need to change the word "username" to "pi" in the file from another box, or restore the backup, or reflash the image.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Arch”