Wednesday, April 24, 2019

Create a RAM disk in Linux for fast file processes or forensics

I use this from time to time to do analysis on files for forensics reasons and I need some speed using the tools. A RAM disk can speed things up a lot but remember it will be gone the next time you restart.

commands
mkdir -p /mnt/ram
mount -t tmpfs tmpfs /mnt/ram -o size=8192M

typical speed on a SSD would about about 190MB/s for file reads and writes 

using a RAM disk you can see up to 3.2 GB/s read and writes

good way to put things that need higher access, if you want to recreate at boot up you could create a shell script that would create the RAM disk and copy a file(s) to it.