Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Hard drive change
Date: Mon, 12 Nov 2012 12:16:43
Message-Id: 201211121215.21425.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Hard drive change by john
1 On Thursday 08 Nov 2012 19:46:01 john wrote:
2 > On Thu, 08 Nov 2012 19:17:25 +0100
3 >
4 > Florian Philipp <lists@×××××××××××.net> wrote:
5 > > Am 08.11.2012 17:37, schrieb Paul Hartman:
6 > > > On Thu, Nov 8, 2012 at 7:03 AM, Volker Armin Hemmann
7 > > >
8 > > > <volkerarmin@××××××××××.com> wrote:
9 > > >> Am 08.11.2012 12:12 schrieb <jdm@××××××××××××.uk>:
10 > > >>> I am about to change my hard drive on my machine from a 500GB to
11 > > >>> 2tb.
12 > > >>>
13 > > >>> To transfer I intend to dd the partitions across and then resize
14 > > >>> using lvm as home swap var are located on lvm.
15 > > >>>
16 > > >>> Is this the right approach or would you recommend another method?
17 > > >>>
18 > > >>> John D Maunder.
19 > > >>
20 > > >> 2tb drive probably different sector size. cp -auv recommended.
21 > > >
22 > > > I agree, best approach is to partition and format the new drive as
23 > > > new, and then copy the files. This will also help you start your new
24 > > > disk with a lack of fragmentation.
25 > >
26 > > +1
27 > >
28 > > Of course, a simple cp -auv /* /new_root won't suffice because of
29 > > proc, sys and friends. I prefer
30 > > mount --bind / /real_root
31 > > cp -auv /real_root/* /new_root
32 > >
33 > > Regards,
34 > > Florian Philipp
35 >
36 > Thanks all for advice. Nice work with the mounting.
37
38 I often use star with the -copy option (faster and more advanced than tar,
39 although I have not timed it), or rsync. dd and friends for iso copying and
40 fs recovery.
41
42 --
43 Regards,
44 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature