Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving installation to another HD
Date: Thu, 10 Aug 2006 19:30:08
Message-Id: 7573e9640608101219j1362c5bal95fb50ffe6215ad8@mail.gmail.com
In Reply to: Re: [gentoo-user] Moving installation to another HD by Christoph Eckert
1 On 8/10/06, Christoph Eckert <ce@×××××××××.de> wrote:
2 > * Boot from a live-CD
3 > * mount old and new drive partitions
4 > * cd to the mountpoint containing the data to be copied
5 > * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
6 > * Drink coffee :)
7
8 The one thing you may have to take care of is grub, since I assume the
9 /boot directory will be moving to the 40G drive as well. Assuming the
10 partition containing /boot is /dev/hda1, then the following should
11 work:
12
13 echo "(hd0) /dev/hda" > device.map
14 grub --device-map=device.map << EOF
15 root (hd0,0)
16 setup (hd0)
17 quit
18 EOF
19
20 -Richard
21 --
22 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Moving installation to another HD Christoph Eckert <ce@×××××××××.de>
Re: [gentoo-user] Moving installation to another HD Daniel da Veiga <danieldaveiga@×××××.com>