FreeBSD ramdisk – mdconfig

Creating a ramdisk on FreeBSD is straight forward but Google will lead you astray. The main problem with finding accurate results on how to create a ramdisk is that it’s not called a ramdisk. It’s technically referred to as a “memory-based disk” in FreeBSD. To make matters worse the name of the utility has recently changed. It use to be “vnconfig” and is now “mdconfig“. Most of the articles instruct the user to create a startup script run out of rc.local that initializes and mounts the memory disk at startup. However, FreeBSD added proper rc scripts...
read more