Skip to content

Instantly share code, notes, and snippets.

@evitolins
Created November 29, 2013 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evitolins/7702500 to your computer and use it in GitHub Desktop.
Save evitolins/7702500 to your computer and use it in GitHub Desktop.
OSX Folder to hybrid .iso file. Personally using this to easily gain access to files stored on OSX filesystem from within a VirtualBox session.
function dir2iso() {
echo "Generating ISO: ${1} -> ${1}.iso"
hdiutil makehybrid -iso -joliet -o ${1}.iso ${1}
}
alias dir2iso=dir2iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment