// create a 1G image file
# dd if=/dev/zero of=1G.img bs=1M seek=1024 count=0
# ls -l 1G.img
-rw-r-r- 1 root root 1048576000 Mar 25 15:32 1G.img
# du -m 1G.img
//format the 1G image file as ext3 format
# sudo mkfs.ext3 -L LABELIMAGE ./1G.img
# sudo mount -t ext3 ./1G.img /mnt/image -o loop
沒有留言:
張貼留言