1 |
Andrew Randles wrote: |
2 |
|
3 |
>Hi everyone I was hoping someone would have suggestion for me. |
4 |
> |
5 |
>My hard drive was going bad so I bought a new one and put it in. |
6 |
>Instead of doing a complete reinstall I used dar and a usb harddrive |
7 |
>to do a backup of the system. I then used a gentoo live cd (2004.2 or |
8 |
>3) and to get everything setup and copied over. That worked well and |
9 |
>up until I had to chroot in and take care of the grub setup. |
10 |
> |
11 |
>I keep getting glibc errors with "symbol erron" when I try to run |
12 |
>env-update, ls or emerge commands. |
13 |
> |
14 |
>When I run grub root (hd0,0) it says no such drive or device. My |
15 |
>/dev/ folder in the chrooted environment is empty. |
16 |
> |
17 |
>The system is a 2.6 kernel with 2.6 headers. I wonder if maybe I need |
18 |
>an updated cd. |
19 |
> |
20 |
>Does anyone else have anymore ideas. |
21 |
> |
22 |
> |
23 |
|
24 |
A couple of more steps may be necessary before the chroot. Assuming |
25 |
that your root is mounted on /mnt/root: |
26 |
|
27 |
cd /mnt/root |
28 |
mount --bind /dev dev |
29 |
mount --bind /proc proc |
30 |
mount --bind /sys sys |
31 |
chroot ./ ./bin/bash |
32 |
mount -a # only if /boot is a separate filesystem |
33 |
grub-install /dev/hda |
34 |
umount -a # only if /boot is a separate filesystem |
35 |
exit |
36 |
umount dev |
37 |
umount proc |
38 |
umount sys |
39 |
cd .. |
40 |
umount root |
41 |
|
42 |
HTH, |
43 |
|
44 |
-Richard |
45 |
|
46 |
|
47 |
-- |
48 |
gentoo-user@g.o mailing list |