Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- tmpdir="$(mktemp -d)"
- mount -t tmpfs -o size=10M tmpfs "$tmpdir"
- dd if=/dev/zero of="$tmpdir"/fs.image bs=1024 count=$[1024*5]
- losetup /dev/loop0 "$tmpdir"/fs.image
- umount "$tmpdir"
- fuser -a "$tmpdir"
- lsof "$tmpdir"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement