There're some tricks to speed up the boot process. These ones are based on a Gentoo linux distro installation, but should work for other distros as well (maybe with slight changes):
1) run modules-update only if necesaryEdit /etc/init.d/modules and look for this:
CODE
ebegin "Calculating module dependencies"
/sbin/modules-update &>/dev/null
eend $? "Failed to calculate dependencies"
put this instead:
CODE
if [ /etc/modules.d -nt /etc/modules.conf ]
then
ebegin "Calculating module dependencies"
/sbin/modules-update &>/dev/null
eend $? "Failed to calculate dependencies"
else
einfo "Module dependencies are up-to-date"
fi
2) Parallel mounting of localsEdit /etc/init.d/localmount and look for this line:
CODE
mount -at nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm >/dev/null
put this line instead:
CODE
mount -aFt nocoda,nonfs,noproc,noncpfs,nosmbfs,noshm >/dev/null
3) Run env-update only if necesary Edit /etc/init.d/bootmisc and look for this piece of code:
CODE
if [ -x /sbin/env-update.sh ]
then
ebegin "Updating environment"
/sbin/env-update.sh >/dev/null
eend 0
fi
put this instead:
CODE
if [ -x /sbin/env-update.sh ]
then
if [ /etc/env.d -nt /etc/profile.env ]
then
ebegin "Updating environment"
/sbin/env-update.sh >/dev/null
eend 0
else
einfo "Environment up-to-date"
fi
fi
4) Start services in parallel Edit /etc/conf.d/rc and replace this:
CODE
RC_PARALLEL_STARTUP="no"
with this:
CODE
RC_PARALLEL_STARTUP="yes"
Other usefull tricks to improve performance:
-Use hdparm to check that you're actually taking advance of your HD capabilities.
-Use
swsusp2 to suspend your computer instead of halting (if you feel like doing so).
-Use the Native POSIX Thread Library instead of the standard LinuxThreads, as the former can be 4x faster than the latter when it comes to creating new threads.
I've applied the 4 points above, and it takes now less than 1 minute to reboot (X session -> reboot -> X session).