Copying a disk.

James Riendeau jtriende at
Mon Apr 17 20:15:28 UTC 2006

It really depends on your setup, but you should be able to run  
sysinstall to partition the disk (See: 
handbook/install-steps.html )  Then, run something like:

mount /dev/ad4s1a /mnt
dump -L -0 -f- / | (cd /mnt; restore -r -v -f-)
mount /dev/ad4s1b /mnt/var
dump -L -0 -f- /var | (cd /mnt/var; restore -r -v -f-)
mount /dev/ad4s1c /mnt/usr
dump -L -0 -f- /usr | (cd /mnt/usr; restore -r -v -f-)
mount /dev/ad4s1d /mnt/home
dump -L -0 -f- /home | (cd /mnt/home; restore -r -v -f-)
mount /dev/ad4s1e /mnt/tmp
dump -L -0 -f- /tmp | (cd /mnt/tmp; restore -r -v -f-)

&c. until all the partitions are copied.  Note that the partition  
names under /dev will be different from the above depending on how  
you laid out the disk.  Look at your fstab file located under /etc/ 
fstab and the output of the df command.  That should give you a good  
idea on how to layout the new disk.  You can make any of the  
partitions larger than the original, but you should probably avoid  
making them smaller unless your sure that your data will fit.

James Riendeau
MMI Computer Support Technician
1300 University Ave
Rm. 436, Dept. of MedMicro
Madison, WI  53706

Phone: (608) 262-3351
After-hours Phone: (608) 260-2696
Fax: (608) 262-8418
Email: jtriende at

On Apr 17, 2006, at 2:38 PM, Grant Peel wrote:

> Hi All,
> I finaly have a complete server disk (blank one).
> I was wondering what 'copy' strategy people would recomend.
> i.e how to copy a completly bootable server disk (75Gig SCSI) to  
> another identical disk. I have lots of server connections and SCSI  
> connections, so thats not an issue.
> I have a Copy of Norton Ghost (Systemworks 2003), or I can use  
> rsync (?).
> Any step by step would be appreciated.
> -Grant
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe at"

More information about the freebsd-questions mailing list