Skip to content

Instantly share code, notes, and snippets.

View PartialVolume's full-sized avatar
🎯
In progress: Options for saving logs and PDFs

PartialVolume

🎯
In progress: Options for saving logs and PDFs
View GitHub Profile
@PartialVolume
PartialVolume / mount-loop.sh
Created March 12, 2024 22:23 — forked from Knogle/mount-loop.sh
Optimized for creating of multiple Loop-Devices
#!/bin/bash
# Function to display help message
show_help() {
echo "Usage: $0 [OPTION]... [ARGUMENTS]..."
echo "Set up and mount a loop device for a given file, create a new file of specified size and mount it, or create multiple loop devices of specified size."
echo ""
echo " --help display this help and exit"
echo " automount <Size> automatically create a file of specified size, set up and mount it"
echo " multimount <Size> <Number> create multiple files of specified size and set them up as loop devices"