I have this old PC here that's been doing great with a nice gentoo install on it. Recently a high pitched whine started coming from it - the single HD in it sounds like it's going bad.
So I grab a 400GB I have here, put it in, partition it exactly like the other, and copy the entire boot/root partition (sda1) over. Shut down, remove old drive and make newdrive the boot disk.
I boot SystemRescueCD, chroot into sda1, run
Code:
grub-install /dev/sda
and
... and it hangs shortly after the kernel gets going with this:
Code:
>> Activating mdev
>> Skipping module load; no modules in the ramdisk!
>> Determining root device ...
>> Detected real_root=/dev/sda1
>> Mounting /dev/sda1 as root...
>> Using mount -t auto -o ro
mount: mounting /dev/sda1 on /newroot failed: no such file or directory
!! Could not mount specified ROOT, try again
!! Could not find the root blockdevice in .
!! Please specifiy another value or:
!! - Press Enter for the same
!! - type 'shell' for a shell
!! - type 'q' to skip...
root block device::
It looks like kernel loads, but my initrd is messed up for some reason.
I used to be a master of this stuff back in LILO days, but now I'm a dotty old guy and everything is new. What's going on here? GRUB2 mystifies me.