DebianThis forum is for the discussion of Debian Linux.
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.
View Poll Results: Recommended kernel:
2.4.*
0
0%
2.6.*
0
0%
2.8.*
0
0%
6.9.*
2
100.00%
Multiple Choice Poll. Voters: 2. You may not vote on this poll
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
As a matter of fact, if you do not have initrd, you should remove the reference to it from you grub or lilo config. That is the line starting with initrd or initrd=
As a matter of fact, if you look in the description for initrd, it is almost never needed to use initrd as opposed to compile IDE and ext3 support into the kernel. I don't understand why Debian (other distro's as well?) insists on using it.
I am not using initrd for years whenever I recompile my kernel.
I am getting the same error as OP - Unpacking initramfs...<0>Kernel panic - not syncing: bad gzip magic numbers.
I have not tried booting without initrd. Can that be done?
TIA,
~kernelyogi
Yes, it can be done. Just compile some basics like IDE/SATA support and ext3 or reiserfs (whatever you use) into the kernel (not as modules) and then boot without the initrd.
Thank you very much, gkiagia and jlinkels. I will try this out. May be I missed adding ide and ext3 support in-kernel . Will do that and post again.
~kernelyogi
The issue is, you haven't compiled ramdisk support into your kernel. I don't know if it is faster or more efficient to use the ramdisk/initrd support or no ramdisk/initrd and just boot the entire compiled kernel. I know for most purposes, it is best to compile into the kernel for things you use EVERY boot. For example if your root filesystem is EXT3, then compile it into the kernel. If you only mount EXT3 occasionally, then compile it as a module to conserve memory when your not using it.
Kernelyogi, the point is that you must put into the kernel the access to the filesystems you are going to work with, for example ext3, reiserfs and a couple other filesystems. After that you should be able to boot your kernel without initrd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.