Skip to content

Instantly share code, notes, and snippets.

@yadavpooja
Created April 25, 2016 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yadavpooja/17e041464b54306e324b62e3b995f56e to your computer and use it in GitHub Desktop.
Save yadavpooja/17e041464b54306e324b62e3b995f56e to your computer and use it in GitHub Desktop.
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