login
Header Space

 
 

Merging Of Two File Systems

August 23, 2008 - 4:00am
Submitted by vineetagarwal on August 23, 2008 - 4:00am.
Linux

can we merge two separate filesystems,
stored for example on /dev/hda1 and /dev/hda2, and we want to combine
the data in the two filesystems into a single filesystem /dev/hda3, or
combining the contents of /dev/hda2 so that it is also in /dev/hda1.which could be highly efficient for administrator managing several file systems
So is there any mechanism exist to do so either online or offline.If not can any one suggest something.

thank you

combine

August 23, 2008 - 5:07pm

how do you want it combined? mount, unionfs, symlinks, raid, cow snapshot? does it have to be distinct partitions or can you live with single filesystem features?

Merge

August 24, 2008 - 10:46am

What I wanted was to somehow merge the two File systems.I was thinking of manipulating the information of superblock and then merging the data blocks of inode for ext2 but i not too sure about my design.
secondly i thought to incorporate LVM but still stuck .
Plz help !
thank you

there is no such feature in any filesystem I know

August 24, 2008 - 2:15pm
sileNT (not verified)

How about resolving conflicts, i.e., files with the same name, different content? What about ownership conflicts? Not to say what happens when one filesystem becomes corrupted for one or another reason...

The best you can do is to just copy files from one filesystem to another; or, symlink files from one filesystem to another, depending on what you need.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary