Skip to content

Instantly share code, notes, and snippets.

@yadavpooja
yadavpooja / instructions.sh
Created April 25, 2016 03:40
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/