#!/bin/bash -x # format and mount 10 GB ramdisk diskutil erasevolume HFS+ SystemHD $(hdiutil attach -nomount ram://20000000)