cBrandon Community

General Category => Linux Fixes => Topic started by: branx86 on July 13, 2025, 01:38:31 AM

Title: USE DD to make drive Clones or Images
Post by: branx86 on July 13, 2025, 01:38:31 AM
#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