You are not logged in.

#1 2012-10-21 15:29:11

nagaseiori
Member
Registered: 2012-09-22
Posts: 72

Speed up boot by not using initramfs

I'm trying to boot without using an initramfs, but when I remove the line that loads the ramdisk from GRUB while booting the kernel panics and says it can't mount the root device. I've tried adding root=/dev/sda5 and rootfstype=ext4 to the kernel parameters, but they don't seem to work. How would I accomplish this?

Last edited by nagaseiori (2012-10-21 15:31:38)

Offline

#2 2012-10-21 15:42:24

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: Speed up boot by not using initramfs

It can't be done with the stock kernel. You would need the drivers for your filesystem, harddisk controleller++ compiled into the kernel, which we don't currently do.

Offline

#3 2012-10-21 15:43:46

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Speed up boot by not using initramfs

How did you create the custom kernel? Do you have all the needed modules compiled in?
https://wiki.archlinux.org/index.php/Modprobed_db

Offline

#4 2012-10-21 15:56:53

nagaseiori
Member
Registered: 2012-09-22
Posts: 72

Re: Speed up boot by not using initramfs

I've compiled a custom kernel by using ABS and used '/usr/bin/modprobed_db recall ' and 'make localmodconfig' in the PKGBUILD as described in the wiki.

Offline

#5 2012-10-21 16:11:56

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Speed up boot by not using initramfs

You need to compile all your drivers fixed into your kernel - not as modules. So "make localyesconfig" is a good starting point.
Greetings
matse

Offline

#6 2012-10-21 16:23:18

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Speed up boot by not using initramfs

localyesconfig will actually slow down bootup.

Offline

#7 2012-10-21 16:25:40

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Speed up boot by not using initramfs

Yeah but at leas it's guaranteed that every module that he needs at boot is built into the kernel... and as I wrote it's just a good starting point.

Offline

#8 2012-10-21 16:35:47

nagaseiori
Member
Registered: 2012-09-22
Posts: 72

Re: Speed up boot by not using initramfs

Well, make localyesconfig did result in a kernel that could boot without an initramfs, but it didn't have much of an effect on boot time.

Offline

#9 2012-10-21 16:39:51

matse
Member
Registered: 2011-04-27
Posts: 299

Re: Speed up boot by not using initramfs

well now you have to thin out your kernel, so that it is as small as possible so that loading it gets faster. So just build the drivers that you don't need at boot as modules to your kernel.
Anyways I doubt that the time you might save at boot will pay for the effort you have wink or how often a day do you boot your PC?

Offline

Board footer

Powered by FluxBB