Ramfs management

From Vertubleu

Jump to: navigation, search

Create and mount a new ext2 partition file

Reference: http://www.debuntu.org/how-to-create-a-filesystem-within-another-partition-s-file

Example to create and mount a fresh new 5MB ext2 file-system:

dd if=/dev/zero of=./minifs.ext2 bs=1M count=5
mkfs.ext2 ./minifs.ext2
sudo mount -o loop ./minifs.ext2 /mnt/minifs

To un-mount the file-system:

sudo umount /mnt/minifs
Personal tools