Home » Questions » Computers [ Ask a new question ]

OS X: Creating RAMDisk in root

OS X: Creating RAMDisk in root

How would I create a RAMDisk on OS X for a read-only filesystem, so that any attempted writes to the drive (which is read-only) are directed to the RAMDisk instead?

Asked by: Guest | Views: 76
Total answers/comments: 2
Guest [Entry]

"You may want a UnionFS mount...

I'm not sure exactly how you'd do this, most likely you'd create a RAM disk, put a DMG file on that, and then mount the DMG with hdiutil attach -union / file.dmg"
Guest [Entry]

"This line is a keeper... it may not be exactly what the OP was looking for, but it will surely make someone happy. And there's a lot you can learn for it too.

diskutil erasevolume HFS+ ""ramdisk"" `hdiutil attach -nomount ram://1165430000`"