1 |
Matthew R. Lee wrote: |
2 |
> Dear All, |
3 |
> I'm running out of space on my laptop (Compaq Presario V5000) so I've decided |
4 |
> to intall a bigger hard disk. Currently I have an 80GB SATA drive, I'm also |
5 |
> going to add more RAM (from 1GB to 2GB) as RAM is so cheap at the moment. |
6 |
> I've been through various howto's online, including the one in the |
7 |
> gentoo-wiki, but I'm not completely clear on a couple of things. I need this |
8 |
> to go quickly and smoothly, I'm about to move house and job and I don't have |
9 |
> too much time for messing around. |
10 |
> |
11 |
> My current partition table looks like this: |
12 |
> |
13 |
> Disk /dev/sda: 80.0 GB, 80026361856 bytes |
14 |
> 255 heads, 63 sectors/track, 9729 cylinders |
15 |
> Units = cylinders of 16065 * 512 = 8225280 bytes |
16 |
> |
17 |
> Device Boot Start End Blocks Id System |
18 |
> /dev/sda1 * 1 5 40131 83 Linux |
19 |
> /dev/sda2 6 68 506047+ 82 Linux swap / |
20 |
> Solaris |
21 |
> /dev/sda3 69 9729 77601982+ 83 Linux |
22 |
> |
23 |
> I intend to keep the same partition layout on the new disk, but with /sda3 |
24 |
> being a lot bigger. |
25 |
> |
26 |
> So here's how I think I'll do this, please feel free to correct me if I'm |
27 |
> wrong. |
28 |
> 1. place the new 160GB SATA drive in an external housing and create the |
29 |
> partitions using fdisk, make the file systems, etc. |
30 |
> |
31 |
> Question 1: Should I keep the swap partition the same size or increase it? |
32 |
> |
33 |
> 2. Copy all the partitions from the old disk to the new disk using cp |
34 |
> |
35 |
> Question 2: (This is the main one!) The MBR? As the new disk is a direct |
36 |
> replacement for the old one, with the same partitions etc, do I need to |
37 |
> change anything in my grub.conf? or should it just work without |
38 |
> modification? |
39 |
> |
40 |
> Here's my current grub.conf: |
41 |
> |
42 |
> default 0 |
43 |
> |
44 |
> timeout 30 |
45 |
> |
46 |
> splashimage=(hd0,0)/boot/grub/splash2.xpm.gz |
47 |
> |
48 |
> title=Gentoo 2.6.22-r2 |
49 |
> |
50 |
> root (hd0,0) |
51 |
> kernel /boot/kernel-2.6.22-r2-2 root=/dev/sda3 |
52 |
> video=vesafb:mtrr,ywrap,1280x800-24@70 |
53 |
> |
54 |
> title=Gentoo 2.6.18-r6 |
55 |
> |
56 |
> root (hd0,0) |
57 |
> kernel /boot/kernel-2.6.18-r6 root=/dev/sda3 |
58 |
> video=vesafb:mtrr,ywrap,1280x800-24@70 |
59 |
> |
60 |
> 3. Shutdown, replace the old drive with the new drive, reboot and cross my |
61 |
> fingers :-) Will it work? |
62 |
> |
63 |
> Any comments, as always, greatly appreciated |
64 |
> Matt |
65 |
> |
66 |
|
67 |
cp- a should work fine. I have used that several times and no problems |
68 |
yet. You can add the -v if you like to see the files scrolling by. |
69 |
|
70 |
If you have the same partitions on the new drive as the old drive, your |
71 |
grub.conf and fstab should be fine. |
72 |
|
73 |
You will need to install grub on the new drive tho. I usually do that |
74 |
from the Gentoo CD myself. |
75 |
|
76 |
Hope it all goes well. |
77 |
|
78 |
Dale |
79 |
|
80 |
:-) :-) |
81 |
-- |
82 |
gentoo-user@g.o mailing list |