Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] moving my instalation to new hard drive Randy Barlow <randy@×××××××××××××××××.com>
Re: [gentoo-user] moving my instalation to new hard drive Dale <dalek1967@×××××××××.net>
Re: [gentoo-user] moving my instalation to new hard drive Thanasis <thanasis@××××××××××.org>
Re: [gentoo-user] moving my instalation to new hard drive maxim wexler <blissfix@×××××.com>