You are not logged in.

#1 2013-08-04 08:12:02

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

[solved] Mounting unionfs in fstab

This is really annoying.

This works on the command line:

mount.fuse unionfs#/dir/A=RW:/dir/B=RO /dir/C -o cow

So does this:

mount -t unionfs -o cow -o dirs=/dir/A=RW:/dir/B=RO unionfs /dir/C

I have tried this sort of thing in fstab (which was suggested here:

unionfs#/dir/A=RW:/dir/B=RO /dir/C fuse options 0 0

But with no success.

.:edit:.

I had a look at sshfs on the wiki, which is another implementation of fuse and managed to work this out:

/dir/A=rw:/dir/B=ro /dir/C fuse.unionfs options   0       0

Obvious really.

Offline

#2 2022-11-07 03:35:30

Zedn00
Banned
Registered: 2022-11-07
Posts: 5

Re: [solved] Mounting unionfs in fstab

writing in 2022: I had trouble even with this, but finally got this working in the /etc/fstab

/dir/A=rw:/dir/B=ro /dir/C fuse.unionfs defaults,cow,uid=666,gid=666,allow_other 0 0

pick the id's to suit your needs. They are optional, and will force all files to have those id's. The final gotcha for me was the allow_other - without that, other users had absolutely no access when mounted by root using the mount command.

As always, YMMV.

Note also that I am on SuSE, but since this site was an early Google result, and helped me a lot, I thought it was only fair to add my succesful outcome to the knowledge here. I am only assuming it will work on Arch Linux, but there's a high chance given the similarity of the options and understanding that almost 9 years of development has happened to unionfs between postings.

Cheers

PS for the benefit of Arch users, it would be great if the first person to try would confirm or correct my suggestion specifically for Arch.

Offline

#3 2022-11-07 04:05:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,171

Re: [solved] Mounting unionfs in fstab

Please don't necrobump threads. This one is 9 years old.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2022-11-07 05:18:16

Zedn00
Banned
Registered: 2022-11-07
Posts: 5

Re: [solved] Mounting unionfs in fstab

Wow, like clockwork. How dare I contribute to knowledge. I am suitable chastised.

If you don't want old threads being resurrected, then you need to reliably pull them down when they are grossly out of date.

Offline

#5 2022-11-07 05:20:57

Zedn00
Banned
Registered: 2022-11-07
Posts: 5

Re: [solved] Mounting unionfs in fstab

no, more to the point, f*** you and all the basement-dwelling neckbeard l*****s like you. You don't deserve help from normal people. Get back on Twitter where you belong, and express your outrage there.

Offline

#6 2022-11-07 05:22:46

Zedn00
Banned
Registered: 2022-11-07
Posts: 5

Re: [solved] Mounting unionfs in fstab

I can't delete my contribution? I'm sure you'll take care of that... since you're the matter of internet etiquette, i know you've got this.

Offline

#7 2022-11-07 05:24:22

Zedn00
Banned
Registered: 2022-11-07
Posts: 5

Re: [solved] Mounting unionfs in fstab

Can't even delete my account? desperate for regular users, huh?

Offline

#8 2022-11-07 06:28:03

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: [solved] Mounting unionfs in fstab

Zedn00 wrote:

Can't even delete my account? desperate for regular users, huh?

Let me help you. Banned. Bye.

Offline

#9 2022-11-07 07:08:42

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [solved] Mounting unionfs in fstab

hmm What's wrong with people around the globe?? roll


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

Board footer

Powered by FluxBB