Thursday, May 16, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 3067  / 1 Year ago, wed, november 30, 2022, 6:24:03

Recently, I needed to test various kernel boot-options with a live system and had to install a program to check system information on every boot (I did not have a USB drive available and the CD was the more reliable choice at that moment).



After a handful of installations, I began to wonder, where the program is actually "saved", since the CD does not have a persistent area and it's also possible to create USB drives without one. Also, it's possible to download files or make screenshots with a non-persistent live system and temporarily save them in the user directories.



Where are these files actually saved? Are they loaded into the RAM, so the maximum available memory for the live system is actually the RAM capacity of the machine? Are installed programs stored in the CPU cache or somewhere else entirely? Or is that information possibly written on empty space of the CD medium? It obviously can't be unallocated hard drive space, since live systems also work with fully encrypted or even completely without hard drives installed.


More From » software-installation

 Answers
2

It says non-persistent. So they do not "persist" (continue to exist) between reboots. What happens is that a part of the RAM is used as a RAM disk. Essentially, a part of your RAM is used to simulate a disk. That's all there is to, really. That's why you can create files on your /home/ubuntu during a LiveCD session. They just won't survive (=persist) after reboot.



I don't have a LiveCD handy, but try typing df -h in the terminal next time and look for the / mount point. Look at the device. It will most likely be something like tmpfs. (This one liner should give you the line you're interested in: df -h | grep /$ )



Some reading about RAM disks.


[#14054] Friday, December 2, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
vigorousom

Total Points: 394
Total Questions: 96
Total Answers: 110

Location: Pitcairn Islands
Member since Fri, Oct 15, 2021
3 Years ago
;