Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to combine 2 filesystems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SOFTSKY
n00b
n00b


Joined: 12 Feb 2008
Posts: 5

PostPosted: Tue Feb 12, 2008 2:58 pm    Post subject: How to combine 2 filesystems Reply with quote

Hi guys.

Well, I'm playing with diskless stations and would ask this question. Is that possible to combine (or merge) 2 filesystems? Let say I have:

hda1:
Code:
/
-/dir0
-/dir1
-/dir2
-/dir3


hdb1:
Code:
/
-/dir1
-/dir2
-/dir3
-/dir4


As you see these 2 drives has some directories (dir1, dir2, dir3) which has same names. Only names, not the content. So, is that possible to mount them somehow to SAME directory, so I just have
Code:
/
-/dir0
-/dir1
-/dir2
-/dir3
-/dir4

but the content of dir1, dir2 and dir3 is combined using content of these directories on both hda1 and hdb1 partitions? There could be a problem, if let say hda1:/dir1 and hdb1:/dir1 has 2 files with same name, content one of them should be used (lets say that depends on hda1 and hdb1 mount order).
I'm wondered does LVM2 could do this sort of things?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Tue Feb 12, 2008 3:11 pm    Post subject: Reply with quote

You might want to take a look at unionfs :)
Back to top
View user's profile Send private message
SOFTSKY
n00b
n00b


Joined: 12 Feb 2008
Posts: 5

PostPosted: Tue Feb 12, 2008 4:21 pm    Post subject: Reply with quote

i92guboj wrote:
You might want to take a look at unionfs :)


Yeah, that was helpful. Playing with it at the moment. Seems that's exactly what I needed. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum