Neil Bothwick <neil <at> digimed.co.uk> writes:
> > I somehow lost /boot on an amd64 (turion) laptop. I have an old copy > > of grub.conf, but no backup of the entire /boot dir. Since I do not > > have another amd64 system, can I just copy over most of the > > (non arch dependant files) and recreate the arch dependant files? > > The system is still booted up, so I need to make repairs before > > rebooting again. > > Re-install the kernel with "cd /uusr/src/linux && make install". 1] Well I used what I usually use to build a kernel: make && make install_modules cp System.map /boot/System.map-2.6.18-gentoo-r3 cp arch/x86_64/boot/bzImage /boot/kernel-2.6.18-gentoo-r3 cp .config /boot/config-2.6.18-gentoo-r3 > Re-emerge grub 2] emerge -v grub Something really weird is going on. I building a kernel all I had in /boot was the 2.6.18-gentoo-r3 files listed above. After running 'emerge -v grub' all of the previous files and including the System.map, kernel and config files suddenly appeared under /boot. I keep old kernels around for 4 or 5 generations back. > Install GRUB to the MBR again (this step may not be necessary, but it's > best to be safe). 3] from the handbook: grub-install /dev/hda That's it? Not sure what do do in light of step 2] restoring the missing kernels. That's weird. James -- gentoo-user@gentoo.org mailing list