ディレクトリの内容(「/ home / sid / folder /」など)からイメージを作成したい。次に、/ dev / loop0を使用して、ext3形式にフォーマットします。最後に、作成したイメージをloop0に関連付けて、マウントします。どうすればよいですか?
2824 次
1 に答える
1
Create your image file of the size you want:
dd if=/dev/zero of=./your.img bz=1M count=<number of megabytes you want>
Format it
mkfs.ext3 ./your.img
(Recheck that command before running it, do read what is printed out.)
Mount it:
mount -o loop ./your.img /some/mount/point
And you're done. Don't forget to unmount before you copy/send that image file anywhere.
于 2012-04-30T07:27:41.793 に答える