fstab vs cli/script: cli works, fstab doesn't #1558
-
|
Hi folks, I'm not raising this as a formal issue since I'm not done testing yet. But I am looking for ideas. I've only played around with mergerfs in the past but now I'm seriously going to be using on my daily driver system. And I've run into a strange issue. Specifically, I can run mergerfs from the cli and in a bash script. But not in fstab. I'm using the static binaries version 2.40.2 (since I multiboot with a bunch of distros) it seems the easiest way for me to avoid "library issues" between different them (OpenMandriva, Mint (ubuntu), LMDE, MX, Devuan, and Manjaro). All use different kernels (>6.6) and DEs. On OpenManjaro (latest stable Rock v6) when I use fstab I get dumped to a terminal (rather than kde); where I comment out the mergerfs line and kde starts just fine; and on Mint (ubuntu ver 21 w/6.8 kernel) it just boots up into cinnamon. My quick scans of dmesg and the journal didn't show anything I could work with. Also I've never been able to get globbing to work. Maybe related, maybe not. Since not all of them use systemd I haven't checked that approach (though I'll eventually do so). While I try and figure this out I'm limiting my options to OpenMandriva and Mint (booting back and forth). 4 mechanical drives merging into 1 pool. The drives use luks (I thought about them not being loaded already) but when I tried this with unencrypted SSDs I got the same results. Here's the section from my fstab:
And here's the script (no laughing, I'll pretty it up later - besides it works) ` FullScriptName=$0 Mountpoint="/mnt/hdd" BranchA="/mnt/mech/A:" Pool=$BranchA$BranchB$BranchC$BranchD #This option set requires kernel > 6.6 #-------------------------------------------------------------- #-------------------------------------------------------------- echo Any ideas? Something stupid like a typo I can no longer see? Thank in advance |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
That's commandline usage. fstab would be You can find examples in the docs. https://trapexit.github.io/mergerfs/latest/quickstart/ Need to ensure your mount tool understand how to call out to mounting tools like mount.mergerfs. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for getting back so quick. That might very well explain what the fstab is doing. I'll test it out asap and report back on that. So much for my copypasta skills... |
Beta Was this translation helpful? Give feedback.
-
|
Welp, I can definitely report that my fstab didn't like it. Tried it with and without globbing. :( |
Beta Was this translation helpful? Give feedback.
-
|
mergerfs-2.41.0-rc3-10-g935392c-static-linux_amd64.tar.gz Try this |
Beta Was this translation helpful? Give feedback.
As I mentioned previously the reason it wasn't working is that the apps mount.mergerfs and mergerfs-fusermount were broken. That's why it wasn't working from fstab. Nothing to do with anything else. The way mounting works is different between fstab and CLI tool.