LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Multiple Folders to a Single Path (https://www.linuxquestions.org/questions/linux-server-73/multiple-folders-to-a-single-path-798274/)

yermandu 03-27-2010 01:10 PM

Multiple Folders to a Single Path
 
The Problem:

We have too many audio Paths, for each user have one.
We would like to create a unique folder to Read in network.

For example:

PC1 -- /home/user/Music -------------|
PC2 -- /mnt/Music ----------------------|
PC3 -- /shared/Music (VFAT) ---------|
Server -- /pub/Audio -------------------|
Server ------------------------------------| ----- /pub/Music

The idea is Mapping all folders to the path /pub/Music in server, so all user can access all music online in the server.

Very Well. How we can do it?

And when pc1 and pc2 have the same subfolder, like Beatles, and in the subfolder have different folders ( PC1-Beatles/Revolver ) (PC2-Beatles/Habbey_Road) or The same folder (PC1-Beatles/The_Mistery_Magic_Tour) (PC3-Beatles/The_Mistery_Magic_Tour)... Is there a way to contemplate this issue?

:Z

paulsm4 03-27-2010 03:06 PM

Sounds like symbolic links (e.g. "ln -s") might be a reasonable solution.

"man ln" (or Google "Linux symbolic link ln") for more info.

'Hope that helps .. PSM

PS:
Physically consolidating everything (i.e. "cleaning up"), and/or creating multiple network shares ("aliasing") are two other approaches. "ln -s" is by far more efficient and less intrusive - I'd definitely consider starting there first...

eSelix 03-27-2010 05:17 PM

Well, I also need that feature, but I think there is no tool/driver for this yet. For most what you can do is creating on Server /pub/Music/PC1, /pub/Music/PC2, /pub/Music/PC3.

yermandu 03-29-2010 11:31 AM

Quote:

Originally Posted by eSelix (Post 3914801)
Well, I also need that feature, but I think there is no tool/driver for this yet. For most what you can do is creating on Server /pub/Music/PC1, /pub/Music/PC2, /pub/Music/PC3.

eSelix, this is a WorkAround. Well you would like something like this, i found the Problem is how to mount several folders to a virtual folder ... this will be Cool :)

If you know of something, let us know too.

eSelix 04-14-2010 04:18 PM

I was thinking about writing custom application, which do what we want, when found that somebody did it earlier :) The solution is unionfs, it can be implemented as kernel module (need kernel recompilation) or with fuse.


All times are GMT -5. The time now is 03:17 AM.