info
-
ddcommand copies a file-
converting the format of the data in the process
-
according to the operands specified
-
operands
-
bsread and write bytes at a time-
ibsread bytes at a time (default 512) -
obswrite bytes at a time (default 512)
-
-
cbsconvert bytes at a time -
convcomma separated symbol list -
countcopy only input blocks -
ifread from file instead of stdin -
ofwrite to file instead of stdout
demo
-
-
create a iso disc image from cd
$ dd if=/dev/sr0 of=/home/hope/example.iso bs=2048 conv=noerror,sync -
create an img file of
/dev/sdahard drive$ dd if=/dev/sda of=~/disk1.img # restore that image $ dd if=disk1.img of/dev/sda -
copy contents
$ dd if=/dev/sda of=/dev/sdb
-
-
-
create a startup usb from a hybrid image
# !!!!! # warning: make sure to set the correct device path # as this process will delete all data # that was on the specified device previously # !!!!! # don't include an integer for the usb drive # e.g. `/dev/sdx1` as it would refer to # `the existing partition` on the drive # not the drive itself $ dd if=~/Desktop/ubuntu-15.04-desktop-amd64.iso of=/dev/sdx oflag=direct =1048576 # figure out the target usb drive path $ fdisk -l
-
-
-
convert a
dmgfile toiso$ hdiutil convert imagefile.img -format UDTO -o converted.iso -
convert an
isotodmg$ hdiutil convert converted.iso -format UDRW -o imagefile.img
-