[SOLVED] Triying to boot faster. Grub's taking too long
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi.
I'm trying to make an old PIII box to boot as fast as possible. I'm planning to use it as a headless (no monitor, no GUIs) music player, based on mpd.
I found that Grub (tried the current Grub2 and legacy Grub) is taking to long to start. In the stage "Loading Grub" or "Grub Loading Stage1.5" (Grub-Legacy) takes almost 10 seconds.
Does anybody know if there is a way to turn grub faster in this old hardware? Any other suggestion?
I'm using Debian Squeeze.
Grub is very fast. If you want you can try using lilo with the 'compact' option, but it may not help
One way it speed it up is reduce the size of the kernel ... remove unneeded junk that is built-in. Only build in what you need to boot, the filesystem drivers and the IDE/SATA/AHCI drivers.
Also disable startup services that you don't need.
If you're using Debian, I presume you're using System V init scripts. You can speed booting a bit by using
systemd: in Fedora, Suse, Mageia; Debian is opposed to it
or
upstart: in Ubuntu; may be in the Debian repository
Thanks for your kind replies fellows.
Finally I improved Grub (I stick with legacy) speed using "profile" boot option. That appeared to had improved speed.
Today, I compile my own kernel, extracting lot of things I won't use.
I was wondering if is possible to use the uncompressed kernel image (vmlinux) in order to reduce decompression time in boot up. I tried it, googled a little bit, but I think that's no possible...
About SysV that's a good idea I think I'll give it a try.
That's very interesting. I'll do some test.
I'm quite new to kernel compilling, I think compression type is selected in make menuconfig "kernel compression mode".
I was using gzip, so I'll test with lzma.
"xz" seems no to appear there. Should I need a particular package in order to use that compression algorithm?
Thanks a lot.
I recompiled my kernel image using lzma, final size was almost 300 kb smaller. No big difference in decompression time, may be a couple of seconds, previously I was using gzip.
Yes, as I'm dealing with quite old hardware I decided to use version 2.6.32.55.
Was worth for learning a little on kernel compilation. Regards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.