back up CentOS using the "dd" command
back up CentOS using the "dd" command
if=/dev/sda
Is cloning the entire disk and of=/dev/sdd1
Is writing to a partition. Which doesn't make much sense.
You may want to clone the entire disk onto another disk
dd if=/dev/sda conv=sync,noerror status=progress bs=64k of=/dev/sdd
Or yet clone to a compressed image
dd if=/dev/sda | gzip > /sda.img.gz
And restore like so
gzip -d /sda.img.gz | dd of=/dev/sda
to create the image. There where four partitions in my sda
* EFI system
* Microsoft reserved
* mircosoft basic dat
* Windows recovery environment