Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I have mounted 3 NFS partitions on my client. Now I want to have the files of these 3 partitions listed in one directory on my client to ease ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2003
    Posts
    2

    How to link content of multiple directories into 1 dir?


    Hi,

    I have mounted 3 NFS partitions on my client. Now I want to have the files of these 3 partitions listed in one directory on my client to ease browsing. How could I do that? Maybe with linking or is it possible to mount the volumes into the same directory somehow?

    Please give me some advice,
    Thank you.

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    The easiest way to do that would be to use symbolic links. AFAIK you can't mount multiple devices in the same directory.

    Code:
    ln -s /mounted_dir /common_mount_point/mount1
    Though you would have to have a different dir for each, they would still be all in the same dir.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Just Joined!
    Join Date
    Dec 2003
    Posts
    2

    linking

    Thanks for your request.

    But with this command I am just able to create 3 links to 3 directories. But I need some type of 1 link to three directories or any other solution.

    Do you know how to do that?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Like I said, AFAIK there's no way to do that. But if anyone else knows otherwise, please inform us.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  6. #5
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    how about creating a new directory, placing your mounts inside that, then the client accesses the new directory... eg

    /newdir/mount1/
    /newdir/mount2/
    /newdir/mount3/

    but the client mounts /newdir/, then sees the 3 mounted directories.

    Thats not particularly clear, but i cannot think of another way to explain it

  7. #6
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    I thought that was what I said...but maybe neither of us make sense.

    What he's wanting to, though, is be like:

    Code:
    mkdir /mnt/stuff
    ln -s /my_stuff /mnt/stuff
    ln -s /your_stuff /mnt/stuff
    ln -s /his_stuff /mnt/stuff
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •