Skip to content

Instantly share code, notes, and snippets.

Embed
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.