1
2
3
4
5
6
7
8
9
# 1024 MB, argument is in 512K sectors
$ hdiutil attach -nomount ram://$((1024*1024*2))
/dev/disk2
# Initialize disk with a filesystem
$ newfs_hfs disk2
Initialized /dev/rdisk2 as a 1024 MB HFS Plus volume with a 8192k journal
# Mount the new filesystem over the MacPorts build directory
$ sudo mount -t hfs /dev/disk2 /opt/local/var/macports/build/
$