Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

I would do the following:

emerge genkernel
genkernel all

Now you would get a generic System.map, 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

 
discard

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.