User Tools

Site Tools


en:tipps:ramdisk

Linux: Create RAM Disk

a RAM disk is not only faster, it can also help to reduce the write accesses to SD cards. The RAM disk is created as follows:

As root you open the file: /etc/fstab

and enter the following line:

tmpfs /tmp tmpfs nodev,nosuid,size=25M,mode=1777 0 0

Now you have a 25MB partition in RAM and the SD card is spared.

After the entry please reboot.

Instead of /tmp you can use any other directory. Instead of 25M another size can be specified. It is to be considered that this size is taken from the main memory.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
en/tipps/ramdisk.txt ยท Last modified: 2021/05/23 01:31 by kurt