Skip to main content

Questions tagged [overlayfs]

The tag has no usage guidance.

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

OverlayFS CVE-2021-3493 Patch

I am unable to patch OverlayFS vulnerability (CVE-2021-3493). They said in github that it is patched in 5.11 kernel however i have installed multiple kernels (5.11,5.15,6.2 etc) and also compiled from ...
Arif Arshad's user avatar
0 votes
0 answers
121 views

How to implement overlayfs in RAM

I have Ubuntu installed on an SSD and would like to use it as a customized live USB, allowing me to test system changes without risking corruption. I've read that Ubuntu uses overlayfs for this ...
sudoer's user avatar
  • 100
0 votes
1 answer
95 views

Installing, maintaining and updating multiple Ubuntu installations

I have several computers in my network which (should) all run an identical version of Ubuntu. I have a number of applications, some of which run on only one machine, others of which run on more than ...
Stephen Winnall's user avatar
1 vote
0 answers
126 views

ip-10-100-28-20 login: [ 17.201999] overlayfs: missing 'lowerdir'

Ubuntu 22.04 running on an AWS instance which is shutdown most evenings and restarted in the morning. Has been running without issue for @6 months Failed to start this morning with the error as shown: ...
999frogs's user avatar
1 vote
0 answers
303 views

mount overlay fs gives error device /cow does not exist

I am running kubuntu 20.04. Looking with mount, with /proc/mounts, and with df shows that the system had used this command: mount -t overlay /cow / -o lowerdir=/filesystem.squashfs,upperdir=/cow/upper,...
Anton Wessel's user avatar
1 vote
1 answer
663 views

persistence: how to modify location of upper and work directories?

I have release 20.04 LTS. When I boot liveUSB with persistence option, on USB two folders are created (as I understand during first time boot): work, upper. I want to rename them / assign different ...
Martian2020's user avatar
1 vote
0 answers
2k views

Enabling OverlayFS on Ubuntu 20.04 makes GNU GRUB selection pop up at boot

I followed this great tutorial on how to enable overlayfs, basically just involves setting the file: /etc/overlayroot.conf to overlayroot_cfgdisk="disabled" overlayroot="tmpfs:swap=1,...
run_the_race's user avatar
1 vote
0 answers
152 views

Netboot a machine, automatically rsync internal HDD to network master and continue booting from internal HDD

I have a server which stores the master image for a set of client computers. As of now the clients netboot from the server and use an overlayfs, so any changes do not affect the master image. Changes ...
mbeyss's user avatar
  • 978
1 vote
0 answers
188 views

Install Ubuntu over pxe with an usb-C network adaptator

I want to install Ubuntu over pxe. With my Thinkpad it works fine. But my Dell doesn't have an Rj45 connector, so I use an usb-C network adaptor. In the startup process, initramfs don't get an IP ...
idontknow's user avatar
2 votes
0 answers
531 views

unshare then overlay mount fails in WSL

I Cannot overlay mount after creating an mount namespace with unshare $ unshare -rm # mount -t overlay overlay -o lowerdir=/bin,upperdir=/overlay/upper/bin,workdir=/overlay/work/bin/ /overlay/merged/...
Badger's user avatar
  • 21
2 votes
0 answers
557 views

How can I change the timezone on a read only operating system protected by overlayroot?

I have an Ubuntu 16.04 installation mounted using overlayroot as a read only partition. I also have a read write partition on the same drive. I need to be able to change the timezone setting of the PC ...
Mike Young's user avatar
5 votes
2 answers
4k views

Overlayfs to an existing directory

I have looked at How do I use OverlayFS? but it doesn't answer my question. I need to install some third party applications and they require /opt to be writable but the device I am running on has /...
zenDev120's user avatar
0 votes
3 answers
2k views

Unable to launch evince

When launching evince, I get this error: EvinceDocument-WARNING **: 10:14:16.337: Error opening directory “/usr/lib/x86_64-linux-gnu/evince/4/backends”: Permission denied I have already put evince ...
Walter's user avatar
  • 261
1 vote
0 answers
90 views

Including full paths with overlayfs or unionfs

I have the following directories: /some/path/dir1/subdir1/* /some/path/dir1/subdir2/* /some/path/dir1/subdir3/* /some/path/dir2/subdir1/* /some/path/dir2/subdir2/* /some/path/dir2/subdir3/* I want ...
Jared Brandt's user avatar
1 vote
1 answer
3k views

Logging and overlayfs on an existing Ubuntu install

I have an Ubuntu system which will mostly be used as a headless appliance, and needs to recover from abrupt power loss gracefully and start operating normally. I understand overlayfs is the way to go,...
Adam Davis's user avatar
0 votes
1 answer
716 views

Does Kernel HWE 4.18.0-13 support overlay nfs_export=on?

I have a problem nfs exporting an overlay of btrfs and ext4. The overlay works, but even though it is mounted with nfs_export=on I get the error message: exportfs: /data/merged does not support NFS ...
wuppi's user avatar
  • 219
3 votes
2 answers
1k views

Where is the upper layer of the live cd image overlayfs root filesystem stored?

When I run the live image (Ubuntu 18.04), it shows the root filesystem being an overlay with the squashfs image (/cdrom/casper/filesystem.squashfs, containing the main data) as lower layer, and /cow/...
JanKanis's user avatar
  • 673
1 vote
0 answers
662 views

Booting 18.04 with overlay fillesystem

I have an arm based embedded target with emmc and sd card. The 18.04 rootfs is on /dev/mmcblk0p2. Kernel version is 4.14 and overlay filesystem is enabled. Kernel and device tree are on /dev/...
Kumar's user avatar
  • 11
0 votes
1 answer
7k views

overlayfs mounted - but writing fails as "read-only file system"

I try a simple overlay example by mounting: sudo mount -t overlay -o lowerdir=/tmp/lower,upperdir=/tmp/upper/upper, workdir=/tmp/upper/workdir none /tmp/overlay (I run the full script from ...
ransh's user avatar
  • 313
1 vote
1 answer
10k views

How to make rootfs read-only?

I try to make my rootfs read-only. I thought that I better use overlay filesystem for this purpose (I don't have other alternatives now). Yet, after many trials and changing fstab, I can't manage to ...
ransh's user avatar
  • 313
1 vote
2 answers
1k views

LXC & OverlayFS

Goal - To configure/install a webapp on Host & make sure its accessible through an lxc container. Why - To isolate the host yet provide access to the web app and ssh access to our clients. ...
nraz's user avatar
  • 13
0 votes
0 answers
124 views

OverlayFS - Understanding and writing files

I'm working on getting a reliable image for a kiosk style application. Currently one of our big issues is boot stability. Since there's a high likelihood of our computers being hard-reset or losing ...
Mike Jenkins's user avatar
0 votes
1 answer
135 views

Boot from a hardware-protected USB pen drive

I installed Ubuntu Gnome 17.04 with overlayroot on a USB pen drive and set in /etc/overlayroot.conf: overlayroot="tmpfs" to use tmpfs as overlay filesystem. That works very well. However, I want to ...
user3734670's user avatar
1 vote
0 answers
945 views

Did Ubuntu switch from overlayfs to aufs between 16.04.1 and 16.04.2?

In Ubuntu 16.04.1, booting a live USB and typing mount reveals that / is mounted as an OverlayFS with a squashfs filesystem as the lower directory and a ramdisk as the upper directory. However, ...
Hitechcomputergeek's user avatar
3 votes
0 answers
705 views

Is there an overlay file system doing a copy-up on read?

What I‘m looking for is a mixture of an overlaying file system like overlayfs or aufs that does a copy-up on read access. Or, from the other side, a service like unison that sync only files that have ...
undko's user avatar
  • 131
1 vote
0 answers
792 views

How to set up (L)ubuntu to use read only-fs on raspberry?

I want to set up an Lubuntu-Kiosk read-only. So I want everything that user does, written in the RAM only. When the Raspberry is restarted, everything is deleted. I have tried using the package ...
Tr33Bug's user avatar
  • 11
0 votes
0 answers
721 views

How do I make whole system permanently read-only on Linux so even root can't have access?

After installing all the required drivers, I want my system to be in read-only mode. Even root can't change anything on the system. Usecases could, any virus should not affect the system or system ...
Ashish Sultania's user avatar
0 votes
2 answers
1k views

Sandbox overlay for ubuntu

I want some functionality like Sandboxie on Windows. That is, I want to run a program in a sandbox. The program doesn't detect the sandbox, and can read files from outside the sandbox usually. But ...
Oriol's user avatar
  • 141
1 vote
0 answers
565 views

OverlayFS - Multiple lower directories and sub directories

I am trying to mount a set of lower directories together imagine like /mount/ssd_1, /mount/ssd_2 etc.. Each of the drives has a set of folders like ff, aa, bb. When I mount the directories like mount ...
Vinay Anantharaman's user avatar
9 votes
1 answer
16k views

How do I add an overlayfs to /etc/fstab?

On Ubuntu v14.04, I have a drive mounted at /mnt/log-overlay that I would like to mount over the top of /var/log. The following mount command successfully creates that overlay, and works fine: mount ...
Graham Leggett's user avatar
0 votes
1 answer
2k views

Overlayfs working dir

on an Ubuntu (16.04 LTS) working as Webserver I have installed overlayfs (I did already some months ago on another machine). On both machine I have: overlayroot="tmpfs:swap=1,recurse=0" But on the ...
Stephan's user avatar
3 votes
2 answers
449 views

How do you make my root system behave like a live system?

One of my friends doesn't have an hdd , so I will install linux distro on a usb stick. It will be a full install just like installing to hdd but it will install on a flash stick instead of hdd. The ...
Ahmed Alamassi's user avatar
2 votes
1 answer
2k views

GRUB defaulting to 30 second timeout

In my GRUB configuration, I have the following setting: GRUB_TIMEOUT=3 In general, it works fine. However, I'm using overlayroot, which creates a protected file system (specifically, it uses ...
Eric's user avatar
  • 81
1 vote
1 answer
5k views

OverlayFS - Multiple Lower Directories

One should be able to combine multiple lower directories in an OverlayFS mount by using a colon to separate them according to this document. However this fails for me. For example if I setup with: ...
Programster's user avatar
  • 5,911
16 votes
1 answer
45k views

Example OverlayFS Usage [duplicate]

I'm running Ubuntu 14.04 with the 3.19 kernel which should have OpenFS supported (since kernel 3.18). I've been reading about OverlayFS but am confused as to how to actually implement using it. It ...
Programster's user avatar
  • 5,911
1 vote
3 answers
4k views

How can I mount a lowerdir into a specific subdirectory with overlayfs?

I want to mount the following directories using overlayfs: (lowerdir) /chroot in /merged (lowerdir) /home in /merged/home (upperdir) /tmpfs in /merged ...so that the resulting merged directory is ...
alkisg's user avatar
  • 590
3 votes
1 answer
9k views

Enabling OverlayFS on ubuntu 14.04

I understand that to enable overlay file system we nedd to make changes in the overlayroot.conf file and reboot the system. But is it possible without rebooting my system
hitesh's user avatar
  • 43
2 votes
2 answers
6k views

The best way to create a root filesystem, split between read only and writable

My aim is to create a system where the main parts of the root filesystem are stored on a read-only SD card, with writeable parts located on an SSD set to rw. This is to be done with a view to keeping ...
Arronical's user avatar
  • 20k
2 votes
0 answers
783 views

Confusion about overlay filesystem in ubuntu

Suppose some commands below: mkdir -p /tmp/rootfs mkdir -p /tmp/rootfs1 mkdir /mnt mount -n -t overlayfs -o rw,upperdir=/tmp/rootfs,lowerdir=/tmp/rootfs1 none /mnt As a result, I can see ...
user2886717's user avatar
0 votes
2 answers
571 views

Make some files be persistent between system formats?

I have an Ubuntu laptop I use as a plex server, seedbox, DNS cache and ad filter for my home network. Since it's the only computer in the house that doesn't get shutdown, I have a tendency to load ...
YodaDaCoda's user avatar
  • 1,585
69 votes
5 answers
162k views

How do I use OverlayFS?

This answer and email message indicate that something called "OverlayFS" is available in Ubuntu 11.10 and will forcefully replace aufs in Ubuntu 12.04. How do I use it? Where is its documentation?
ændrük's user avatar
  • 77.1k