ubuntu:disk:ramdisk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:disk:ramdisk [2021/06/22 10:45] – peter | ubuntu:disk:ramdisk [2021/06/22 11:08] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Disk - Ramdisk ====== | ====== Ubuntu - Disk - Ramdisk ====== | ||
- | ===== Create a Ramdisk ===== | + | Ramdisks are very fast as purely in memory. |
- | + | ||
- | <code bash> | + | |
- | mkdir / | + | |
- | mount -t tmpfs -o rw, | + | |
- | </ | + | |
- | + | ||
- | <WRAP info> | + | |
- | **NOTE: | + | |
- | + | ||
- | * **-t tmpfs**: | + | |
- | * tmpfs only uses memory | + | |
- | * When it is empty, it will take almost no space in RAM. | + | |
- | + | ||
- | </ | + | |
---- | ---- | ||
- | ===== Verify the Ramdisk | + | [[Ubuntu: |
- | Verify that the RAMDISK has been created. | + | [[Ubuntu: |
- | <code bash> | ||
- | df -h | ||
- | </ | ||
- | ---- | ||
- | ===== Mount the Ramdisk automatically on system boot ===== | ||
- | |||
- | Edit /etc/fstab, and add the following line to the the end of the file. | ||
- | |||
- | <file bash / | ||
- | tmpfs / | ||
- | </ | ||
- | |||
- | ---- | ||
ubuntu/disk/ramdisk.1624358738.txt.gz · Last modified: 2021/06/22 10:45 by peter