You are not logged in.

#1 2010-03-06 17:00:13

herve
Member
Registered: 2009-09-05
Posts: 13

[solved] Hooks and boot speed

Hi,

i'd like to speed up my boot time by removing some unneeded hooks in mkinitcpio.conf.  However i'm still a newbie and i'm scared to do something wrong.

Up to now i have that:

HOOKS="base udev autodetect pata scsi sata filesystems"

I won't remove base and udev.

I'm not really sure of what autodetect and filesystems are (i read the info with mkinitcpio -H autodetect/filesystems but still...) ?

Also how can i know if i have a sata or IDE (pata) ?

Thanks.

Last edited by herve (2010-03-07 16:27:16)

Offline

#2 2010-03-06 17:14:24

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] Hooks and boot speed

"hdparm -I /dev/sda" (assuming it's a sata drive) will give you the disc info.

The Wiki is you best bet for all relevant info.

http://wiki.archlinux.org/index.php/Mkinitcpio

Last edited by loafer (2010-03-06 17:26:21)


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2010-03-06 17:18:14

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [solved] Hooks and boot speed

Hello

(I asumme that you are using SATA disk)
There is no speed (notable) gain removing the hooks that you can remove from this list (autodetect does this works in some way)

A simple way to experiment, without changing your current setup is

Create a simple /etc/mkinitcpio-custom.conf with:

MODULES=""
BINARIES=""
FILES=""
HOOKS="base udev autodetect sata filesystems"

Generate the initcpio image with:

mkinitcpio -c /etc/mkinitcpio-custom.conf -g /boot/kernel26-custom.img

At grub prompt change initrd to point to this image wink

Thats all, if this works, you can do this for mkinitcpio.conf. And you can see that there are no speed improvements at boot time.

Last edited by djgera (2010-03-06 17:18:57)

Offline

#4 2010-03-07 16:26:54

herve
Member
Registered: 2009-09-05
Posts: 13

Re: [solved] Hooks and boot speed

Thanks a lot. I tried and indeed , it does not improve the boot time.

Offline

Board footer

Powered by FluxBB