Gentoo won't boot!
I recently moved from Spokane to Portland. In all the chaos of finishing some things for my work, disassembling my home-office, and putting it all in a moving truck, etc, I neglected one critical element...
I had installed an update to sys-fs/udev which required kernel 2.6.27 or later, while the most-recent kernel I've got installed/compiled/etc is 2.6.25 (plus a couple others which were fubar). I had neglected to keep a recent kernel in working condition.
Gentoo users/admins will see the problem immediately (and probably shouldn't read the rest of this post, since it's not terribly magical).
- Old kernel: udev won't run, so it won't see devices, especially my RAID array.
- Newer kernels don't work at the moment
So I'm pretty much stuck. (If anyone can imagine a Windows machine in this situation and suggest a way to fix such a problem on Windows, I'd love to hear it...)
Fortunately I already had the sources for 2.6.31 on my server's filesystem, so I dug out a copy of System Rescue CD (somewhat aged), booted the server, mounted the RAID devices in their appropriate locations, and chroot-ed into my server's filesystem.
Then I:
- Took a snapshot of /boot and /lib/modules
- Copied the System Rescue CD's kernel config (/proc/config.gz) into my new kernel directory (/usr/src/linux/)
- Used 'make oldconfig' and 'make menuconfig' to bring it up-to-date and fine-tune it a bit.
- Use genkernel to build the new kernel and initramfs (including RAID/LVM tools) and install them
- Adjust my GRUB configuration, reboot, voila!
Mind you, at this point the kernel config wasn't optimal or terribly awesome, just functional. I'm currently in the process of tuning it further.
So... that's how Linux saved my sanity today.





