ramdisk

From KlavoWiki
Revision as of 08:29, 11 January 2022 by David (Sọ̀rọ̀ | contribs) (Created page with "To create a RAM Disk. Create folder for directory linking. <pre> sudo mkdir /tmp/ramdisk sudo chmod 777 /tmp/ramdisk </pre> Manaully mount disk. <pre> mount -t tmpfs -o size=32m ramdisk /tmp/ramdisk </pre> Automatically mount disk at boot. <pre> vi /etc/fstab </pre> <pre> ramdisk /tmp/ramdisk tmpfs defaults,size=32M,x-gvfs-show 0 0 </pre> Category : Linux")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

To create a RAM Disk.

Create folder for directory linking.

sudo mkdir /tmp/ramdisk
sudo chmod 777 /tmp/ramdisk


Manaully mount disk.

 mount -t tmpfs -o size=32m ramdisk /tmp/ramdisk 

Automatically mount disk at boot.

 vi /etc/fstab 
 ramdisk  /tmp/ramdisk  tmpfs  defaults,size=32M,x-gvfs-show  0  0