Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. #!/bin/bash                                                                            
  2. tmpdir="$(mktemp -d)"
  3. mount -t tmpfs -o size=10M tmpfs "$tmpdir"
  4. dd if=/dev/zero of="$tmpdir"/fs.image bs=1024 count=$[1024*5]
  5. losetup /dev/loop0 "$tmpdir"/fs.image
  6. umount "$tmpdir"
  7. fuser -a "$tmpdir"
  8. lsof "$tmpdir"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement