Skip to content

Instantly share code, notes, and snippets.

@dwallraff
dwallraff / loopback_filesystem.sh
Last active July 6, 2024 14:53
Create and mount a loopback filesystem
#!/usr/bin/env bash
## Loopback Filesystem
# This script will create and mount a loopback filesystem
# Useful if you need to limit director(ies) by size
# but only have one volume
# This script needs to be run with sudo
LO_FILESYSTEM_NAME=my_loopback
LO_FILESYSTEM_MB_SIZE=5