Skip to main content

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
17 views

systemd-remount-fs randomly fails with "mount: /: mount point is busy."

I recently switched to a read-only root filesystem using Yocto (Kirkstone version) and use the Yocto volatiles feature to keep some directories writable - for instance the entire /etc, /home, etc... ...
ramacassis's user avatar
1 vote
0 answers
17 views

Remounting an overlayfs on underlying filesystem failure

I have quite a bit complex setup. I'm running https://github.com/demostanis/demolinux. The root filesystem is made out of an overlayfs between a btrfs read-only subvolume and a read-write btrfs ...
demostanis's user avatar
0 votes
0 answers
25 views

Load image to docker without dockerd

I want to load docker image without dockerd. (like docker load -i image.tar ) I see that when I load docker image there are files that added to only 2 directories: overlay2,image How can I set the ...
Polo1990's user avatar
2 votes
0 answers
96 views

Mounting overlayfs in a user namespace with child mounts

I am trying to mount an overlayfs on /tmp from within a separate user & mount namespace. This works well unless /tmp already has a child mount in the original namespace, in which case this ...
Fabian Meumertzheim's user avatar
0 votes
1 answer
33 views

Separate default configurations and my own changes with a layered FS : /Data/etc/ upper layer in RO and /etc/ lower layer in RW?

I wish to separate the default packages configuration files (/etc/), and the configuration files I edited e.g. in /Data/etc/ (normally should be /usr/local/etc/, but let assume /Data/etc/). This to ...
Denis Migdal's user avatar
0 votes
0 answers
42 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
110 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
39 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
77 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
25 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
101 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
158 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
30 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
719 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
70 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
285 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
43 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
569 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
749 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
7k 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
1 vote
0 answers
443 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,516
5 votes
1 answer
554 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
110 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
1 vote
1 answer
324 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
673 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
158 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
1 vote
2 answers
2k 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
  • 111
1 vote
1 answer
610 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,065
3 votes
0 answers
981 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
  • 328
1 vote
0 answers
112 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
861 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
821 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
9k 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
  • 31.8k
0 votes
1 answer
290 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,219
1 vote
0 answers
285 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,219
0 votes
1 answer
336 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
5k 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,880
0 votes
0 answers
148 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
275 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
865 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
62 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
415 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
310 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
108 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
  • 3,015
1 vote
0 answers
749 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
4k 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
1k 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