0

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

Then creating the ramdisk

mount -t tmpfs none /data/rw
mkdir /data/rw/upper
mkdir /data/rw/work

I mounted the usb device

mount -t vfat /dev/sdb1 /data/lower

To finally use overlay :

mount -t overlay -o lowerdir=/data/lower,upperdir=/data/rw/upper,workdi=/data/rw/work none /data/root

Which give me the folowwing error

wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error

overlayfs: filesystem on '/data/lower' not supported

But according to the documentation

The lower filesystem can be any filesystem supported by Linux and does not need to be writable

Is there a link with automount and if so how I can fix it ?

  • I suspect that the documentation is lying and doesn't support any filesystem as written. Of course replacing vfat with ext4 works. Couldn't find something to confirm this (looking at sources would probably, but too much effort) – A.B Apr 30 at 13:56
  • Ok I will do with that. Thanks – Ben W Apr 30 at 15:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.