Re: building and installing a new kernel makes my system unbootable



On Tue, 6 Jul 2010, Markus Schönhaber wrote:

05.07.2010 20:01, Robert P. J. Day:

$ sudo make modules_install
$ sudo make install
$ sudo update-initramfs -c -k 2.6.35-crash+
$ sudo update-grub

that's worked fine until now, but with this kernel tree, if i do the
above and reboot, i not only can't stop in GRUB, but the boot fails as
the kernel panics, claiming it can't mount a root file system.

i recovered by booting off the CD into rescue mode, mounting
/dev/sda1 (/boot), then literally editing grub/grub.cfg and deleting
the entries for that new kernel. nothing else would allow me to boot.

If GRUB doesn't work with the entries for your self-built kernel but
does without them, it seems that exactly these entries makes GRUB choke.
WAG: Does it get better if you rename your kernel and initrd files to
something that doesn't end with a '+' character?

i'm testing that right now, but an earlier example worked just fine
and, in fact, the stock kernel build process explicitly appends a "+"
in certain cases.

anyway, i just built a 2.6.35-rc4 kernel, about to install, create
initramfs, update grub and reboot. stay tuned ...

rday


--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Top-notch, inexpensive online Linux/OSS/kernel courses
http://crashcourse.ca

Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: Help 10.3 a mess After YOU Upgrade
    ... GRUB stage1. ... The stage1 goes in boot sector of system root partition. ... sda6=/1st SUSE install ... and kernel as defined for selected menu item. ...
    (alt.os.linux.suse)
  • Re: RHEL kernel update install problem!
    ... Because if you did an install, the previous version should still be there, and it should be simple to get you en route again. ... "root " means that grub is installed on the first partition of the first hard drive. ... All that needs to be done now, is boot the older kernel, remove the potentially defective new one, and free enough space on /boot. ... Each entry in the grub menu starts with the "title" tag, so you can try to construct a new entry along the same lines, referencing your new kernel and corresponding initrd. ...
    (RedHat)
  • Re: kernel upgrade bug?
    ... It's been doing this for a little while now, I just wanted to double check the new kernel is the same. ... I have no idea what would cause dracut to fail in this way. ... But you can find out the version of grub installed on /dev/sda with: ... # install local /etc/lvm/lvm.conf ...
    (Fedora)
  • Re: Location of Kernel modules
    ... "Make install" even created a new menu entry at the top of GRUBs ... You need to change the kernel version, I can't tell you how for SuSE ... I use lilo:(Someone else may help you for grub usage with SuSE. ...
    (comp.os.linux.setup)
  • Re: dual purpose USB-key
    ... damn small linux live cd use syslinux to boot. ... i look at kernel and initrd listed in it's /boot/isolinux/isolinux.cfg ... ..and modify grub menu.lst (the grub installed by geexbox, ... I don't install DSL in any way, i boot that in LIVE mode from usb-key drive. ...
    (Debian-User)