Home tmade.de

Home Wiki

DD

Copy data/partition with dd: you can just copy files and partions but NO folders.

dd if=/path/file of=/path/file 
dd if=/dev/sda1 of=boot.partition 
dd if=/dev/sda of=/tmp/mbr_copy bs=512 count=1
dd if=/dev/cciss/c0d0 bs=16065b | gzip -1 >/mnt/LinuxDD_Images/wilde20110416.gz
dd if=/dev/zero of=youroutputfile bs=1024 count=102400                               #Creates a file with blocksize 1024 and 100 MB
dd if=/dev/zero of=/tmp/swapfile bs=1024 count=2M                                    #Creates a file with blocksize 1024 and 2GB
linux/dd.txt · Last modified: 2018/05/15 15:55 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki