Writing to read-only devices with aufs2

Conclusion

Aufs easily creates workarounds to provide virtual write access to read-only media or files residing in read-only filesystems, such as ISO9660 (which supports no write operation, whether the underlying block device is writable or not). Without aufs, then symlinks, bind-mounts, and filesystem restructuring is necessary to support writing to otherwise unwritable files. Setting up a chroot environment to record changes to the filesystem is easy with aufs, because it puts all changed files and a record of modifications to metadata on the writable branch. With this feature, you can create "incremental" installations by adding filesystem history step by step. Also, you can use existing mount points as targets, so the old directory data is "hidden" by the modified data.

Aufs2 users have long backed adding aufs2 to the main kernel. Because of attempts to add overlay capabilities into the generic virtual filesystem layer rather than a separate filesystem, aufs2 likely won't make it into the kernel soon.

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

  • AuFS

    AuFS offers a painless filesystem for a thin client, and FS-Cache provides a persistent cache.

  • Live Distros with NTFS

    A Linux live distro may be just what you need to recover a Windows computer brought down by a system problem or virus attack. Knoppix creator Klaus Knopper gives you some tips for accessing NTFS from live Linux.

  • 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