There are two types of RAM disk that can be created:
- A volatile disk. This is where you specify a size, file system, folders, compression and so on. Once the system restarts or shuts down, all contents from this disk will be gone.
- A persistent disk. This is where you specify an image file which is read to populate the RAM disk. If the relevant setting is ticked, any changes will be written back to the image file on shutdown.
As a persistent disk's contents is read from an image file, you can't specify folders to be created because the entire file system is read from the image file.
Depending on your requirements, you may want to choose one of these:
- If you want some pre-defined folders created and all changes to be discarded on shutdown, use a regular RAM disk without an image file.
- If you want all RAMdisk contents to be saved between sessions like on a normal hard drive, use an image file to create a persistent disk as described in this article.
- If you want to have pre-defined folders, files and custom permissions, but all subsequent changes to the disk to be discarded on shutdown, please see this article.