Ramdisk snippets

This post demonstrates bash mount to create a temporarily ramdisk

Create a ramdisk directory using 2G of RAM and mount it to a new directory

Create a ramdisk

sudo mkdir /ramdisk
sudo chmod 777 /ramdisk
sudo mount -t tmpfs -o size=2G tmpfs /ramdisk

Warning: Be careful, data copied into the ramdisk are not permanent and lost if you shut down your computer !