Ramdisk
Use the following to create a 1MB RAM-backed mount:
_size=2048
$ diskutil erasevolume HFS+ secure $(hdiutil attach -nobrowse -nomount ram://$_size)
Unmount:
$ diskutil eject /Volumes/RAM\ Disk/
Use the following to create a 1MB RAM-backed mount:
_size=2048
$ diskutil erasevolume HFS+ secure $(hdiutil attach -nobrowse -nomount ram://$_size)
Unmount:
$ diskutil eject /Volumes/RAM\ Disk/