dd

convert and copy a file

copy
54
11
dd if=/dev/fd0 of=floppy.imgTakes an image of a floppy disk.

details |

copy
10
2
dd if=/dev/zero of=/dev/hda bs=2048To wipe hard drive /dev/hda, the result will be a drive with all 0's

details |

copy
17
1
dd if=/dev/cdrom of=cd.iso bs=2kThis takes an iso image of a CD and saves it as cd.iso

details |

copy
18
0
dd if=/dev/mem | hexdump -C | grep 'default'To search memory for the string default

details |

copy
20
5
dd if=/dev/zero of=/tmp/zeroFile.txt bs=512 count=2Create the file /tmp/zeroFile.txt containing all 0's and is 1024 bytes in size. This uses /dev/zero as the input (a device that's output is always zero).

details |

copy
15
3
dd if=/dev/hda skip=2 of=/dev/hdb seek=2 bs=4k conv=noerror Copy the contents of hard drive /dev/hda to /dev/hdb but skip the first 4k at the beginning of both drives. This can be handy if the second drive is a different size, you may not want to alter the second dives size.

details |

copy
12
1
dd if=/dev/sda1 of=/dev/sdb1 bs=4096 conv=notrunc,noerrorCopy's the /dev/sda1 partition to /dev/sdb1, it will not truncate the output file, and ignore read errors

details |

copy
11
0
dd bs=10240 cbs=80 conv=ascii,unblock if=/dev/hda1 of=ascii.imgTo create an image of /dev/hda1 and convert the output from EBCDIC 80-character fixed-length record to ASCII variable-length newline-terminated.

details |

copy
10
2
dd if=/dev/hda of=boot.img bs=512 count=2 Copy the master boot record of hard drive /dev/hda

details |

copy
27
3
dd if=/dev/sda | sed 's/Marry/Sally/g' | dd of=/dev/sdaReplaces ever occurrence of Marry with Sally on the hard drive /dev/sda

details |

copy
3
0
sudo dd if=ubu.img.dmg of=/dev/rdisk1 bs=1mClone ubu.img.dmg onto disk /dev/rdisk1 using 1mb block size

6 years, 7 months ago john 0 | details |

copy
2
0
dd if=/dev/zero of=/dev/null\@AMP@ pid=$!

source | details |