Klaus Knopper answers your Linux questions

Ask Klaus!

Article from Issue 148/2013
Author(s):

 

Overlay Partitions

Question: Klaus: Knoppix 7.0.5 has a new experimental feature, allowing an overlay on a separate partition of a USB flash disk. Can you explain how it works?

Answer: Most Live distros use a (ram)disk overlay nowadays to allow virtual write access to files on a read-only medium. Before overlay filesystems like UnionFS and Aufs came into existence, you had to copy all directories that needed to be writable for configuration and storage of intermediate data (e.g., subdirectories of /var, /home, and /etc) to the ramdisk, and create symlinks on the ramdisk back to the read-only parts located on CD or DVD to keep RAM usage down.

An overlay, which is a stacking virtual filesystem, works with layers of directories; the "upper" ones are transparent (i.e., invisible) to the lower ones if they don't contain the data being searched for. Every time a file is accessed in read mode, the directory stack is searched from top to bottom for the file. The first directory layer containing the named file wins, and the file is opened from there. When writing to a file, only the top directory layer is accessed, and there the file is created or copied (Figure 1).

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Ask Klaus!

    Klaus Knopper is the creator of Knoppix and co-founder of LinuxTag expo. He currently works as a teacher, programmer, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com

  • Ask Klaus!

     

  • Ask Klaus!
  • Ask Klaus!

    Klaus Knopper is the creator of Knoppix and co-founder of LinuxTag expo. He currently works as a teacher, programmer, and consultant. If you have a configuration problem, or if you just want to learn more about how Linux works, send your questions to: klaus@linux-magazine.com

  • Ask Klaus!

    Strategies for getting around flash drive limitations and updating OSs on flash drives.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News