Problem in building,installing new vanilla kernel - initramfs
Hi, For the past 2 weeks I have been trying to compile and install a new vanilla kernel (v2.6.39.2) on my debian and ubuntu vmware machines. But it is failing due to some problem related to initramfs. After compiling and installing the kernel and modules I am trying to create the initramfs image by using the command "update-initramfs -c -k 2.6.39.2". The command executes successfully and creates an initramfs image. However on booting the new kernel an error occurs and it takes me to the initramfs prompt. I tried it first on debian virtual machine and then on ubuntu virtual machine but failed on both. For building and installing the kernel I am NOT using any distribution-specific tools. Any help would be greatly appreciated. Thanks Vaibhav Jain
On Sat, Jul 9, 2011 at 12:14, Vaibhav Jain <vjoss197@gmail.com> wrote:
The command executes successfully and creates an initramfs image. However on booting the new kernel an error occurs and it takes me to the initramfs prompt.
could you tell us specificly what the error messages are? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi, Yesterday I tried to compile and install the same kernel version after deleting all the old files and downloading the source again.To my surprise it worked on Debian without any problems. However, following the same steps on Ubuntu is still giving problems. The kernel and modules are being compiled successfully and initramfs file is also getting created without any problems.Grub is also detecting the kernel image and the initramfs image. But as soon as I reboot the Ubuntu virtual machine it gives the following error (without displaying options for selecting the kernel ) mount: mounting none on /dev failed: No such device Gave up waiting for root device. Common problems : - Boot args (cat /proc/cmdline) - Check rootdelay =(did the system wait long enough ?) - Check root = (did the system wait for the right device ?) - Missing modules (cat /proc/modules; ls dev) ALERT! /dev/disk/by-uuid/6d5778f2-9e9e-402b-b2a0-43aca187ac1f does not exist.Dropping to a shell! Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu11) built-in shell (ash) Enter 'help' for a list of built-in commands (initramfs) _ I am facing the same problem again and again on Ubuntu.And the worst thing is it doesn't allow me to boot the older kernel and throws the error on startup. Here are the steps which I am performing : - download kernel source from kernel.org (v 2.6.39.2) - unzip the bz2 file - Configure the source - *make defconfig* -compile the source - *make* - compile the modules - *make modules* - install the modules - *make modules_install* - install the kernel - *make install* - *cd /boot* - *update-initramfs -c -k 2.6.39.2* - *update-grub * Please help me to figure out what am I doing wrong here. The exact same steps are working on Debian virtual machine. Thanks Vaibhav Jain On Fri, Jul 8, 2011 at 11:42 PM, Mulyadi Santosa <mulyadi.santosa@gmail.com>wrote:
On Sat, Jul 9, 2011 at 12:14, Vaibhav Jain <vjoss197@gmail.com> wrote:
The command executes successfully and creates an initramfs image. However on booting the new kernel an error occurs and it takes me to the initramfs prompt.
could you tell us specificly what the error messages are?
-- regards,
Mulyadi Santosa Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
Hi... On Sun, Jul 10, 2011 at 04:15, Vaibhav Jain <vjoss197@gmail.com> wrote:
ALERT! /dev/disk/by-uuid/6d5778f2-9e9e-402b-b2a0-43aca187ac1f does not exist.Dropping to a shell!
Looks like your newly compiled kernel image had trouble resolving that UUID. Try to replace that name by using the simpler one like "/dev/sda1" or so on in /boot/grub/grub.cfg. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
participants (2)
-
Mulyadi Santosa -
Vaibhav Jain