[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] copying a complete system to new HD
|
On Wed, 5 Jul 2000 04:13:11 -0400 (EDT), Bill wrote:
<snip>
GNU cp is a wonderful thing.
First, mount the new disk under, say, /mnt. Then you'll need to make
directories such as /mnt/mnt and /mnt/proc, and any others that you
won't be copying for whatever reason. Then, all you have to do, for
each directory other than the ones you already made on the new disk
(don't copy /proc, and obviously, don't copy /mnt), is:
# cp -a /dirname /mnt/dirname
</snip>
Wouldn't it be better to use tar? When you use cp, file perms, owners, and
groups get all screwed up....don't they? I would probably use the following
command:
# tar cf - /dirname | (cd /mnt/dirname; tar xvf -)
If you don't want it to print out every file it is copying to screen, just
take out the 'v' in the second tar command.
Hope this helps,
Luis
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
______________________________________________________________________
Philadelphia Linux Users Group - http://plug.nothinbut.net
Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce
General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|