dd ã³ãã³ãã¯ãã¼ããã£ã¹ã¯ã»ãã¼ãã£ã·ã§ã³ã丸ãã¨åãåºãã¾ãã0/1ã®ä¿¡å·ã®ããåãåºããããã§ããddã³ãã³ãã使ãã°ãã¼ã¿ããã®ã¾ã¾ããã£ã¹ã¯ã移åããããã¨ãåºæ¥ã¾ãã
dd ã§ãã£ã¹ã¯ãããã£ã¹ã¯ã¸ããã¯ã¢ãã
ãã£ã¹ã¯Toãã£ã¹ã¯ã§ã³ãã¼ããå ´åããã¼ããã£ã¹ã¯ã®å®¹éãåãããªãã¨ã ã
dd if=/dev/sdb of=/dev/sdc
dd ã§ãã£ã¹ã¯ããã¤ã¡ã¼ã¸ãã¡ã¤ã«ã¸
HDDã«ç©ºã容éããããªããã¤ã¡ã¼ã¸ãã¡ã¤ã«ãä½ã£ã¡ããã®ãå¾ã§ä½¿ããããã
dd if=/dev/sdb of=/var/disk-img/some-winXp-hdd.img
HDDã«æ éç®æããã£ã¦ããèªããã¨ãããå¼·å¼ã«èªãã§ãã¾ãã
âãã£ã¹ã¯ã«ã¨ã©ã¼ããã£ã¦ã大ä¸å¤«
dd ã¯å¤å°ã®ã¨ã©ã¼ãããã¨ä½æ¥ãããã¦ãã¾ãã®ã§ãæ éç®æã¯ãã£é£ã°ãã¦ãèªããç®æãã©ãã©ãèªã¿è¾¼ãã§ããã¯ã¢ãããåã£ã¦ãã¾ãã
dd if=/dev/sdb of=/var/disk-img/some-winXp-hdd.img conv=sync,noerror bs=4096
- noerror ãã¨ã©ã¼èªã¿é£ã°ã
- sync ã¯ã¨ã©ã¼ç®æãNUL(ã¼ãï¼ã§åãã
- bs ã¯byte size èªè¾¼æ¸ãåºããã¤ããµã¤ãº
bs ãå°ããæ¹ãã¼ãåéãå°ãªãã¦æ¸ããã©ã512ãªã©å°ããã¨æ¥µç«¯ã«æéãæããã注æãå¿
è¦ããã£ã¹ã¯ã¨ã©ã¼ããã®ãã¼ã¿åãåºããªã©ç¥çµä½¿ãä½æ¥ã¯ï¼ï¼ï¼ãã¦ãããªã
dd ã®éä¸çµéãåãããªãï¼ï¼ï¼
â大ä¸å¤«ãè¦ãããï¼
dd ããã¦ãã¦å°ãã®ãã³ã¬ããã¤ãããã®ï¼ã©ãã¾ã§é²ãã ã®ï¼
å¥ã®Bashãèµ·åãã¦ã次ã®ã³ãã³ããå®è¡ãã¾ãã
DDå®è¡ä¸ã«ã転éç¶æ³
éä¸ã®çµéãè¦ã¾ãï¼
killall -USR1 dd
mac osx ãBSD 系㯠INFOãï¼ãã£ã¡ãæ£ããå®è£ ã ã¨æã
killall -INFO dd # OSX
dd㯠KILLã®ãªãã·ã§ã³ã§USRããã¦ãããéä¸çµéã表示ãã¾ãï¼
dd ã®é²æãè¦ããã¨ãåºæ¥ã¾ãã
7129825+0 è¨é²å§ã 7129824+0 è¨é²çµãã 3650469888 ãã¤ã (3.7 GB) ã³ãã¼çµäº, 450.668 s, 8.1 MB/s
ãã®è»¢éé度ããã©ããããã®æéãæããè¨ç®ã§ãã¾ããã転éé度ããæ®ãã®éä¸çµéãè¦ãªãããdd ã³ãã³ãã使ãã°OKã§ããã
ntfs ã§ãåé¡ãªãï¼
â大ä¸å¤«ãDDåºæ¥ããã§ãntfscloneã使ãã
Windowsã®NTFSã§ãåé¡ãªãDDåºæ¥ã¾ãã0/1ãæ¸ãã¡ããããå½ããåãã ãã©ãntfs ã¯NTFSç¨ã®ãã¼ã«ã使ãã®ãè¯ãããã¼ãã£ã·ã§ã³åä½ãªãNTFSãã¼ã«ãé«é
ntfsclone -rescue -O /dev/sdb1 /dev/sdc1
dd ã§ãã£ã¹ã¯ã®å®å ¨æ¶å»
dd 㯠null ãæ¸ãè¾¼ããã¨ãåºæ¥ãã®ã§ HDDãzeroã§åãã¦ããã¼ã¿ãæ¶å»ãããã¨ãåºæ¥ã¾ãããã£ã¹ã¯ã®å®å ¨æ¶å»ã«ã使ãã¾ãããã©ã¼ãããã§ãæ¶ããªããã¼ã¿ãæ¶ãã¾ãã
dd if=/dev/zero of=/dev/sdc
dd ã§CD-ROMãã¤ã¡ã¼ã¸å
dd ã§CD-ROMãiso ã¤ã¡ã¼ã¸ã«ãããã¨ãåºæ¥ã¾ãã
dd if=/dev/cdrom of=fooobar.iso
ä»ã«ããããããªä½¿ãæ¹ãåºæ¥ã¾ãã
- åºåå
ãããããã¯ã¼ã¯ã«æå®ãããã¨ãåºæ¥ã¾ãã
- SSHè¶ãã«ããã¯ã¢ããåºæ¥ã
- å§ç¸®ããªããããã¯ã¢ãã
- gzipé£ããã
ãªã©ãæ¨æºå ¥åºåã使ããã¨ã§ãã³ãã³ãé£æºãå¯è½ã§ããã
åºæ¥ãã£ãã¤ã¡ã¼ã¸ãã¡ã¤ã«ã¯å§ç¸®ãã¦ããã¨è¯ãã§ãã
Gzipã§å§ç¸®ããã¨ç¸å½å°ãããªãã¾ãã
http://d.hatena.ne.jp/takuya_1st/20101019/1287508076lzop ã§å§ç¸®
takuya@v1055d:/media/disk/disk-imgs$ time lzop takuya-letsnot.img
ï¼gzipã®å ´åï¼ # dd if=/dev/sda | gzip -c > /mnt/sdc1/sda.img.gzhttp://blog.dc-d.jp/?p=600
2010-10-28追è¨
ç¥èã¨ãã¦dd ãç¥ã£ã¦ãããæ¹ããããå®é使ãã®ã¯dd_rescueã便å©ãã
dd_rescueコマンドで、HDDのバックアップ が楽になる - それマグで!