I want to mount my RO Filesystem using overlayFS - in order to use two layers FS (Lowerdir and Upperdir).
I tried the following mounting command -
mount -t overlayfs -o lowerdir=/,upperdir=/overlay "overlayfs:/overlay" /mnt && root=/mnt
That mounted /mnt as overlayFS, but set it as RO.
I tried the following in order to mount it as RW (meaning the Upperdir is RW) -
mount -t overlayfs -o rw,lowerdir=/,upperdir=/overlay "overlayfs:/overlay" /mnt && root=/mnt
Still no good.
Some general information -
I would like to mount the R/W FS as UBIFS, my RO FS is SquashFS I'm working on openWRT Thanks everyone!
workdir=
has to be on the same fs asupperdir=
, but it shouldnt be the same directory. it needs to be an empty directory. – mikeserv Dec 29 '15 at 13:03mkdir -p /tmp/olay /tmp/sfs; mount -t tmpfs none /tmp/olay; mkdir /tmp/olay/up /tmp/olay/wrk; mount ./my.sfs /tmp/sfs; mount -t overlay overlay -olowerdir=/tmp/sfs,upperdir=/tmp/olay/up,workdir=/tmp/olay/workdir /tmp/olay
– mikeserv Dec 29 '15 at 13:23