Gentoo Archives: gentoo-user

From: Daniel da Veiga <danieldaveiga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Moving installation to another HD
Date: Thu, 10 Aug 2006 19:48:32
Message-Id: 342e1090608101241x49c35bfcjbf62f6bcae5d3281@mail.gmail.com
In Reply to: Re: [gentoo-user] Moving installation to another HD by Richard Fish
1 On 8/10/06, Richard Fish <bigfish@××××××××××.org> wrote:
2 > On 8/10/06, Christoph Eckert <ce@×××××××××.de> wrote:
3 > > * Boot from a live-CD
4 > > * mount old and new drive partitions
5 > > * cd to the mountpoint containing the data to be copied
6 > > * tar -cSp --numeric-owner -f - . | ( cd /mnt/NEW && tar xSpvf - )
7 > > * Drink coffee :)
8 >
9 > The one thing you may have to take care of is grub, since I assume the
10 > /boot directory will be moving to the 40G drive as well. Assuming the
11 > partition containing /boot is /dev/hda1, then the following should
12 > work:
13 >
14 > echo "(hd0) /dev/hda" > device.map
15 > grub --device-map=device.map << EOF
16 > root (hd0,0)
17 > setup (hd0)
18 > quit
19 > EOF
20
21 You seem to have read my mind, I was just about to ask about the boot
22 signature and if I should run grub again. Yes, I'm moving the whole
23 partition scheme along with data.
24
25 Linux "cp" is a powerful command, gotta take a look at its manual.
26
27 Thanks for the info so far people, I've decided to move my stuff by
28 the morning, I'll post any disaster/sucess reports.
29
30 --
31 Daniel da Veiga
32 Computer Operator - RS - Brazil
33 -----BEGIN GEEK CODE BLOCK-----
34 Version: 3.1
35 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
36 PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
37 ------END GEEK CODE BLOCK------
38 --
39 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Moving installation to another HD "Anthony E. Caudel" <acaudel@×××××.com>