Skip to main content

Questions tagged [overlayfs]

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

1 vote
1 answer
71 views

How is an overlayfs different from just mounting another disk/partition over a directory?

I have OpenWRT installed on some of my routers and to add additional storage for settings as well as programs that might be installed on the router and maybe logs, OpenWRT recommends you plug storage ...
leeand00's user avatar
  • 4,949
1 vote
1 answer
85 views

What security risks arise from granting unprivileged users the ability to perform overlay mounts?

I'm writing a program to allow unprivileged users to mount overlay filesystems using a setuid binary. I've implemented a few safeguards to improve the program's security, but I'd like a more ...
B. Bergeron's user avatar
1 vote
1 answer
60 views

SquashFS corruption mechanisms

My embedded Linux system, which uses a SquashFS as its root filesystem, has unexpectedly stopped booting. The system is designed with an OverlayFS mounted on a temporary RAM disk to provide read-write ...
Lhh92's user avatar
  • 61
1 vote
1 answer
73 views

How to merge two directories with failover?

Lets say I have two devices: /dev/sda1 mounted to / (system partition) /dev/sdb1 mounted to /media/data (data partition, usb device may be unplugged) I want to merge/overlay/raid two directories ...
MOHAMMAD RASIM's user avatar
0 votes
1 answer
209 views

Why does OverlayFS allow unmounting the device that contains upperdir and workdir?

I have two hard drives, each with a single partition (/dev/sda1 and /dev/sdb1). The Linux root is on /dev/sda1. I run the following script. mount /dev/sdb1 /mnt mkdir /data /mnt/upper /mnt/work mount ...
user741127's user avatar
1 vote
1 answer
646 views

Using and debugging `overlayroot` in Ubuntu 24.04 EC2

I'm trying to use the overlayroot package in ubuntu 24.04 to boot into a read only root filesystem but have a writable overlay. Everything I see online says to update the /etc/overlayroot.conf file ...
nopcorn's user avatar
  • 9,379
1 vote
0 answers
46 views

Selective rw access on read-only mounted partition

I have read-only root file system, protected with dm-verity and clean read-write user data storage. Nevertheless, I need to make a tiny set of files on rootfs which require persistent storage ...
Alex Hoppus's user avatar
1 vote
2 answers
129 views

Two files with different contents in the linux overlay file system have the same inode

I'm learning about the linux overlay file system and I'm having a problem that's beyond my knowledge. Can anyone explain the technical rationale behind this? mkdir ./{merged,work,upper,lower} echo &...
user25075193's user avatar
0 votes
0 answers
68 views

How to update file changes in lowerdir to mergedir in overlayfs?

I create a overlayfs by this: sudo mount -t overlay overlay -olowerdir=lower1:lower2,upperdir=upper,workdir=worker merge Can I just copy the files to the upper directory or delete the files in it? ...
litao w's user avatar
1 vote
0 answers
261 views

OverlayFS for User writing changes to root-owned directory

I am trying to give all Users on a system their own writable copy of a root-owned directory, and OverlayFS sounds like the tool for the job, but I am finding it not as straightforward as it sounded at ...
palswim's user avatar
  • 5,657
1 vote
0 answers
64 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
89 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
3 votes
0 answers
432 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
95 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
101 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
  • 131

15 30 50 per page
1
2 3 4 5
9