-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Darek KUZARA
Sent: Wednesday, April 18, 2001 3:06 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [expert] How do I copy a partition?



A far simpler way is to CAT the drive...

I.E.

# cat /dev/hdb3 > /dev/hdc3

-JMS
---

> The question is, how do I copy just the contents of the partition without
> copying the entire Linux disk (cp -a would copy the entire disk)?

I would suggest dump (look man dump, man restore). e.g.:

/usr/sbin/ufsdump 0ucf /some_dir/target_file /dev/hda5

-- /dev/hda5 - your root file system device
-- /some_dir/target_file  a backup file.

I hope this helps. Dump prevents links and all necessary privileges. I would
avoid using cp command.

I hope this helps

Darek


Reply via email to