LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   speeding up bootproces (https://www.linuxquestions.org/questions/linux-newbie-8/speeding-up-bootproces-194914/)

jpostma 06-18-2004 04:54 AM

speeding up bootproces
 
Which services could I disable for speeding up the bootproces? I use Fedora Core 2.

jkobrien 06-18-2004 05:30 AM

Hi,

The short answer is, "the ones that you don't need".

Have a look at the messages that appear when you boot up. You don't have to reboot to see these, use the command "dmesg". Read up on the ones you don't understand, and if there are things there that you don't need you can remove them from your kernel and/or disable them in your init files.

John

jpostma 06-18-2004 05:49 AM

Hi,

Is it impossible that I remove too many, so that Linux won't start anymore?

Johan

jkobrien 06-18-2004 06:33 AM

Hi,

Sure, it's possible that you could screw up your system temporarily, but if you read up on what you're doing, make backups of your config files (anything in /etc) and only remove one service at a time, you're unlikely to have serious problems.

John

seidren 06-19-2004 02:04 AM

I use RH9, and I removed the hardware detection thing(kudzu), xinted, httpd, MySQLd, the keymap loader, module dependency checking and other stuff which took time at the boot process.

I have a P4 1.6Ghz 128MB and the machine boots to X in 27s~30s

gredhat 06-19-2004 03:48 AM

u can use the gui for disabling the unwanted services as it shows the discription in the right hand windows for the service selected. U can use two methods for gui start

1. system-config-services (type in console)
2. From the menu sytemsetting ->server setting-> services

hope it helps

whansard 06-19-2004 03:59 PM

there are a bunch of places in the bootscripts that use delays, cause the commands need them on some computers. usually they use "sleep". like sleep 2s, for wait 2 seconds. if you comment all of those out, or lower them, you can cut a bunch off your boot time.
go in your init.d directory, or appropriate for your distribution, and run
grep sleep *|less
you can find em easy that way. chances are you can get away without them. just remember what you did incase something quits working right.
crap like this.

functions: usleep 100000
functions: sleep 1
functions: sleep 1 # changed from 3
halt:sleep 2 #changed from 5
halt: sleep 1 #changed from 2
halt: sleep 2 #changed from 5
netfs: sleep 2
netfs: sleep 5
pcmcia: kill -0 $PID 2>/dev/null && sleep 2 && \
pcmcia: kill -0 $PID 2>/dev/null && sleep 2 && \
pcmcia: kill -0 $PID 2>/dev/null && sleep 2 && \
single:sleep 2 # changed from 5


All times are GMT -5. The time now is 10:59 PM.