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.
Earlier I was using Debian Sarge with Kernel 2.6.8. Now I know that the kernel 2.6.8 can work fine with initrd images created by initrd-tools which comes with Debian Stable.
Recently I upgraded my kernel to 2.6.16 and I came to know that these kernel requires tools like initramfs-tools or yaird to create the initrd.img image file. Now I upgraded my Kernel to 2.6.16 (I downloaded the sources and compiled the kernel) and created the initrd.img image with the old initrd-tools and my kernel works fine.
Now my question, are there any disadvantages of using the initrd image created by old initrd-tools? And what are the advantages of using initramfs-tools or yaird. How can I make my kernel independet of initrd?
Maybe we can see their difference in the startup scripts they make or the executable files they have but we can't really tell which of the two tools have the greater advantage as there are also times when files included in the initrd are no longer needed and will just take up space. And sometimes it's much better to have a simpler startup script to have faster boot process.
Anyway you shouldn't really think about which is better. The most important thing is that if your system is initrd dependent, always update your initrd file. You can do that manually (depends on the distro) by doing
Code:
mkinitrd -o <initrdfile> <version>
e.g. 'mkinitrd -o /boot/initrd.gz 2.6.16.22[/code]
If you think your system can run without initrd and you want to make your system independent from it, compile your kernel with most drivers required in startup set as built-in and not as modules. After the installation of new kernel, exclude the initrd value in your boot loader's config.
Maybe we can see their difference in the startup scripts they make or the executable files they have but we can't really tell which of the two tools have the greater advantage as there are also times when files included in the initrd are no longer needed and will just take up space. And sometimes it's much better to have a simpler startup script to have faster boot process.
Anyway you shouldn't really think about which is better. The most important thing is that if your system is initrd dependent, always update your initrd file. You can do that manually (depends on the distro) by doing
Code:
mkinitrd -o <initrdfile> <version>
e.g. 'mkinitrd -o /boot/initrd.gz 2.6.16.22[/code]
If you think your system can run without initrd and you want to make your system independent from it, compile your kernel with most drivers required in startup set as built-in and not as modules. After the installation of new kernel, exclude the initrd value in your boot loader's config.
For lilo, run 'lilo' after editing lilo.conf.
Actually a while ago I had tried building my kernel so that it can run without initrd support, but I think I failed. I really want to get rid of initrd(unless it has some hidden advantages). I have tried building my filesystem driver, IDE Device Driver built-in to the kernel and then I removed the initrd line from my grub menu.lst file but I got a kernel panic. Can anyone suggest what did I miss to built into the kernel?
hello kushalkoolwal. can u tell us the kerel panic message your received? was it something like 'tried to kill init' or something like unable to load init?
hello kushalkoolwal. can u tell us the kerel panic message your received? was it something like 'tried to kill init' or something like unable to load init?
I am getting the following error message:
Code:
VFS:Cannot open root device "hda7" or unknown-block(0,0)
Please append a correct "root"= boot option
Kernel panic- not syncing: VFS: unable to mount root fs on unknwon-block(0,0)
But if I boot with initrd, the system boots normally.
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
Quote:
Originally Posted by kushalkoolwal
I am getting the following error message:
Code:
VFS:Cannot open root device "hda7" or unknown-block(0,0)
Please append a correct "root"= boot option
Kernel panic- not syncing: VFS: unable to mount root fs on unknwon-block(0,0)
But if I boot with initrd, the system boots normally.
Thanks
did you include the filesystem driver for your file system in the kernel?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.