Questions tagged [overlayfs]

For questions concerning the Overlay Filesystem, which was included in Linux kernel 3.18.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

What is the best location to store binary overlays that are applied at runtime?

Binary overlays that are applied while booting would probably best be stored in /boot/overlays or similar. However, what is the best location for binary device-tree overlay files that are intended to ...
Lukas's user avatar
  • 1
0 votes
0 answers
21 views

Combing OverlayFS with A/B partition scheme

I'm wondering if it's possible to combine OverlayFS with A/B upgrade scheme and do so in a completely RO only way. This combines a few pieces of technology, so I'm not sure if its possible or the ...
bearrito's user avatar
0 votes
0 answers
52 views

Mount overlay and assign owner to myuser

I've an entry in /etc/fstab like this: overlay /etc/myfolder overlay defaults,x-systemd.requires-mounts-for=/var/data,lowerdir=/etc/myfolder,upperdir=/var/data/overlay/myfolder/upper,workdir=/var/...
Andrea Romano's user avatar
0 votes
0 answers
31 views

Hide docker mounts from udisks / file explorer

Recently, I moved my docker data from /var/lib/docker to the home directory: /home/me/data/docker. Since then, I see mounted storages in my file explorer (Nemo). I've tried to google for udisks rules ...
dbzix's user avatar
  • 121
0 votes
0 answers
44 views

How to create a temporary filesystem overlay so all modified files go in one archive?

TLDR : I would like to execute a command that may read, create or modify files in the current folder. But I'd like all modified/created file to end up in an archive, and not actually modify the ...
MappaM's user avatar
  • 175
0 votes
0 answers
20 views

Unable to run Julia "BinaryBuilder" as part of a CI process in Ubuntu 22.04 environment

We have a GitLab CI runner set up on an on-prem computer. The runner is using the "shell" executor," so the jobs are running directly in the host environment. We have an analysis tool ...
shavera's user avatar
  • 101
0 votes
0 answers
65 views

EOVERFLOW when opening any file for writing

I'm writing a custom container engine. When I attempt to open any file for writing somewhere in the container (as long as that place is writeable, permissions-wise), I get an EOVERFLOW error (Value ...
pxeger's user avatar
  • 134
0 votes
2 answers
102 views

Overlayfs not working on kernel 6.1.31 on a Gentoo VPS

I have a VPS with Gentoo on it and the kernel overlay fs is not working. These are the kernel options related to overlay compiled into the kernel cat .config | grep -i overlay ...
PatomaS's user avatar
  • 111
0 votes
0 answers
25 views

Splitting disk writes between two filesystems based on file extension

Background I am running a proprietary video & audio management application. It reads & writes large multimedia files but also uses a home-grown "database" for metadata. The database ...
kiler129's user avatar
  • 119
1 vote
1 answer
501 views

Mounting OverlayFS in fstab at startup

Is It possible to Mount OverlayFS from external partition in fstab and benefit from systemd services extensions at startup ? Thus overlay directory tree will add new systemd services configuration ...
K. PANIK's user avatar
0 votes
1 answer
52 views

Chagnes done to the rootfs do not redirect to the overlay set in fstab

The fstab is a link to the next fstab file: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 ro,noauto 0 1 proc ...
קובי עיני's user avatar
2 votes
0 answers
183 views

Overlay mount at btrfs

I multiboot several distributions which are at separate subvolumes. They are stored in a not standardised layout. I have some subvolumes which I want mounted in a layered way. I prefere to use aufs . ...
Peter G Holm's user avatar
0 votes
0 answers
42 views

How make multiple files available as one, akin to symlinking?

Is there a way to take a list of files and make them available under a single name (in a read-only fashion)? Let's say I have: f1.txt f2.txt f3.txt And I would like to read sequentially through all ...
miku's user avatar
  • 673
0 votes
1 answer
437 views

What are the best practices for configuring durable IOT Linux devices? Should I use an Overlay File System?

In the past our company used raspberry pi's for our IOT application. The problem with that was that SD cards wear out and get corrupt. We now ordered Compulab SBC's with eMMC storage running Debian. ...
Matebo's user avatar
  • 29
2 votes
1 answer
490 views

Create a writeable overlay from inside docker, without using tmpfs?

I would like to create a new writable overlay from within a docker container. As the root filesystem in docker is already an overlay, it can't be used as the upperdir of another overlay. This answer ...
Roofus's user avatar
  • 123
9 votes
1 answer
5k views

Remaining disk space on docker overlay filesystem

I'm new to linux. I installed armbian to an sd card and everything works fine. The sd card is 64GB. Then I installed docker.io, docker-compose and portainer, nothing else. When I check for disk space ...
Jimmy's user avatar
  • 93
0 votes
0 answers
246 views

Overlay as root - can I change it to read-only?

I have an SBC onto which I installed Debian Bullseye. Now, I wish to make it as proof-as-possible to power-recycles, and I'm thinking on setting the rootfs read-only: that way no file on rootfs can go ...
Daniel's user avatar
  • 339
1 vote
0 answers
343 views

Mount /etc as overlay with / mounted as tmpfs overlay

I want to mount / as a tmpfs overlay, which is done in the initramfs and works fine. mount looks like this: ... /dev/sda1 on /ro type ext4 (ro,relatime) tmpfs-root on /rw type tmpfs (rw,relatime,size=...
JohnnyFromBF's user avatar
  • 3,496
0 votes
0 answers
206 views

Fedora Live - Encrypted Persistent Overlay

I set up a live fedora on a USB stick with overlayfs. I've been prying into the files to see what goes where. I would like to have an encrypted overlay (everything's out in the open at the moment), ...
corsel's user avatar
  • 433
5 votes
1 answer
489 views

Disk space and inodes appear to consume RAM in a Docker container

I'm trying to determine why a web server running in a Dockerized environment is consuming more memory than I expect it to. While investigating this problem, I discovered the following behavior which ...
Resigned June 2023's user avatar
0 votes
1 answer
103 views

Reset filesystem on boot failure

There is a single-board computer booting Debian 11 from an SD-card, and the idea is if it ever fails to boot (eg from losing power mid-write), it attempts to boot from a known-good setup (eg read-only ...
wohayx's user avatar
  • 1
0 votes
1 answer
254 views

Cannot unmount unconnected transport endpoint because of chdir failure

I try to unmount an unconnected endpoint (created by mount.posixovl), but when I try to unmount the endpoint using fusermount -u I get a failed to chdir. » fusermount -zu ./overlaydir fusermount: ...
Hielke Walinga's user avatar
3 votes
1 answer
553 views

Jail/Sandbox process on an overlay root and track changes

What I am trying to achieve I want to run a process as an unprivileged user, but all files that are changed by this process should be only changed in a shadow folder. Furthermore, I want to disable ...
Raphael Jenni's user avatar
0 votes
1 answer
127 views

How can I use the Trusted xattr namespace on FreeBSD 11.2?

I'm trying to translate whiteout files from the AUFS format to the kernel-overlay FS format. This entails marking certain directories with the extended attribute trusted.overlay.opaque = y. ...
Anaxagoras's user avatar
0 votes
2 answers
1k views

Prevent SD card corruption / Create read-only root FS (overlayroot)

I'm looking to prevent sd card corruption on an OrangePI Zero 2 running Debian. I thought the best way is to have a readonly fs, so I tried following the instructions here, but it failed on the ...
nak's user avatar
  • 101
1 vote
1 answer
420 views

Any way to make Virtual Machine (e.g. KVM) use overlayfs like system to have main set of file(s) and additons separately?

I've web searched, read Where does KVM hypervisor store VM files? and consider my idea not doable by standard means, still maybe it is or can somebody advice some trick/workaround? I want to have main ...
Alex Martian's user avatar
  • 1,005
1 vote
0 answers
766 views

Docker overlay folder with host folder

My situation is the following: I am having a docker image/container in which I am compiling. I had to install some components to $HOME via the Dockerfile (so while creating the image). Let's say one ...
flood's user avatar
  • 288
1 vote
0 answers
102 views

Is it possible to setup a transparent virtual file system (VFS) in userspace?

I'm trying to setup a virtual file system (VFS) that is transparent to the final program, where I may need to overlay thousands (1000-2000) of read-only directories and a single copy-on-write one; ...
Project579's user avatar
0 votes
1 answer
1k views

mount overlay failure

I am having read-write JFFS2 FS mounted on a MTD partition. Later in the boot sequence I am overlaying a read-only FS into this read-write FS. mount -t overlay overlay -olowerdir=/lower,upperdir=/...
root's user avatar
  • 23
2 votes
1 answer
739 views

Unshare with overlayfs results in permission denied with su

I am trying to setup 'rootless' containers by hand, with just unshare and mounting overlayfs. Currently, I can unpack a rootfs tarball, setup a /tmp and /proc mount, and pivot_root/chroot into it ...
Zameer Manji's user avatar
1 vote
0 answers
719 views

Mounting Overlay File System and Using rsync to sync changes doesn't work for me

I'm working on an embedded application using Raspberry Pi CM4 running DietPi OS. I want to minimize MMC flash writes as much as possible for maximum lifespan. In my installation, there are a few ...
Jeepman03's user avatar
3 votes
1 answer
8k views

Error: kernel does not support overlay fs: 'overlay' is not supported over extfs

When I run podman with --storage-opt ignore_chown_errors=true I am getting Error: kernel does not support overlay fs: 'overlay' is not supported over extfs at /home/user/.local/share/containers/...
Evan Carroll's user avatar
  • 30.4k
0 votes
1 answer
270 views

Host's VFS and Docker's OverlayFS

Linux's Virtual File System(VFS) provides a common interface to multiple file system types, for example, ext2, ext3, VFAT, etc. Imagine an ubuntu host is running several docker containers, and the ...
Ryan Lyu's user avatar
  • 194
5 votes
3 answers
1k views

Where is /cow for Linux booted from LiveUSB?

I wanted to see what files are added on top of ISO 9660 when LiveUSB Linux is running. When booted with persistence upper and work folders are on USB drive clearly seen. I run mount on Linux booted ...
Martian2020's user avatar
  • 1,157
1 vote
0 answers
241 views

Unionfs: deleting folder from upperdir results in diappearance of files in the overlayfs

I've just found out that for overlayfs created with sudo mount -t overlay -o lowerdir=iso,upperdir=to,workdir=temp overlay fin when a file is modified in fin a file appears in upperdir along with ...
Martian2020's user avatar
  • 1,157
0 votes
1 answer
282 views

Linux 4.19: apply devicetree overlay on live system

Is it possible to apply a devictree overlay on a live system? We have an embedded system that has some optional hardware. We would like to load the devicetree information after Linux booted. Reqaon ...
Ayrton Leyssens's user avatar
1 vote
1 answer
4k views

Can I use Overlayfs on Debian?

I'm running on Debian stable buster, and I'm trying to manually mount some directories using overlayfs. I installed the package fuse-overlayfs. But when I run the command $ mount -t overlayfs ... I ...
Rucent88's user avatar
  • 1,870
0 votes
0 answers
124 views

Overlayfs as a solution to copying central file systems everywhere. In what way?

I have searched the whole internet and have watched my lecture multiple times just to understand one thing: I still can't quite understand, how is overlayFS a solution to copying the central FS for ...
Sara's user avatar
  • 1
1 vote
1 answer
263 views

Privilege drop: Allow readonly access to file for unprivileged process on a readonly file system

An ideally least privileged process should be able to have readonly access to data on a filesystem, which itself is readonly. Hence this is the situation root@linux# ###(1) filesystem is untrusted + ...
humanityANDpeace's user avatar
2 votes
0 answers
802 views

Use SSDs as persistent buffer for HDDs to decrease power usage

similar questions have been asked multiple times ... How to use an SSD for caching, so my hard disks can spin down? Caching write changes on SSD to avoid HDD spin-up? ZFS, but (probably) not L2ARC ...
Max Beikirch's user avatar
1 vote
1 answer
3k views

How to control the OverlayFS size

I'm trying to mount the rootfs / of a Debian Buster system as overlayfs because I'm interested in using tmpfs for the /upper directory. My idea is to use this to preserve the root filesystem integrity ...
jfernandz's user avatar
  • 121
1 vote
0 answers
58 views

How can I display a Warning to remove a live USB stick during Shutdown?

When shutting down Xubuntu 20.04 living on a live USB stick with persistence, i.e. there is no file \casper-rw but there are ext4-partitions (without journalling) with name casper-rw as an overlay to ...
Adalbert Hanßen's user avatar
2 votes
0 answers
348 views

OverlayFS: overlay everything except special dirs

How do I use OverlayFS to overlay my complete system except some special dirs? As far as I understand from reading the docs this is how I would overlay my complete system: (I'd like the overlay to ...
Legatio's user avatar
  • 175
0 votes
1 answer
291 views

Create a "read-only" file system, that can still update packages

I would like to configure my system (raspbian) in a way that it is read-only most of the time. I have a script that runs every few days/weeks that updates all the important installed packages so I ...
Legatio's user avatar
  • 175
1 vote
0 answers
98 views

Why does /proc/mounts show a line with 7 columns (type overlay)?

I am trying to troubleshoot https://github.com/minio/minio/issues/12047, which seems to happen because one of the lines in the output of cat /proc/mounts inside a Docker container of mine seems to be ...
greg0ire's user avatar
  • 2,975
1 vote
0 answers
686 views

Expected behavior of overlayfs? Missing files from lower layer

I'm trying to build a merged overlay structure where i can replace(offline, even with reboot) the lower layer. Somehow it is not working as expected to demonstrate my problem i used the following ...
tossprobe's user avatar
6 votes
1 answer
3k views

Using bind mounts with Overlayfs

I am attempting to create a virtual mount using bind mounts in combination with OverlayFS. What would be most optimal is as follows: The root folder is bind-mounted to a new sub-folder, and used as ...
Zeitwechsler's user avatar
1 vote
0 answers
872 views

Does remounting after changes to overlayfs underlying filesystem (UB) necessarily restore consistency?

The overlayfs documentation states that "if the underlying filesystem is changed, the behavior of the overlay is undefined, though it will not result in a crash or deadlock." And, indeed, I'...
RobertR's user avatar
  • 127
1 vote
1 answer
2k views

OverlayFS - Is it possible to make overlay layer writable by anyone/specific user (different than original owner)?

Usecase: I have a lot of production data and copying it for dev purposes would be unreal. I was thinking that OverlayFS could be a solution until a problem with permissions arised. Let's assume i have ...
icaine's user avatar
  • 161
2 votes
1 answer
3k views

How to use overlay mount to combine multiple directories with different sub directories?

I have downloaded several git repositories arranged in different source trees: repoDirs1 (with child dirs including vendor) repoDirs2 (with child dirs including vendor) specialRepos1 specialRepos2 ...
Robin's user avatar
  • 123