Linuxシステムのddコマンド使用チュートリアル
heng@me: dd if=/dev/hdb of=/dev/hdd
コードのコピー
heng@me: dd if=/dev/hdb of=/root/image
コードのコピー
heng@me: dd if=/root/image of=/dev/hdb
コードのコピー
heng@me: dd if=/dev/hdb | gzip > /root/image.gz
コードのコピー
heng@me: gzip -dc /root/image.gz | dd of=/dev/hdb
コードのコピー
heng@me: dd if=/dev/hda of=/root/image count=1 bs=512
count=1とは、1つのブロックのみをコピーすることを意味する。bs=512とは、ブロックサイズが512バイトであることを意味する。
コードのコピー
heng@me: dd if=/root/image of=/dev/had
コードのコピー
heng@me: dd if=/dev/fd0 of=disk.img count=1 bs=1440 k(ブロックサイズ1.44 M)
コードのコピー
heng@me: dd if=/dev/mem of=/root/mem.bin bs=1024(指定ブロックサイズ1 k)
コードのコピー
heng@me: dd if=/dev/cdrom(hdc) of=/root/cd.iso
コードのコピー
heng@me: dd if=/dev/zero of=/swapfile bs=1024 count=262144
コードのコピー
heng@me: mkswap /swapfile
コードのコピー
heng@me: swapon /swapfile
コードのコピー
/swapfile swap swap default 0 0
コードのコピー
heng@me: dd if=/dev/urandom of=/dev/hda1
コードのコピー
heng@me: dd if=/dev/zero bs=1024 count=1000000 of=/root/1Gb.file
heng@me: dd if=/root/1Gb.file bs=64k | dd of=/dev/null
コードのコピー
heng@me: dd if=/dev/zero bs=1024 count=1000000 of=/root/1Gb.file
heng@me: dd if=/dev/zero bs=2048 count=500000 of=/root/1Gb.file
< targethost-IP >heng@me: dd if=/dev/zero bs=4096 count=250000 of=/root/1Gb.file