 |
 |
 |
 |
| News Community information and the latest Fedora related news |

2005-07-27, 02:07 AM CDT
|
 |
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.
|

2005-07-27, 02:28 AM CDT
|
 |
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
Last edited by imdeemvp; 2005-07-27 at 02:30 AM CDT.
|

2005-07-27, 07:31 AM CDT
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 20

|
|
|
Hmm this early login wasn't any difference for me
|

2005-07-27, 07:39 AM CDT
|
|
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?
|

2005-07-27, 07:51 AM CDT
|
 |
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
|

2005-07-27, 08:54 AM CDT
|
 |
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
|
|

2005-07-27, 09:17 AM CDT
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 17

|
|
|
Lets say I disable wine at bootup, then how do I enable it again? (while running)
|

2005-07-27, 09:19 AM CDT
|
|
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 at the shell prompt.
|

2005-07-27, 09:29 AM CDT
|
 |
Registered User
|
|
Join Date: Apr 2004
Posts: 1,143

|
|
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/
|

2005-07-27, 10:03 AM CDT
|
 |
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
|

2005-07-27, 10:13 AM CDT
|
 |
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
|
|

2005-07-27, 10:16 AM CDT
|
 |
Registered User
|
|
Join Date: Nov 2004
Location: The Netherlands
Age: 20
Posts: 124

|
|
|
Thank you !
|

2005-07-27, 11:16 AM CDT
|
|
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).
|

2005-07-27, 12:16 PM CDT
|
 |
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
|

2005-07-27, 12:22 PM CDT
|
 |
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
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Automatic Translations (Powered by  ):
All times are GMT -7. The time now is 11:31 AM CST.
|
|
 |
 |
 |
 |
|
|