Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Gentoo machine (64-bit) with software RAID on boot which was set up previously by someone who optimised the kernel for that machine.

Now I want to shift the disks to a new machine (also 64-bit) but the kernel panics and reboots. I could pull out the kernel sources and compile one myself, but I thought it good to ask...

Is there an easy (and perhaps Gentoo-like) way to add a generic "rescue" kernel, before shifting the disks to the new machine, so that it can boot the disks regardless of architecture?

*(with software RAID enabled, of course, but I believe that's now default in generic, too)

share|improve this question
up vote 1 down vote accepted

I would do the following:

emerge genkernel
genkernel all

Now you would get a generic, initramfs and kernel in /boot

Next, add something like this to your grub config:

title Genkernel Gentoo Linux
root (hd0,0)
kernel /boot/kernel root=/dev/ram0 real_root=/dev/sda2
initrd /boot/initramfs 

Of course adjust the /dev/sda2 and hd0,0 to suit your case... and that should be running on most machines and booting them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.