remember to use --exclude to "exclude" your new drive's mounted point. \

and to use a pipe
so your command would look like:

root@yoursystem #cd /
root@yoursystem #tar -cvpzf - -–exclude=/- --exclude=/mnt/newdrive | cd /mnt/newdrive (tar -xvpf -) 

If all else fails!
# man tar

Regards,
Hazen.
On Fri, Jan 15, 2010 at 12:48 PM, Hazen Valliant-Saunders <hazenvs@gmail.com> wrote:
Tar is your friend and ally.

1. install and Mount the disk to a mount point.
2. Use tar in for it's intended purpose
https://help.ubuntu.com/community/BackupYourSystem/TAR
3. remove old drive, & configure the new one as your primary.
4. get a drink.

On Fri, Jan 15, 2010 at 12:33 PM, Jarry <mr.jarry@gmail.com> wrote:
Hi, I'm facing this problem:

I want to exchange hard-drive in my computer for other, bigger
one. I do not want to add new hard-drive somewhere on mount-point
permanently, I just want to copy everything from the old drive
to the new one and then get rid of the old one. And of course,
I'd like to use my computer as before. What is the best (maybe
I should ask for safest) way to acomplish this?

First I thought about "cp -a". But I'm not sure which directories
I should skip (/proc, maybe some other like /dev?). And I do not
know how cp handles links (if I first copy link and later target,
where is the link pointing? to the original file or its copy?).

Maybe dump/restore is better solution? Or something else?

Jarry

--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.




--
Hazen Valliant-Saunders
IT/IS Consultant
(613) 355-5977



--
Hazen Valliant-Saunders
IT/IS Consultant
(613) 355-5977