From 6983118f0ce956308d870152fb18cfbf3103892d Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Fri, 29 Dec 2023 18:50:24 -0700 Subject: [PATCH] Blog: grammar fixes --- src/content/blog/use-a-ramdisk.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/content/blog/use-a-ramdisk.md b/src/content/blog/use-a-ramdisk.md index c766b11..1f861f9 100644 --- a/src/content/blog/use-a-ramdisk.md +++ b/src/content/blog/use-a-ramdisk.md @@ -42,10 +42,10 @@ crash. But the outcome is good atomic-committing in git. I also put my Downloads folder in the RAM. For one thing, partial downloads from Chromium and Firefox don't matter, since neither can pick up where they left -off. This you'll have to restart an interrupted download even if you are using -non-volatile storage. I've also found my Downloads folder gets really messy if I -don't do this. Wiping it on reboot reminds me to move files into their proper -folders. +off. This means you'll have to restart an interrupted download even if you are +using non-volatile storage. I've also found my Downloads folder gets really +messy if I don't do this. Wiping it on reboot reminds me to move files into +their proper folders. The following command will symlink your Downloads folder to the RAM disk. Most programs will never notice the difference: @@ -60,10 +60,10 @@ ln -s /dev/shm/ ~/Downloads ### Shared Memory If you're on Linux, you already have a RAM disk! The path `/dev/shm` is found on -all Linux system. It stands for "shared memory" and is indented as a space for -users and programs to "share" data. Very few programs and users actually do -this, but it means that directory is accessible for writing for all users -including you. +all Linux systems. It stands for "shared memory" and is intended as a space for +users and programs to share data. Very few programs or users actually do this, +but it means that directory is accessible for writing by all users including +you. To verify a directory is mounted on a RAM disk, use the following command: @@ -73,8 +73,8 @@ df -h . df -h /dev/shm ``` -We care about what the `Filesystem` columns reports. It should be "tmpfs", -mains "temporary file system". For example mine looks like: +We care about what the `Filesystem` columns reports. It should be `tmpfs`, +meaning "temporary file system". For example mine looks like: ``` Filesystem Size Used Avail Use% Mounted on @@ -100,7 +100,7 @@ sudo mount -t tmpfs -o uid=1000,size=1g tmpfs /home/emiliko/mnt ## Advanced Notes While in this article I implied all temporary file systems are RAM disks and -vise versa, neither is technically true. It's possible to run `tmpfs` on +vise versa, neither is technically true. It's possible to mount `tmpfs` on non-volatile storage, and many servers choose to do this. Similarly, a RAM disk can be used for a normal file system, like btrfs.