Gentoo Archives: gentoo-user

From: Hazen Valliant-Saunders <hazenvs@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How can I move system to new disk?
Date: Fri, 15 Jan 2010 18:00:41
Message-Id: d07a70781001151000q5ef98b18vad45713fb7eb2073@mail.gmail.com
In Reply to: Re: [gentoo-user] How can I move system to new disk? by Hazen Valliant-Saunders
1 remember to use --exclude to "exclude" your new drive's mounted point. \
2
3 and to use a pipe
4 so your command would look like:
5
6 root@yoursystem #cd /
7 root@yoursystem #tar -cvpzf - -–exclude=/- --exclude=/mnt/newdrive | cd
8 /mnt/newdrive (tar -xvpf -)
9
10 If all else fails!
11 # man tar
12
13 Regards,
14 Hazen.
15 On Fri, Jan 15, 2010 at 12:48 PM, Hazen Valliant-Saunders <hazenvs@×××××.com
16 > wrote:
17
18 > Tar is your friend and ally.
19 >
20 > 1. install and Mount the disk to a mount point.
21 > 2. Use tar in for it's intended purpose
22 > https://help.ubuntu.com/community/BackupYourSystem/TAR
23 > 3. remove old drive, & configure the new one as your primary.
24 > 4. get a drink.
25 >
26 > On Fri, Jan 15, 2010 at 12:33 PM, Jarry <mr.jarry@×××××.com> wrote:
27 >
28 >> Hi, I'm facing this problem:
29 >>
30 >> I want to exchange hard-drive in my computer for other, bigger
31 >> one. I do not want to add new hard-drive somewhere on mount-point
32 >> permanently, I just want to copy everything from the old drive
33 >> to the new one and then get rid of the old one. And of course,
34 >> I'd like to use my computer as before. What is the best (maybe
35 >> I should ask for safest) way to acomplish this?
36 >>
37 >> First I thought about "cp -a". But I'm not sure which directories
38 >> I should skip (/proc, maybe some other like /dev?). And I do not
39 >> know how cp handles links (if I first copy link and later target,
40 >> where is the link pointing? to the original file or its copy?).
41 >>
42 >> Maybe dump/restore is better solution? Or something else?
43 >>
44 >> Jarry
45 >>
46 >> --
47 >> _______________________________________________________________
48 >> This mailbox accepts e-mails only from selected mailing-lists!
49 >> Everything else is considered to be spam and therefore deleted.
50 >>
51 >>
52 >
53 >
54 > --
55 > Hazen Valliant-Saunders
56 > IT/IS Consultant
57 > (613) 355-5977
58 >
59
60
61
62 --
63 Hazen Valliant-Saunders
64 IT/IS Consultant
65 (613) 355-5977