dd usage : save raw image and restore raw image.
Can be used for backup or cling the harddrivers or usb keys.
1 – Check who is who :
With command :
in our case :
sdb1 = disk1
sdc1 = disk2
or use gparted :
To save full raw disk image
This method compress the image : if you use only the command dd – the image size will be 2GB While with gzip image size is 2mb (for my test I have used only 1 small image.png)
The above command just cloned the entire hard disk, including the MBR, bootloader, all partitions, UUIDs, and data.
To restore full raw image
Warning do this only from live CD
After restore operation , unmount /mount hd to see the disk changes.
dd mac usage save raw image and restore raw image
- if ==>input file
- of ==>output file
- Detect DISKS : df -h
- unmount our src : diskutil unmountDisk /dev/disk3
back up cmd : time : 6500 seconds @ 120 GB
our SRC is /dev/disk3 our dest is : /Volumes/extern/backup.img