Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
I have compiled a kernel from source and am trying to boot with it. (I am using Ubuntu 8.10.) I added a new entry to my grub file by copying a working entry. A snippet of my /boot/grub/menu.lst file is show below.
bzImage is my compiled kernel. I created the initramfs file via the command mkinitramfs -o initramfs `uname -r`.
When I select the custom kernel from the grub boot menu, it outputs a bunch of text and eventually outputs the following:
Code:
WARNING: Couldn't open directory /lib/modules/2.6.28: No such file or directory
FATAL: Could not open /lib/modules/2.6.28/modules.dep.temp for writing: No such file or directory
...
Begin: Waiting for root file system... ...
...
Done.
Gave up waiting for root device. Common problems:
...
ALERT! /dev/disk/by-uuid/778cb529-8914-451a-97ee-fb2d8ae404ae does not exist. Dropping to a shell!
BusyBox v1.10.2. (Ubuntu 1:1.10.2-1ubuntu6) built-in shell (ash)
...
(initramfs) _
My guess is that either:
1) I configured the grub file incorrectly
2) The initramfs file was not properly created
Please help! Thanks in advance.
Last edited by titaniumdecoy; 12-30-2008 at 01:55 AM.
It seems like your ramfs was made without the "device mapper" support, that loads the module dm-mod.ko. You can solve by creating the ramfs file with the right options (I don't know the exact option as I use mkinitrd), or by compiling the device mapper into the kernel itself, not as a module
I recompiled the kernel with Device mapper support enabled (via the config option in my previous post) and I get a similar message.
Is there another option I need to use to enable device mapping? Or could someone enlighten me as to how to create an initramfs with support for device mapping? Thanks.
EDIT: I don't know if it's relevant but I always get this error before the others when I try to boot:
[ 1.6787027] alg: cipher: Test 1 failed on encryption for aes-asm
Last edited by titaniumdecoy; 12-30-2008 at 01:56 PM.
@Quakeboy02: Thanks, I have spent so long on this method already though I want to give it another shot.
Suit yourself, but using the Ubuntu (Debian) method, there are very few steps that you have to take.
Quote:
I gave up on using the UUID in grub. So now I have this in my /boot/grub/menu.lst file:
Code:
title kernel 2.6.28
root (hd0,0)
kernel /boot/vmlinuz-2.6.28 root=/dev/sda1
initrd /boot/initrd.img-2.6.28
Here are the entries in my menu.lst file for 2.6.28. I'm not sure if your issue is that "ro" is missing or not. I have no way of knowing if you added a suffix; in my case "-k8". What is the actual directory name in /lib/modules?
Code:
title Debian GNU/Linux, kernel 2.6.28-k8
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-k8 root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.28-k8
title Debian GNU/Linux, kernel 2.6.28-k8 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-k8 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.28-k8
Last edited by Quakeboy02; 12-30-2008 at 02:43 PM.
I tried the method suggested by Quakeboy02. I wiped the system to make sure the old kernel was not in the way. I let the Ubuntu (Debian) package system take care of everything for me. In the end, I got the exact same error. I am using defconfig which includes device mapper support.
Glad you got it working! I wish I knew exactly what was wrong. I saw one with similar issues not too long ago, and it was Ubuntu, as well. I suspect that it was the CONFIG_SCSI line that fixed it, but the problem most likely relates somehow to initrd, like you said in your first post. On Debian I am able to get away with CONFIG_SCSI=m.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.