[olug] Fixing a broken boot kernel in Ubuntu.

Phil Brutsche phil at brutsche.us
Sun Mar 25 06:15:16 UTC 2007


Daniel Linder wrote:
> My workaround was to boot to the install CD again and use the rescue
> console to perform these (general) steps:
> 1: Mount the partitions to their proper relative locations under /mnt/root.
> 2: Run "chroot /mnt/root /bin/sh"
> 3: Run "apt-dev update" and "apt-dev upgrade" to get the latest patches.
> (not necessary to the overall fix).
> 4: Re-compile the kernel as shown here:
> http://www.quietearth.us/articles/2006/09/15/Ubuntu-Compiling-a-custom-kernel
> The key was to change the kernel compile configuration parameter
> "CONFIG_BLK_CPQ_DA" from "m" (module) to "y" (compile into the kernel).
> 
> My notes are documented here in more detail.
>  http://ubuntuforums.org/showthread.php?t=392009
> 
> Thank goodness for Google! :)

Aha! I see I'm not the only one being being dazzled by Ubuntu's
absolutely fabulous QA department!

Much faster alternative:

1) Add cpqarray to /etc/mkinitramfs/modules
2) rebuild kernel initrd with
  /sbin/mkinitramfs -o /boot/initrd.img-<kernelversion> <kernelversion>

-- 

Phil Brutsche
phil at brutsche.us



More information about the OLUG mailing list