News:

The Latest electronic and computer Tips that work!

Main Menu

USE DD to make drive Clones or Images

Started by branx86, Today at 01:38:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

#smartctl -i /dev/sd?    sd?= drive you want to check -This CMD will show the drive info and serial number.

Make direct disk-to-disk copy:
#dd if=/dev/sda of=/dev/sdb bs=32M status=progress

To save space, you can compress data produced by
#dd if=/dev/hdb | gzip -c  > /image.img.gz

You can restore your disk with:
#gunzip -c /image.img.gz | dd of=/dev/hdb

Make a IMG of a Drive.
dd if=/dev/hdb of=/image.img

To save to another server drive mount first:
mount -t cifs //192.168.1.14/Drive /mnt/drive  --verbose -o user=xx$$,pass=NoOne