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?

it's clearly an LVM thing of some kind.

it finally dawned on me that all of those earlier kernels i was
building and running without incident were on my earlier laptop, on
which i had installed ubuntu 10.04 with a single, honking big root
filesystem, as in:

/dev/sda1 on / type ext4 (rw,errors=remount-ro)

and grub never had a problem booting my new kernel. in fact, this is
that old system right now:

$ uname -a
Linux lynx 2.6.35-kwlug+ #1 SMP Mon Jun 7 13:13:50 EDT 2010 x86_64 GNU/Linux
$

on my *new* system, though, well, i decided to get clever during the
installation:

$mount
/dev/mapper/lynx-root on / type ext4 (rw,errors=remount-ro)
... snip ...
/dev/sda1 on /boot type ext2 (rw)
... snip ...

and, unsurprisingly, the boot-time failure states that the kernel
can't open root device "mapper/lynx-root" so this tells me that,
somehow, i haven't built device mapper support into my initrd or
something like that.

does this look familiar to anyone? what probably trivial step have
i forgotten to do? thanks.

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)