LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2006, 10:01 AM   #1
suneel
LQ Newbie
 
Registered: Nov 2005
Location: Hyderabad
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Unhappy how to make linux boot faster


Hi,
I have an old pIII 600mhz 128mb pc. I installed RedHat 7.1 with minimum packages without xserver. (I checked only the gcc and vim while installing with total install size under 280 MB ). But still it takes around 3-4 mins to get the login prompt. It seems to be starting several unnecessary services. How can I disable these unwanted services (esp the hardward detection module) and make my pc boot up in less than a minute? (I am trying to learn shell scripting and basic unix OS functionality)

I have windows 95 freshly installed on the same machine which boots up under 45 secs. It seems strange that a command line OS like unix takes 5 times more time to boot than a GUI OS like windows.

Thanks,
Suneel
 
Old 02-06-2006, 10:26 AM   #2
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
you can edit "timeout" in lilo.conf / grub.conf
 
Old 02-06-2006, 10:29 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,332

Rep: Reputation: 89
If i remember right, Red-hat and Fedora got a set of commands like this:
system-config-network
system-config-samba
etc..
 
Old 02-06-2006, 10:33 AM   #4
esje
Member
 
Registered: Mar 2004
Location: Holland
Distribution: Debian Etch, Gentoo 2005.1/SUSE 10
Posts: 52

Rep: Reputation: 15
That will only shorten the time you have to make a choice in grub or lilo. Better reconfigure the kernel, and remove any modules you don't have. When you use ``make xconfig'', you will have a very decent overview on what you're installing.

(That does not mean, though, that it will not take you ages to configure the slickest kernel you can )

Edit: that was in response to dudulz, of course.
 
Old 02-06-2006, 11:20 AM   #5
suid0
Member
 
Registered: Jul 2005
Location: Brazil
Distribution: Slackware, openSuSe, Ubuntu, Fedora
Posts: 56

Rep: Reputation: 16
I have sometime withou playin with RH n Fedora but...
Try "ntsysv" command as root.. disable all the shit u don't want
Also, (like was said before) recompile ur kernel. most distro try to enable things much more than u need.
 
Old 02-06-2006, 12:27 PM   #6
suneel
LQ Newbie
 
Registered: Nov 2005
Location: Hyderabad
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your replys. I am a begginer and compiling or reconfiguring the kernel seems to be a complex stuff. Please elaborate on reconfiguring the kenrel. I don't have xserver installed so I guess 'make xconfig' won't do any good. ntsysv seems to be a feasible solution...will try that out.

Thanks,
Suneel.
 
Old 02-06-2006, 12:28 PM   #7
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 48
Try installing Gentoo, and you will be able to boot your system to the bash prompt in like 15 seconds.

Gentoo has all the required documentation to help you.
 
Old 02-06-2006, 12:49 PM   #8
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
try "initng"
http://initng.thinktux.net/index.php/Main_Page

this got me from 2mins15 to 1min

install notes are here:
http://initng.thinktux.net/index.php...how_to_install

Last edited by deroB; 02-06-2006 at 12:51 PM.
 
Old 03-07-2006, 04:46 PM   #9
stormrider_may
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 304

Rep: Reputation: 30
I agree with deroB. InitNG is just amazing. With it my pentium 4 boots in 6 seconds!
 
Old 03-07-2006, 05:39 PM   #10
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Hmmm. Maybe try a newer distro? RedHat 7.1 is pretty old. Maybe it's struggling with a particular piece of hardware. I have an old Celeron 400MHz system that boots in about 30 seconds on a stock Debian Sarge 2.6.8 kernel. And I even run KDE gui...
 
Old 03-07-2006, 09:02 PM   #11
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Kids these days are spoiled. If a boot up time takes longer than 5 minutes, you should worry. Making the boot time less can make it worst. Getting initng scripts to work with your Linux distribution is pain.

For Redhat like distributions, use chkconfig to enable or disable services for each runlevel that you do not use. By typing "service [service name] stop" as root or su - it will stop the service at that time. Redhat includes services that should not run at all like portmap and inetd or xinetd. Hotplug and updating the module list can take a long time.

Any distribution that I tried take the same amount of time at boot up. I do not care how long it takes if it is under 5 minutes and it does not crash. Gentoo is not fast as people say. It just runs fewer services. Gentoo developers have included parallel init service loading but an option have to be included in /etc/make.conf (I think) to do this. All my systems are fast in hardware but software is unable to speed it up.
 
Old 03-07-2006, 10:35 PM   #12
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Electro
Redhat includes services that should not run at all like portmap and inetd or xinetd.
What's wrong with the highlighted ones? Just like to learn; I use them to start ftp server and telnet server.
 
Old 03-08-2006, 08:29 AM   #13
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Quote:
Originally Posted by Linux.tar.gz
If i remember right, Red-hat and Fedora got a set of commands like this:
system-config-network
system-config-samba
etc..
Unfortunatly that will not work for him as he hasnt install x-server and they are gui tools. Also those tools will not do anything to improve boot time really..

The best CLI for disabling services is probably chkconfig !

Last edited by _KDF; 03-08-2006 at 08:31 AM.
 
Old 03-08-2006, 10:11 AM   #14
Ipsofacto
Member
 
Registered: Sep 2005
Distribution: Debian
Posts: 132

Rep: Reputation: 15
Quote:
Originally Posted by deroB
try "initng"
http://initng.thinktux.net/index.php/Main_Page

this got me from 2mins15 to 1min

install notes are here:
http://initng.thinktux.net/index.php...how_to_install

Whoaaaaaaaa! I just read this and thought i'd try it. Jesus - my suse 10.0 is usually sluggish as you like but now it boots in about 20 seconds. Crikey, and I thought Arch was a fast boot.
 
  


Reply


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
Anyway to make linux games go faster by tweaking opengl somehow? FocusedWolf Linux - Games 3 04-16-2005 07:20 AM
How can I make linux faster? Superdude Linux - General 7 08-23-2004 09:34 PM
How can i make my mandrake boot faster? Braveheart1980 Linux - General 5 02-11-2004 04:55 AM
Things to make Linux work faster yelp666 Linux - General 4 04-19-2003 04:25 PM
Can I make Linux run faster?? justiceisblind Linux - Newbie 3 06-17-2002 02:25 AM


All times are GMT -5. The time now is 08:14 AM.

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