Gentoo Archives: gentoo-user

From: "Matthew R. Lee" <gentoo@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] moving my instalation to new hard drive
Date: Thu, 27 Dec 2007 21:14:08
Message-Id: 200712271805.09360.gentoo@matthewlee.org
In Reply to: Re: [gentoo-user] moving my instalation to new hard drive by Neil Bothwick
1 On Monday 24 December 2007 19:36:13 Neil Bothwick wrote:
2 > On Mon, 24 Dec 2007 21:28:37 +0000, Stroller wrote:
3 > > It might be as simple as completing the `dd if=/dev/sda of=/dev/sdb`
4 > > and then using `fdisk` to delete the last partition, then recreate it
5 > > with the same start point (and a later end point). The filesystem
6 > > would then need to be resized. But I don't know if this will work,
7 >
8 > It will, I've done it myself. The main disadvantages are that you can
9 > only resize the last partition,and it is very slow (because dd copies
10 > every byte of the source drive, not jut the ones in use). Although I have
11 > used this method, I wouldn't do it again, I'd set up the partitions,
12 > copy with rsync and run grub to install it on the new drive.
13
14 Right I'm going to do it this way, in the morning, so if I'm wrong please feel
15 free to shout at me over night:
16 1. make the new partitions and file systems on the new drive /dev/sdb
17 2. mount sdb1 (boot) and sdb3 (root)
18 3. copy sda1 to sdb1 and sda3 to sdb3 using rsync (I use rsync all the time to
19 do backups so I'll stick with what I know)
20 4. swap the drives
21 5. boot with Live CD
22 6. (not sure about this bit) mount the boot partition (will this be sda1 or
23 sdb1?) and root partition
24 7. chroot to the new disk
25 8. do env-update and source /etc/profile
26 9. install grub (I'm assuming I wont have to change my grub.conf as everything
27 is in the same place as before, relatively speaking)
28 10. reboot and get on with the rest of my day
29
30 --
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32 Dr. Matthew R. Lee
33 CASEB & ECIM
34 Departamento de Ecologia,
35 P. Universidad Catolica de Chile,
36 Alameda 340, Santiago.
37 CP 6513677
38 CHILE
39
40 matt@××××××××××.org
41 mlee@×××××××.cl
42
43 URL: meiochile.matthewlee.org
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 --
46 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] moving my instalation to new hard drive Thanasis <thanasis@××××××××××.org>