Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 11-02-2004, 11:09 PM   #1
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Rep: Reputation: 15
howto reduce boot time?

I run a 2.6.7 sarge on pentium III laptop, with acpi, usb, eth0, printer, (sometimes pcmcia), cd-rw, ssh, apache, xfree, about 7 or so partitions to load, and the whole loadin process from the second i hit "Linux" in lilo to the point it ask me to sign in is about 1 minute 10 seconds or so, not countin the inevitable time when it loads the kernel. my list in init.d is

README firestarter single
apache gpm skeleton
aumix halt mountvirtfs ssh networking stop-bootlogd
bootlogd nviboot sudo pcmcia sysklogd ifupdown ppp umountfs inetd pppd-dns urandom
cron rc xfree86-common
cupsys klogd rcS xfs
discover libdevmapper1.00 reboot xprint
dns-clean makedev rmnologin
etc-setserial module-init-tools sendsigs
exim4 modutils setserial

My question is, are there any scripts i can change/remove to make it faster? I mean, even my windoze xp can beat that minute mark. ( not that i want to talk about windoze )

What I've realized is that during boot, the debian first makes a list of things it has to load, and then goes thru each script dealin with them and loads them. is there any way I can quickly realize what my box has to load, and just load those as opposed to linking to other scripts all over the place to find the modules to load? Is 1 minute boot time the average? (I'm running fluxbox, so no time consuming wm bootup)

Thanks in advance!
Old 11-03-2004, 03:47 AM   #2
Registered: Jun 2004
Location: Deep in the woods of southern NJ
Distribution: Pendrivelinux 2008
Posts: 70

Rep: Reputation: 15
If it makes you feel any better, my desktop, an AMD K6/233 MMX with 64MB of RAM running SuSE 8.1, takes nearly five minutes from power on to graphical login. After turning it on, I usually find something else to do for a few minutes.
Old 11-03-2004, 08:25 AM   #3
Registered: Apr 2004
Location: Spain
Distribution: Debian (Woody+Sarge)
Posts: 54

Rep: Reputation: 15

I had a similar situation a few weeks ago, when I was fiddling around with some Server-Client - Network programs like Apache.

I realised that as well as installing Apache, the configuration also installed a bunch of additional scripts, logging progs and deamons that increased the time the machine takes to load.

I could spot that at boot up the machine was checking all the log files associated with Apache.

After that my machine became aproximately 4 times as slow.

My advice to you is unles you need Apache ( just like any other software you don't normally use or don't know what is for ) uninstall it directly - don't bother trying to disable from start-up.

Old 11-03-2004, 01:59 PM   #4
Registered: Aug 2003
Distribution: Debian
Posts: 150

Rep: Reputation: 15
Seriously.. 70 seconds isnt that bad.. really.
Anyhow.. You could definitely try out removing (I'd suggest moving them to a different location) some of your scripts in /etc/init.d/
Now no one can help you which ones are to be removed. Thats cos we dont know if you need them or not. Only you can help yourself there.. Just one note though, you'd better check your rc.5 folder (thats if you boot in init 5) These will be scripts that are actually run when you boot.. simply put they are like links to the original scripts. Removing these will do the trick too. But dont remove the important ones

Oh BTW.. tried reducing the size of the kernel? for that you'd have to compile it yourself. Not sure if you are comfortable with that. Basically that would mean you'd have a lighter kernel to load and rest of the miscellaneous would be loaded as modules.

On my system.. X takes the longest to load.. I finally trimmed the config file to load just the bare necessities.. now its fine..

Old 11-03-2004, 09:45 PM   #5
Registered: Jul 2004
Location: Mass
Distribution: Freebsd 5.3, Debian sid 2.6.7
Posts: 101

Original Poster
Rep: Reputation: 15
Thank all for the replies, and sorry if this was a too obvious/dumb of a question to ask. I guess the options are to try removing (parts) of each script and see what happens or recompile kernel. thanks! I only asked because I remember sometime ago that someone had their boot in 40 seconds, that was my goal.
Old 11-04-2004, 03:29 AM   #6
Registered: Jun 2004
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
I read an article some time ago where they discussed the possibility to start certain servies in parallell in order to boot faster. Obviously with care since some services need to be started before others. I can't find the article online, but it is possible that it came from IBM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to safely reduce kernel compile time? rollo Linux - General 5 10-21-2005 03:03 PM
howto load ndiswrapper at boot time with suse 9.3 Nieko04 Linux - Wireless Networking 8 09-07-2005 05:43 AM
want to reduce system boot / init time 964racer Linux - Laptop and Netbook 7 06-09-2004 04:11 AM
Howto use ntpd time synchronization??? Schmurff Linux - Software 1 03-11-2004 12:20 AM
howto disable eth0 at boot time rydogg Linux - Newbie 2 06-16-2003 10:33 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration