To set up the ramdisk, you will need to create a directory in the folder /mnt/ramdisk and also set the permission to allow full access:
sudo mkdir /mnt/ramdisk sudo chmod 777 /mnt sudo chmod 777 /mnt/ramdisk
Then, you will need to create a new ramdisk, make sure that your PC should have at least 4GB RAM:
sudo mount -t tmpfs -o size=1GB myramdisk /mnt/ramdisk
To unmount the ramdisk, just type this command below:
sudo umount /mnt/ramdisk