Skip to content

Instantly share code, notes, and snippets.

@icco
Created December 23, 2009 04:22
Show Gist options
  • Select an option

  • Save icco/262305 to your computer and use it in GitHub Desktop.

Select an option

Save icco/262305 to your computer and use it in GitHub Desktop.
used to mount isos
# Mounts an iso to a folder
# usage ./mountiso.sh temp.iso mountpoint/
if [ $# -ne 2 ]; then
echo "Mounts an iso to a folder";
echo "Usage: $0 <iso> <mountpoint>";
else
echo "running mount -o loop -t iso9660 $1 $2";
mount -o loop -t iso9660 $1 $2;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment