* Create an empty image
* creating (1GB)
$dd if=/dev/zero of=temp.img bs=512 count=2097152
* formatting
$mkfs.ext2 temp.img
* mounting
$mkdir /media/img
$mount -o loop temp.img /media/img

* Create a disk image from phisical drive
cat /dev/fd0 > imagefile.img

* Copy image to the phisical drive
cat imagefile.img > /dev/fd0
저작자 표시 비영리 변경 금지
Posted by 유야

댓글을 달아 주세요

  1. BlogIcon iolo 2008/10/08 00:55  댓글주소  수정/삭제  댓글쓰기

    심심하면 cat imagefile.img > /dev/sda1 강추~~=3=33