Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Meetup problem statement
dd if=/dev/zero of=/opt/virtualfs bs=1MiB count=10
losetup /dev/loop999 /opt/virtualfs
mkfs.ext4 -m 1 -v /dev/loop999
mkdir /mnt/vfs
mount -t ext4 /dev/loop999 /mnt/vfs/
touch /mnt/vfs/hello.txt
umount /mnt/vfs
losetup -d /dev/loop999
losetup /dev/loop999 /opt/virtualfs
mount -t ext4 /dev/loop999 /mnt/vfs/
ls /mnt/vfs/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment