I'm trying to mount a unionfs
file system in fstab (as one of the steps in this guide), with the following line:
unionfs /usr unionfs nodev,noatime,dirs=/.filesystems/usr/overlay=ro:/usr=rw 0 0
I've installed the package unionfs-fuse
and added unionfs
to /etc/modules
, but when trying to mount -a
I still get an error saying
mount: unknown file system type: unionfs
What am I doing wrong here?
I've solved (or rather worked around) this, by not using
unionfs
and instead usingaufs
- another union file system.Install the AUFS package and its kernel module from linux-image-extra-virtual:
The corresponding row in my
fstab
now looks like this:The
squashfs
is mounted at/.filesystems/usr/ro
in the previous line, making this working as a substitute for the troubling steps in the guide I referred to in the OP.Create underlying squashfs on loop device through the terminal:
Create aufs virtual filesystem that allows you to write on it:
Also consider adjusting
/etc/sysctl.conf
(!) if shutting down your PC takes longer than it should. Decrease the swap - swap turned off below