지식쌓기
Create a FileSystem under linux
바나나쥬스
2008. 10. 7. 23:25
* Create an empty image
* Create a disk image from phisical drive
* Copy image to the phisical drive
* 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
$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