Nicolas Moeri wrote:
> I would like to duplicate a partition to have an exact copy in case where
> my main partition crashes. What is the best way to do this in particular
> to copy the special files.
You can either copy the raw partition contents with dd, e.g.
dd if=/dev/hda1 of=/dev/hda2
or you can copy the directory structure with cp, e.g.
cp -ax / /backup
(where /backup is the mount point of the backup partition).
NB: If you use dd, ensure that the source partition is mounted
read-only, and that the target partition is unmounted.
--
Glynn Clements <[EMAIL PROTECTED]>