Make changes to read-only file system using RAM
Hi,
Has anyone seen any work done on a RAM based file system that
stores only changes to what would otherwise have been a read-only file system? For example, live Linux CD's rely on RAM file systems to store directories/files that must be modified, but the majority of the system is mounted read-only on the CD. I was thinking it would be really nice if we could mount a read-only medium (like a CD) in read-write mode, and store only modifications in RAM. This could give the illusion of a true read-write medium, and the RAM file system would just grow as more changes are made.
I have searched around a bit and found nothing like this.
Unfortunately, I have no kernel programming experience (although I'd love to learn). I was wondering if anyone has tried something similar in the past. Also, if anyone with more experience can see any reason why this is impossible or impractical, I would love to hear it, before I come to the same conclusion many months down the line.
Thanks for your time,
Chris
Chris,
Check out unionfs.
Quoted 27 lines · Chris Swanson
Hi,
Has anyone seen any work done on a RAM based file system that
stores only changes to what would otherwise have been a read-only file system? For example, live Linux CD's rely on RAM file systems to store directories/files that must be modified, but the majority of the system is mounted read-only on the CD. I was thinking it would be really nice if we could mount a read-only medium (like a CD) in read-write mode, and store only modifications in RAM. This could give the illusion of a true read-write medium, and the RAM file system would just grow as more changes are made.
I have searched around a bit and found nothing like this.
Unfortunately, I have no kernel programming experience (although I'd love to learn). I was wondering if anyone has tried something similar in the past. Also, if anyone with more experience can see any reason why this is impossible or impractical, I would love to hear it, before I come to the same conclusion many months down the line.Thanks for your time,
Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Hi!
Quoted 1 line
Check out unionfs.
Did you find a unionfs version for 2.6 ? As far as I see, version 1.0.3 [1] is only for 2.4 .
For 2.6 one can try for example cowloop [2] (which works nice, btw).
[1] http://www.fsl.cs.sunysb.edu/project-unionfs.html
[2] www.atconsultancy.nl/cowloop
Gergely
Quoted 3 lines · Brad Fitzpatrick
Chris,
Check out unionfs.
You could try 'mini_fo'. This is similar to unionfs and it is already used on a number of liveCDs. Documentation
http://www.denx.de/PDF/Diplomabeit-MK-1.0-net.pdf, software ftp://ftp.denx.de/pub/mini_fo.
Unfortunately it also only works on 2.4.
Phillip
Sorry documentation link broken, it should be
http://www.denx.de/PDF/Diplomarbeit-MK-1.0-net.pdf.
Thanks to everyone for the info/advice. I will look into these suggestions.
Happy holidays,
Chris