ΥڡϤƤʥ֥åޡɲΥڡޤϤƤʥ֥åޡ Υڡlivedoor åפɲΥڡޤlivedoor å

ܼ

ddޥ

  • ϡɥǤRAIDξ硢OS¦RAIDռ뤳ȤϤʤɥ饤¦ϰռƤˡ
    • ĤޤꡢddޥɤǥХååפꥹȥǽȤʤ롣

ddޥɤˤHDDΥХåå

# dd if=[ԡHDD] of=[ԡHDD]
  • Ʊ̤HDDȤäХåå˸
    • ΥޥɤǴݤȥХååפ硢ѡƥڤƱΥǥˤʤ롣ԡHDD̤礭硢Ĥäΰ϶ΰˤʤ롣
  • ̤礭HDD˥ХååפˤϡdumpޥɤrestoreޥɤȤۤ褤

ddޥɤˤ를եޥå

Τ褦ϤȡǥΤ˽񤭹ߡǡä롣

# dd if=/dev/zero of=[եޥåоݤHDD]

Υޥɤ¹Ԥȡif˻ꤷե뤫1֥åʥǥեȤǤ512Хȡˤɤ߹ߡofǻꤷե˽񤭹Ȥư򥨥顼ФޤǷ֤

/dev/zeroɤ߹Ⱦ0֤ۥǥХǤ롣

bs=10MBΤ褦˥֥åꤹȡեޥåȤλ֤ṳ̂Ǥ롣

# dd if=/dev/zero of=[եޥåоݤHDD] bs=10MB

ʥեޥå

ñ˥եޥåȤ򤷤ȡHDDʬ򤷡ǥФαĴ0ΤȤ0񤭤Ȥȡ1ΤȤ0񤭤ȤǤϼ˰㤤ФˤȥǡǤƤޤ*1

äơ˥ǡäϡǡ2񤭤Ƥ顢եޥåȤ롣

# dd if=/dev/urandom of=[եޥåоݤHDD]
# dd if=/dev/urandom of=[եޥåоݤHDD]
# dd if=/dev/zero of=[եޥåоݤHDD]

/dev/urandom벾ۥǥХǤ롣

[]shredޥɤȤäƤǡξ񤭽ȥեޥåȤ¸Ǥ롣-nץǻꤷʬͤǾ񤭤򤹤ʾά25ԤäƤޤΤաˡ

# shred -n 2 -z /dev/hda

[]Linuxˤ벾ۥǥХȤơ/dev/random/dev/urandom롣ͳˤꡢ̾ϸԤ/dev/urandomȤ٤Ǥ롣

  • /dev/random
    • ԽʬǤ硢ѤޤǡԤʤ
  • /dev/urandom
    • ԽʬǤ硢ݻƤͤΰŹŪ˶ϥå֤ͤ

ddޥɤμ¹вǧ

ddޥɤΥץФơUSR1ʥ뤳Ȥвɽ뤳ȤǤ롣

# dd if=[ԡHDD] of=[ԡHDD] &
ʥץIDɽ
# kill -USR1 [嵭ΥץID]

ddޥɤMBR¸

# dd if=/dev/hda of=/mnt/floppy/mbr.dsk bs=512 count=1

HDDƬǤ(512ХʬˤFD¸Ǥ롣

񤭽Ф줿ƤХʥꥨǥɽСƤϤ뤳ȤǤ롣

ddޥɤiso᡼

ˡȤХޥȤɬפʤ񤭹߸¤Τǥ쥯ȥѤа̥桼Ǥ⥳ԡǽǤ롣

# dd if=/dev/hdb of=/tmp/image.iso bs=1024

[]if=ΤȤϴĶ˹碌ѹ뤳ȡ

ddޥɤFDʣ

1ʣȤʤFDơΥޥɤ¹Ԥ롣

# dd if=/dev/fd0 of=/tmp/fdimage

2ʣȤʤFDơΥޥɤ¹Ԥ롣

# dd if=/tmp/fdimage of=/dev/fd0 

ddޥɤLinuxΥ֡ȥǥ

# dd if=/boot/vmlinuz of=/dev/fd0

"vmlinuz"ʬˤϸ߻Υͥ륤᡼ꤹ롣

[]mkbootdiskޥɤǤ֡FDǽǤ롣

ddޥɤǥƥѥǡ

ƥȤΤŬ礭Υǡ뤳ȤǤ롣

# dd if=/dev/zero of=[ե̾] bs=[֥å(Х)] count=[֥å]

夬ե̤ϡ֥֥åߥ֥åפˤʤ롣

㡧1GХȤΥƥѥǡ롣

# dd if=/dev/zero of=testdata bs=1M count=1000

GNU utilities for Win32˴ޤޤƤdd.exeѤ

  • ѥλλüʤΤա
    • ̾DOSޥɤǤСC:פȻꤹȤ򡢡\\.\c:פȻꤹɬפ롣

㡧FDΥ᡼롣

dd if=\\.\a: of=image

FDDAɥ饤֤Ȳꤷ


*1 αĴˡȤƤʣ롣ɽŪʼˡȤơϸˤαβϤ󤲤롣