You are not logged in.
Hi, I'm trying to use overlayfs to simplify managing some files in my system but I have ran into this error which seems to happen when the list of directories are too long.
+ sudo mount -t overlay overlay -o 'lowerdir=<long list of directories>,index=off,metacopy=off' target
mount: target: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.`sudo dmesg` had no error messages but I managed to find a forum discussion that might be related: https://www.linuxquestions.org/question … 175669053/
They haven't managed to find any solution it seems. Any other suggestions? Is there any settings I can change to increase the limit?
Last edited by funnypigrun (2024-06-17 09:56:47)
Offline
From the code referenced in https://www.linuxquestions.org/question … ost6088020 you're not gonna be able to increase anything here. At least not without compiling a custom kernel w/ altered page size.
to simplify managing some files in my system
What's the actual goal here? I see no upper directory, are you just trying to merge a bunch of directories into a single location?
You could stack those and first merge chunks into transient directories and then merge those in a second step?
Online
Oh, whoops. I accidentally deleted "upperdir=" from my example but it is there in my test code. I'm trying to make something like a mod manager which loads mod files via "lowerdir=" then save all changes while the game or program is running to the "upperdir=."
Offline
And the option string for that is actually > 4095 byte?
(You can use "wc" to count it)
You cannot just overlay a common parent like/home/funnypigrun/.local/share/game ?
Are you loking for https://man.archlinux.org/man/extra/fus … layfs.1.en (which is reported to have "bad" performance, ie. the general fuse FS problem)?
Online
Thanks, seth! I managed to mount everything at once when using fuse-overlayfs. I'll just go with fuse for now and see if the performance is good enough
Offline