1 |
On Monday 24 December 2007 15:06:36 Dale wrote: |
2 |
> Dale wrote: |
3 |
> > cp- a should work fine. I have used that several times and no problems |
4 |
> > yet. You can add the -v if you like to see the files scrolling by. |
5 |
> > |
6 |
> > If you have the same partitions on the new drive as the old drive, your |
7 |
> > grub.conf and fstab should be fine. |
8 |
> > |
9 |
> > You will need to install grub on the new drive tho. I usually do that |
10 |
> > from the Gentoo CD myself. |
11 |
> > |
12 |
> > Hope it all goes well. |
13 |
> > |
14 |
> > Dale |
15 |
> > |
16 |
> > :-) :-) |
17 |
> |
18 |
> Me and my sucky typing. Make that cp -a instead. That may work better. |
19 |
> |
20 |
> Dale |
21 |
> |
22 |
> :-) :-) |
23 |
|
24 |
Right, so when I've finished copying the partitions to the new disk, I swap |
25 |
the disks and boot with the Gentoo live CD and follow the instructions from |
26 |
the install handbook: |
27 |
|
28 |
Default: Setting up GRUB using grub-install |
29 |
To install GRUB you will need to issue the grub-install command. However, |
30 |
grub-install won't work off-the-shelf since we are inside a chrooted |
31 |
environment. We need to create /etc/mtab which lists all mounted filesystems. |
32 |
Fortunately, there is an easy way to accomplish this - just copy |
33 |
over /proc/mounts to /etc/mtab, excluding the rootfs line if you haven't |
34 |
created a separate boot partition. The following command will work in both |
35 |
cases: |
36 |
Code Listing 5: Creating /etc/mtab |
37 |
# grep -v rootfs /proc/mounts > /etc/mtab |
38 |
|
39 |
Now we can install GRUB using grub-install: |
40 |
Code Listing 6: Running grub-install |
41 |
# grub-install --no-floppy /dev/hda |
42 |
|
43 |
If you have more questions regarding GRUB, please consult the GRUB FAQ or |
44 |
the GRUB Manual. |
45 |
Continue with Rebooting the System. |
46 |
|
47 |
Cheers! |
48 |
|
49 |
-- |
50 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
51 |
Dr. Matthew R. Lee |
52 |
CASEB & ECIM |
53 |
Departamento de Ecologia, |
54 |
P. Universidad Catolica de Chile, |
55 |
Alameda 340, Santiago. |
56 |
CP 6513677 |
57 |
CHILE |
58 |
|
59 |
matt@××××××××××.org |
60 |
mlee@×××××××.cl |
61 |
|
62 |
URL: meiochile.matthewlee.org |
63 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
64 |
-- |
65 |
gentoo-user@g.o mailing list |