1 |
Neil Bothwick <neil <at> digimed.co.uk> writes: |
2 |
|
3 |
|
4 |
> > I somehow lost /boot on an amd64 (turion) laptop. I have an old copy |
5 |
> > of grub.conf, but no backup of the entire /boot dir. Since I do not |
6 |
> > have another amd64 system, can I just copy over most of the |
7 |
> > (non arch dependant files) and recreate the arch dependant files? |
8 |
> > The system is still booted up, so I need to make repairs before |
9 |
> > rebooting again. |
10 |
> |
11 |
> Re-install the kernel with "cd /uusr/src/linux && make install". |
12 |
|
13 |
|
14 |
1] Well I used what I usually use to build a kernel: |
15 |
make && make install_modules |
16 |
cp System.map /boot/System.map-2.6.18-gentoo-r3 |
17 |
cp arch/x86_64/boot/bzImage /boot/kernel-2.6.18-gentoo-r3 |
18 |
cp .config /boot/config-2.6.18-gentoo-r3 |
19 |
|
20 |
|
21 |
> Re-emerge grub |
22 |
|
23 |
2] emerge -v grub |
24 |
|
25 |
|
26 |
Something really weird is going on. I building a kernel all I had in |
27 |
/boot was the 2.6.18-gentoo-r3 files listed above. After running |
28 |
'emerge -v grub' |
29 |
all of the previous files and including the System.map, kernel |
30 |
and config files suddenly appeared under /boot. I keep old kernels |
31 |
around for 4 or 5 generations back. |
32 |
|
33 |
> Install GRUB to the MBR again (this step may not be necessary, but it's |
34 |
> best to be safe). |
35 |
|
36 |
3] from the handbook: |
37 |
grub-install /dev/hda |
38 |
|
39 |
That's it? |
40 |
|
41 |
Not sure what do do in light of step 2] restoring |
42 |
the missing kernels. That's weird. |
43 |
|
44 |
|
45 |
James |
46 |
|
47 |
|
48 |
|
49 |
|
50 |
-- |
51 |
gentoo-user@g.o mailing list |