I compiled and installed a custom Linux kernel using Debian kernel-package. Everything went OK: .deb files were created and custom vmlinuz and initrd.img were created in /boot and /boot/grub/menu.lst were modified automatically. But after I boot into the custom kernel, here is what happens:
After some progress, writes the following:
Begin: Waiting for root file system
and waits for a while. And then prints this:
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check root delay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! doesn't exist. Dropping to a shell!
/bin/sh
(initramfs)
and jumps to shell in the RAM. When I tried mount /dev/hda6 /tmp/hda6
, there really is no hda6. hda6 is the partition running my Debian and including the custom initrd.img.
Please help me guys!
/dev
to find the right hard drive device. if this is a recent kernel with udev, there should be some symlinks in/dev/disk/by-UUID
that will help identify the new device.