You are not logged in.
Pages: 1
Topic closed
Hi
I have 3 directories, files1, files2 and files. I would like to 'mount --bind' files1 and files2 in files, so that when you enter files you see the contents of both files1 and files2. Is this possible and how do I do it
Thank you in advance
/ledet
Last edited by ledet (2008-01-08 15:14:54)
Offline
mount --bind allows access to one set of files from two different mount points. You want to access two sets of files from one mount point, so you need to use unionfs or aufs. Both are supported by the Arch kernel package.
Offline
Thanks! I'll take a look at aufs
Offline
Installed aufs and aufs-utils. Got it working with this command:
mount -t aufs -o dirs=/path/to/files1:/path/to/files2 none /path/to/files
To mount the dirs automatically, I added this line to fstab:
none /path/to/files aufs dirs=/path/to/files1:/path/to/files2 0 0
Offline
I think this is one of the best "asking for help" threads I've seen.
A question was asked, a starting-point was given, the potential solution researched by the questioner, and then the final solution posted by the OP so that anyone else looking for this answer will have it.
Awesome.
Offline
Not yet completed....no solved statement in title....
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Cerebral, not to mention the crystal clear title chosen, the 'thanks' post, and the minimality of post counts in that case (4).
lilsirecho, yes, so close to perfection... once one marks it solved, I'll make a snapshot of it!
Last edited by lloeki (2008-01-08 14:53:38)
To know recursion, you must first know recursion.
Offline
Is it okay now
Offline
w00t!!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
You gotta love it when a great plan comes together.
High Fives all around. No. We are not doing the group hug thing!
Guarantee does not cover shark bite, bear attack, or children under 5.
Offline
group lending of hands then?
I am hilariously insane. yup. you won't notice though.. I promise...I think.
Offline
A four year necrobump and an empty post?
Please don't do that
https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing
Offline
Pages: 1
Topic closed