2022 Developer Survey is open! Take survey.

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

NFS-Ganesha High Availability

so I have a glusterfs cluster on 3 different servers. On a client machine I can mount it normally with their client like this. Notice how I can specify 3 servers... /etc/fstab node1,node2,node3:/...
user avatar
  • 131
0 votes
1 answer
49 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=/...
user avatar
  • 3
0 votes
0 answers
29 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 ...
user avatar
1 vote
0 answers
109 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 ...
user avatar
1 vote
1 answer
676 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/...
user avatar
  • 22.5k
0 votes
1 answer
36 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 ...
user avatar
  • 125
0 votes
0 answers
293 views

"mount: : wrong fs type, bad option, bad superblock on test_ovfs, missing codepage or helper program, or other error." with liveUSB

I'm running Linux booted from liveUSB now. I stumbled upon an error when creating overlayfs: "mount: wrong fs type, bad option, bad superblock on test_ovfs, missing codepage or helper program, or ...
user avatar
2 votes
1 answer
162 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 ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
0 votes
1 answer
78 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 ...
user avatar
0 votes
0 answers
84 views

OverlayFS and NTFS as an upperdir

It does not appear to be allowed to create an overlayfs using a folder on an NTFS format partition as an upperdir. Why not ? If I am wrong and this is possible, please let me know - it did not work ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 1,736
0 votes
0 answers
17 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 ...
user avatar
  • 1
1 vote
1 answer
51 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 + ...
user avatar
1 vote
0 answers
207 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 ...
user avatar
0 votes
0 answers
34 views

Bind mount with mindepth option?

Is there a way to use something similar to the "mindepth" option of the find command with a bind mount ? Here is my directories and files structure : level 0 directory ├── level 1 directory ...
user avatar
  • 1
0 votes
2 answers
516 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 ...
user avatar
  • 101
1 vote
0 answers
22 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 ...
user avatar
0 votes
0 answers
155 views

overlayfs duplicating files across overlays via NFS

On Linux 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux Problem: I am trying to use OverlayFS and NFS to aggregate media files into a set of exported filesystems. When I ...
user avatar
  • 1
1 vote
0 answers
40 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 ...
user avatar
  • 135
0 votes
1 answer
75 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 ...
user avatar
  • 135
1 vote
0 answers
48 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 ...
user avatar
  • 2,775
1 vote
0 answers
266 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 ...
user avatar
2 votes
0 answers
626 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 ...
user avatar
1 vote
0 answers
237 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'...
user avatar
  • 117
0 votes
1 answer
680 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 ...
user avatar
  • 41
1 vote
1 answer
930 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 ...
user avatar
  • 113
0 votes
0 answers
389 views

How do I merge directories (read-only) using overlayfs?

I'm using overlayfs to merge three directories together as follows: mount -t overlay overlay -o lowerdir=/dir1:/dir2:/dir3 /targetdir This works partially according to my expectations. Some files ...
user avatar
  • 1,335
2 votes
1 answer
903 views

Mounting overlayfs with root patition stop working (for me)

I am trying to use rootfs as a lower point of new overlay mount point. Then I chroot to a new mount point and use it for test some packages and selflearning without harming real system. This was ...
user avatar
  • 21
1 vote
1 answer
532 views

Proper way to backup an overlayfs

I'm using an overlayfs for different folders. Now I'm thinking about a backup and restore process. I didn't found anything via google, which answered my question. An overlayfs has an upper, lower, ...
user avatar
0 votes
0 answers
456 views

overlay-fs and editing upper directory with vim

For developing purposes, I am using the overlay-fs to merge custom changes to the base file structure. The merged-folder is used by a java application. Now I experienced a strange behavior when using ...
user avatar
6 votes
1 answer
492 views

Stackable file system that works like a cache

I am looking for a stackable file system (Like UnionFS, aufs, and OverlayFS) that works similar to bcache or lvmcache but on file level - not on block level: Reads will be done from top-layer. If the ...
user avatar
  • 29.7k
2 votes
0 answers
38 views

Mount order problem with systemd

Running Raspbian Buster. I have a loopback mount defined in fstab (bind option) where directory A is looped in as B. I have another service started later (with systemd After=local-fs.target) that ...
user avatar
3 votes
0 answers
2k views

Difficulty mounting NFS as a layer in Overlayfs - bash: Operation not supported

Synopsis I'm serving a NFS share from my local machine and, while mounting and accessing the share works as expected, when I attempt to reference the NFS as a lower directory in overlayfs, operations ...
user avatar
0 votes
1 answer
875 views

mount overlay upperdir under lowerdir?

I'm new to mounts and overlayfs. Is it possible to put upperdir under lowerdir? e.g. volumes: app: driver: local driver_opts: type: overlay o: lowerdir=${PWD},upperdir=${PWD}/...
user avatar
  • 734
2 votes
1 answer
133 views

Is there any way around the length limitation in mount options?

Say I create a series of directories in the form "elem_###", where ### are the integers from 001 to 454, like so: $ dirs=$(seq -felem_%03.0f 454 | tr '\n' ' ') $ mkdir ${dirs} I then use these ...
user avatar
  • 123
1 vote
1 answer
596 views

change UID and GID file attributes on read only file system with mount [duplicate]

I have some file image of filesystem, and I want mount it with parameter changing files and directories UID and GID. I cannot change its parameters, because it is read-only filesystem. I found some ...
user avatar
  • 597
1 vote
1 answer
587 views

LXC Container with Overlayfs/Squashfs

We are using a Centos LXC container with the rootfs contained in a squashfs filesystem. I really like the fact that a user cannot edit the rootfs from the host. During the development, developers ...
user avatar
  • 121
0 votes
2 answers
2k views

Which file should I modify to mount a user overlay at boot time

I'm working on an embedded device with an arm cortex A9. The kernel version is 4.16.0 and is generated by buildroot 2018.05. The storage memory is an mmc with several partition. U-boot reads the ...
user avatar
  • 206
1 vote
1 answer
466 views

Which (if any) union filesystems allow you to mount them without an underlying filesystem?

I am considering using a union filesystem, such as aufs, UnionFS or OverlayFS. I have a 138GB of Android source, to which I want to make minor changes and keep them under version control. My plan is ...
user avatar
  • 581
2 votes
1 answer
353 views

How to escape comma on mount options for overlay

To mount overlay it is given lowerdir, upperdir and workdir as options on mount(8) or data on mount(2), what logic is applied in order to escape commas? I have tried double commas and even quoting ...
user avatar
6 votes
2 answers
920 views

How to mount overlayfs where lower has child mounts?

I'm trying to setup an overlayfs for a chroot environment. The environment is made up from multiple read-only squashfs file systems (lower) and a single writable directory (upper). The tricky part ...
user avatar
3 votes
0 answers
344 views

Why does cache work better in overlay2 than aufs?

A follow-up from this question. After reading Docker Storage drivers from official doc I understood that overlay was faster than aufs because it had only one hard linked image layer. But for ...
user avatar
2 votes
0 answers
187 views

Mount overlay directory containing NFS shared mount

I have a directory /tmp/usr/usr. In this path I mount NFS share from an other machine: mount -t nfs IP:/export_path/usr /tmp/usr/usr The contents of the remote /usr is there. But when I try to ...
user avatar
  • 1,151
2 votes
0 answers
495 views

How to copy an overlay partition to a file, and how to mount such file?

I have a disk, with two partitions: # fdisk -l Disk /dev/mmcblk0: 7381 MB, 7381975040 bytes 4 heads, 16 sectors/track, 225280 cylinders Units = cylinders of 64 * 512 = 32768 bytes Device ...
user avatar
1 vote
0 answers
1k views

"Structure needs cleaning" error with Overlay FS

When I run this command: mount -t overlay overlay -olowerdir=/some_lower_dir_0,upperdir=/some_upper_dir,workdir=/some_work_dir /some/overlay_dir Everything works fine. When I add more and more ...
user avatar
  • 111
1 vote
0 answers
102 views

Why does rootless podman does not support overlfayfs mounts in non-ubuntu distributions?

In the rootless podman doc, it is stated that: Can not use overlayfs driver, but does support fuse-overlayfs Ubuntu supports non root overlay, but no other Linux distros do. So ...
user avatar
  • 125
2 votes
1 answer
537 views

Is it possible to mount an overlay over / right after boot?

Background: I have an embedded system with both flash and SD storage. Currently I use flash just for booting (uBoot, kernel, initramfs). Root filesystem (/) is on SD (ext3 on /dev/mmcblk0p2). I (...
user avatar
  • 728
2 votes
1 answer
904 views

How can I use OverlayFS to "combine" multiple storage into one? Is this possible?

I've been looking into using OverlayFS. I'd like to be able to combine a bunch of already formatted, already containing data, hard drives. All hard drives are formatted with ext4. The goal is to ...
user avatar
0 votes
0 answers
2k views

Overlay : filesystem not supported on lowerdir

I tried to mount an external storage device (a usb flash drive) with overlay (as the lowerdir the usb and as upper a temporary ramdisk) mkdir /data mkdir /data/lower mkdir /data/rw mkdir /data/root ...
user avatar
  • 43