Skip to contentSkip to conversation

Make changes to read-only file system using RAM

DISCUSSION Chris Swanson 4 participants 6 messages Dec 21, 2004 – Dec 22, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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/

#5 lore raw

Thanks to everyone for the info/advice. I will look into these suggestions.

Happy holidays,

Chris