Skip to content

Commit

Permalink
Added tmpfs mount to avoid wasting the hard drive
Browse files Browse the repository at this point in the history
  • Loading branch information
oncletom committed Sep 28, 2013
1 parent ad89da4 commit 2eba839
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions bin/tmpfs-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
ramfs_size_mb=2560
mount_point=./tmp

ramfs_size_sectors=$((${ramfs_size_mb}*1024*1024/512))
ramdisk_dev=`hdid -nomount ram://${ramfs_size_sectors}`
newfs_hfs -v 'EmuNovaBuild' ${ramdisk_dev}
mkdir -p ${mount_point}
mount -o noatime -t hfs ${ramdisk_dev} ${mount_point}

echo "remove with:"
echo "umount ${mount_point}"
echo "diskutil eject ${ramdisk_dev}"
1 change: 0 additions & 1 deletion dist/.gitignore

This file was deleted.

0 comments on commit 2eba839

Please sign in to comment.