dump and restore

Roland Smith rsmith at xs4all.nl
Fri Jul 18 21:44:03 UTC 2008

On Fri, Jul 18, 2008 at 11:21:26PM +0200, Peter Boosten wrote:
> Hi all,
> My harddisk was failing and I wanted the data copied to another disk, 
> but since my original wouldn't boot, I installed a minimal FreeBSD on 
> the new disk, mounted the old partitions under /mnt and copied from the 
> original to the new partitions by using:
> dump 0af - /dev/ad2s1[adef] | restore xf -
> (the partitions adef where done one by one)
> The /usr/ partition was 74Gb, and it took (according to dump 52631 
> seconds (~ 14.5 hours) to copy. Both disks are IDE, in the same machine 
> on different IDE controllers.
> Is it normal for a backup/restore to take this long? Or could this be 
> due to my failing disk?

When dumping to a file it should not take this long. But in this case it
might be that dump is waiting for restore, since the space in a pipe is
not infinite. 

Also, when dumping mounted partitions you should use the -L flag with
dump. But in a case like this there is little reason to mount the old

If the failing disk was giving trouble, you might find errors in

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080718/7d9717d9/attachment.pgp

More information about the freebsd-questions mailing list