Use the following commands:
- Creating the RAM disk:
$ sudo mkdir /mnt/ramdisk
$ sudo vi /etc/fstab
and add this entry:
tmpfs /mnt/ramdisk tmpfs rw,size=200M,x-gvfs-show 0 0
where 200M is the size of the RAM disk.
$ sudo mount -a
- Deleting the RAM disk:
$ sudo umount /mnt/ramdisk
$ sudo rm -r /mnt/ramdisk
$ sudo vi /etc/fstab
and delete the last entry.