Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If i wanted my Linux install to act as non persistent, as in I boot from the hard drive as normal but any changes i make won't save, is it as simple as changing the filesystems to 'r' in fstab? Would I have to have some partitions rw, /var perhaps? I imagine read only /var would throw me tons of errors. Any other partitions I need?
I boot from the hard drive as normal but any changes i make won't save
I think the point here is that you won't be able to make changes... IMO a better way would be to have a script that "restores" the computer's state from a separate backup partition when you boot it up
This is a good point, but i was thinking more like a live cd. You can install stuff, create files etc. Perhaps i could somehow unpack a live cd iso to a hard drive?
In addition to TinyCore, for some variety check out Slax, Slitaz, and DSL. But - yes - if you want to start from a clean slate upon reboot, a live environment (probably CD) is a good way to go.
Every live cd/dvd could be usually made to do what you want. That is to use the image of the live cd and save it to your hard drive. The problem is that the normal way is set to root and allows read/write to local disks. You could fix that.
Simply using grub4dos would allow many iso's to be run directly. Almost every how to at pendrivelinux would work too for a hard drive as it does for a usb.
I did a read only setup a few years ago. Just kept looking through the init scripts until I found the place where it remounted root as r/w and commented that out.
I found there was a few things, mostly in var that needed to write so I did a search on how to create a ram drive, set that up early in the init and then would link the files there and touch them in the init so they were created in the ramdisk each time. was actually pretty easy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.