For security reasons I want to setup a temporary directory or partition that will be removed if the system rebooted or in case of power outage.
I tried to create a tmpfs but the files where there after reboot, is there any other option?
For security reasons I want to setup a temporary directory or partition that will be removed if the system rebooted or in case of power outage.
I tried to create a tmpfs but the files where there after reboot, is there any other option?
A quick Google search leads to this page: https://www.jamescoyle.net/how-to/943-create-a-ram-disk-in-linux
And this command:
mount -t [TYPE] -o size=[SIZE] [FSTYPE] [MOUNTPOINT]
Example from the link:
mount -t tmpfs -o size=512m tmpfs /mnt/ramdisk
If you did this right, your tmpfs partition should not exist after rebooting.