How to Speed up Booting Into GNOME - A Gentoo Wiki Tip
While there are several ways to cut down the time it takes for a GNU/Linux system to boot up completely, the most popular way is to prevent any unnecessary services from being started at the boot time(if you don’t host web pages from your machine, for example, then disabling the apache server from starting at boot time will save some precious CPU cycles). There are several HOWTOs littered around the internet describing how to identify and disable the services that are not needed by a user. You can go to Desktop -> Administration -> Services in GNOME to have a look at the most important services; the commands ‘rc-status boot’ and ‘rc-status default’ will give you a complete list. Make sure that you understand what a service does before trying to disable them.
Gentoo Wiki has another trick to speed up the boot process of Gentoo OS: start loading GDM at boot time by adding ‘xdm’ to the boot runlevel instead of the default runlevel. I am reproducing the procedure here mainly because the boot time for my Gentoo system got reduced roughly by 40% after I implemented this tip, which by no means is insignificant.
Follow these steps.
Substitute the following line:
/sbin/telinit a &> /dev/null
with this line:
/etc/X11/startDM.sh &> /dev/null
(All the above names are case-sensitive.)
Now run the following two commands:sh# rc-update add xdm boot
That’s it. To immediately try it out, you can run ‘/etc/init.d/xdm restart’ command, or preferably, can do a full system reboot. The major gain for me after making this modification has been that the system no more gets stuck at the boot time for more than 10 seconds when it can’t find a DHCP server.
NOTE: This tip is meant only for the desktop machines. It’s not advisable for server machines for obvious reasons.