Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > The Community Lounge > News

News Community information and the latest Fedora related news

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-07-27, 02:07 AM CDT
ghenry's Avatar
ghenry Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Scotland
Age: 31
Posts: 1,019
How I Modified Fedora To Boot In Under 25 Seconds

Very nice read (I will be trying this out later):

http://www.improvedsource.com/content/view/13/2/

Everyone wants a quick boot time, from the beginner user to the advanced user, this is a issue that bothers us all. As Linux has advanced it has increasingly become slower to boot. I have tested on my machine 4 Linux distributions: Linspire, Fedora 3 & 4, Suse 9.2 & 9.3, and Debian. And on average between all these distributions Linux needs around a minute to 1 and half minutes to go from boot loader to graphical login screen. So I decided to look into reducing the time it takes to boot my current setup, which is Fedora 4. In doing so I was able to reduce the boot time of my Fedora 4 installation to less than 25 seconds (just above 24 seconds on average). Below I have documented what I did, and what you can use to potentially reduce your boot up time for Linux.
__________________
http://blog.suretecsystems.com

Last edited by ghaefb; 2005-07-27 at 02:26 AM CDT.
  #2  
Old 2005-07-27, 02:28 AM CDT
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 41
Posts: 8,250
I am pretty sure I saw some similiar info ealier.......thanks for sharing.

EDITED: i was correct here it is: http://forums.fedoraforum.org/showthread.php?t=66751
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills

Last edited by imdeemvp; 2005-07-27 at 02:30 AM CDT.
  #3  
Old 2005-07-27, 07:31 AM CDT
handy Offline
Registered User
 
Join Date: Jun 2005
Posts: 20
Hmm this early login wasn't any difference for me
  #4  
Old 2005-07-27, 07:39 AM CDT
sgjanssens[old]
Guest
 
Posts: n/a
Thanks for the nice article! Inspecting my services did make quite a difference. Didn't have the courage to start recompiling my kernel (yet).

Unfortunately, I found out that X is still started twice: Once early in the boot process, once at the very end, so it seems early-login wasn't enabled. I ran the chkconfig commands as root. Did people manage to get it working?
  #5  
Old 2005-07-27, 07:51 AM CDT
weinerdogus's Avatar
weinerdogus Offline
Registered User
 
Join Date: Apr 2005
Location: Vancouver
Age: 52
Posts: 477
Enabling early login made no difference for me. Perhaps the key is recompiling the kernel?
__________________
Never, under any circumstances, take a sleeping pill and a laxative on the same night.

Registered Linux User 394169
  #6  
Old 2005-07-27, 08:54 AM CDT
ghaefb's Avatar
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 26
Posts: 1,710
About that early-login... I think the author of the article forgot one important thing
After all the chkconfig you need to add a 'early-login' to the kernel line in /etc/grub.conf

My grub.conf:
Quote:
title Fedora Core 4(2.6.12-1.1398_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1398_FC4 ro root=/dev/hda3 vga=0x318 early-login
initrd /initrd-2.6.12-1.1398_FC4.img
__________________
_ghaefb


blog & sysinfo
  #7  
Old 2005-07-27, 09:17 AM CDT
A-fil Offline
Registered User
 
Join Date: Jul 2005
Posts: 17
Lets say I disable wine at bootup, then how do I enable it again? (while running)
  #8  
Old 2005-07-27, 09:19 AM CDT
sgjanssens[old]
Guest
 
Posts: n/a
ghaefb: Thanks, that did it. It costs me the graphical boot progress screen but I don't consider that a terrible loss.
A-fil: I thought you can just type
Code:
wine file.exe
at the shell prompt.
  #9  
Old 2005-07-27, 09:29 AM CDT
hiberphoptik's Avatar
hiberphoptik Offline
Registered User
 
Join Date: Apr 2004
Posts: 1,134
interesting... my system boots up waaaaaaaaaaaaaay under 1 minute, if it took 1 minute i would probly assume something was broken!

i am not sitting at the machine now but i would guess it takes about 15-20 seconds.

only services i need are network, cron, and a couple others so my bootup is lightning fast, im sure a fast processor is a huge help too
__________________
----

http://orthonovum.livejournal.com/
  #10  
Old 2005-07-27, 10:03 AM CDT
ThijsH's Avatar
ThijsH Offline
Registered User
 
Join Date: Nov 2004
Location: The Netherlands
Age: 20
Posts: 124
Great :-) It works, but it can work better. The X-server tries to start 3 times. The first 2 times it crashed, because xfs isn't loaded yet. The third time the X-server starts without problems, because xfs is started then. How can I make xfs start earlier ?

- Thijs
__________________
Dutch Fedora website: http://www.fedora-linux.nl
  #11  
Old 2005-07-27, 10:13 AM CDT
ghaefb's Avatar
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 26
Posts: 1,710
Quote:
Originally Posted by ThijsH
Great :-) It works, but it can work better. The X-server tries to start 3 times. The first 2 times it crashed, because xfs isn't loaded yet. The third time the X-server starts without problems, because xfs is started then. How can I make xfs start earlier ?

- Thijs
Here are some more details about early-login and xfs:
http://www.redhat.com/archives/fedor.../msg00416.html

Well this is the important part anyway:
Quote:
Next thing you'll want to do is to change the chkconfig: line
in /etc/init.d/xfs to
# chkconfig: 2345 08 97

and also change the chkconfig: line in /etc/init.d/syslog to
# chkconfig: 2345 07 98

then run
/sbin/chkconfig xfs on
/sbin/chkconfig syslog on
/sbin/chkconfig --add gdm-early-login
/sbin/chkconfig --add gdm-allow-login
/sbin/chkconfig gdm-early-login on
/sbin/chkconfig gdm-allow-login on
to regenerate the symlinks in /etc/rc5.d

The last thing that needs to be changed is grub.conf. It should be
modified such that the kernel cmdline has "early-login" in it.

For instance, it might look like this:
kernel /vmlinuz-2.6.11-1.1208_FC4 ro root=/dev/VolGroup00/LogVol00 quiet
vga=0x317 early-login
__________________
_ghaefb


blog & sysinfo
  #12  
Old 2005-07-27, 10:16 AM CDT
ThijsH's Avatar
ThijsH Offline
Registered User
 
Join Date: Nov 2004
Location: The Netherlands
Age: 20
Posts: 124
Thank you !
__________________
Dutch Fedora website: http://www.fedora-linux.nl
  #13  
Old 2005-07-27, 11:16 AM CDT
CuCullin Offline
Registered User
 
Join Date: Jun 2005
Location: NJ
Age: 28
Posts: 222
As a side note, another idea would probably be LinuxBIOS. I don't remember what mag, but there was a recent article on very quick boot times using some minor tweaks and LinuxBIOS together. I'll see if I can find the mag tonight (post NYLUG).
  #14  
Old 2005-07-27, 12:16 PM CDT
x94scorp's Avatar
x94scorp Offline
Registered User
 
Join Date: Apr 2005
Posts: 34
I will enable this. What if I need to revert back? What do I change these setting to ?

/etc/init.d/xfs to
# chkconfig: 2345 08 97 <-----------

and also change the chkconfig: line in /etc/init.d/syslog to
# chkconfig: 2345 07 98 <-----------

then run
/sbin/chkconfig xfs on <-----------
/sbin/chkconfig syslog on <-----------
/sbin/chkconfig --add gdm-early-login <-----------
/sbin/chkconfig --add gdm-allow-login <-----------
/sbin/chkconfig gdm-early-login on <-----------
/sbin/chkconfig gdm-allow-login on <-----------
to regenerate the symlinks in /etc/rc5.d
  #15  
Old 2005-07-27, 12:22 PM CDT
ghaefb's Avatar
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 26
Posts: 1,710
Quote:
Originally Posted by x94scorp
I will enable this. What if I need to revert back? What do I change these setting to ?

/etc/init.d/xfs to
# chkconfig: 2345 08 97 <-----------

and also change the chkconfig: line in /etc/init.d/syslog to
# chkconfig: 2345 07 98 <-----------
Simply backup the /etc/init.d/xfs and /etc/init.d/syslog files somewhere, and replace them afterwards...
Quote:
Originally Posted by x94scorp
then run
/sbin/chkconfig xfs on <-----------
/sbin/chkconfig syslog on <-----------
/sbin/chkconfig --add gdm-early-login <-----------
/sbin/chkconfig --add gdm-allow-login <-----------
/sbin/chkconfig gdm-early-login on <-----------
/sbin/chkconfig gdm-allow-login on <-----------
That would be:
Quote:
/sbin/chkconfig xfs off
/sbin/chkconfig syslog off
/sbin/chkconfig --del gdm-early-login
/sbin/chkconfig --del gdm-allow-login
/sbin/chkconfig gdm-early-login off
/sbin/chkconfig gdm-allow-login off
__________________
_ghaefb


blog & sysinfo
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 5 dual boot 5 seconds to choose brett General Support 4 2006-06-12 09:33 PM CDT
RE: Make boot disk modified Chris Norman gmane.linux.redhat.fedora.general 1 2005-12-01 05:20 AM CST
RE: Make boot disk modified Chris Norman gmane.linux.redhat.fedora.general 0 2005-12-01 05:20 AM CST
Make boot disk modified Sauro Cesaretti gmane.linux.redhat.fedora.general 0 2005-12-01 05:00 AM CST
Boot Fedora Linux Faster..boot in under 25 seconds 國產 Wei-Yee Chan (Made in Chinar) gmane.linux.redhat.fedora.general 5 2005-08-05 03:21 AM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 08:19 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Languages translations supported by vBET