ramdisk: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
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" |
No edit summary |
||
Line 4: | Line 4: | ||
<pre> | <pre> | ||
sudo mkdir / | sudo mkdir /mnt/ramdisk | ||
sudo chmod 777 / | sudo chmod 777 /mnt/ramdisk | ||
</pre> | </pre> | ||
Manaully mount disk. | Manaully mount disk. | ||
<pre> mount -t tmpfs -o size=32m ramdisk / | <pre> mount -t tmpfs -o size=32m ramdisk /mnt/ramdisk </pre> | ||
Automatically mount disk at boot. | Automatically mount disk at boot. | ||
<pre> vi /etc/fstab </pre> | <pre> vi /etc/fstab </pre> | ||
<pre> ramdisk / | <pre> ramdisk /mnt/ramdisk tmpfs defaults,size=32M,x-gvfs-show 0 0 </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Latest revision as of 10:11, 31 January 2022
To create a RAM Disk.
Create folder for directory linking.
sudo mkdir /mnt/ramdisk sudo chmod 777 /mnt/ramdisk
Manaully mount disk.
mount -t tmpfs -o size=32m ramdisk /mnt/ramdisk
Automatically mount disk at boot.
vi /etc/fstab
ramdisk /mnt/ramdisk tmpfs defaults,size=32M,x-gvfs-show 0 0