User Tools

Site Tools


ubuntu:disk:ramdisk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:disk:ramdisk [2021/06/22 10:46] peterubuntu:disk:ramdisk [2021/06/22 11:08] (current) peter
Line 1: Line 1:
 ====== Ubuntu - Disk - Ramdisk ====== ====== Ubuntu - Disk - Ramdisk ======
  
-[[Ubuntu:Disk:Ramdisk:Create a Ramdisk|Create a Ramdisk]] +Ramdisks are very fast as purely in memory.
- +
-===== Create a Ramdisk ===== +
- +
-<code bash> +
-mkdir /mnt/ramdisk +
-mount -t tmpfs -o rw,size=240G tmpfs /mnt/ramdisk +
-</code> +
- +
-<WRAP info> +
-**NOTE:**  This mounts a ramdisk with 240GB under the path /mnt/ramdisk. +
- +
-  * **-t tmpfs**:   +
-    * tmpfs only uses memory when you it contains files. +
-    * When it is empty, it will take almost no space in RAM. +
- +
-</WRAP>+
  
 ---- ----
  
-===== Verify the Ramdisk =====+[[Ubuntu:Disk:Ramdisk:Create a Ramdisk|Create a Ramdisk]]
  
-Verify that the RAMDISK has been created.+[[Ubuntu:Disk:Ramdisk:Persisting Ramdisk Data|Persisting Ramdisk Data]]
  
-<code bash> 
-df -h 
-</code> 
  
----- 
  
-===== Mount the Ramdisk automatically on system boot ===== 
- 
-Edit /etc/fstab, and add the following line to the the end of the file. 
- 
-<file bash /etc/fstab> 
-tmpfs  /mnt/ramdisk  tmpfs  rw,size=240G  0   0 
-</file> 
- 
----- 
  
ubuntu/disk/ramdisk.1624358769.txt.gz · Last modified: 2021/06/22 10:46 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki