Find the answer to your Linux question:
Results 1 to 2 of 2
Hi. I am looking for a simple way to make two directories appear as one. Googling, I found that there are several programs that can do this, but non worked ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323

    Question [SOLVED] How to make two directories appear as one?


    Hi.

    I am looking for a simple way to make two directories appear as one. Googling, I found that there are several programs that can do this, but non worked for me. I got the result I want nearly with mhddfs, however, I can only access the the unified directory as root, and not as a normal user.

    Code:
    daan@schmauck:~$ ls dir1
    file1  file2
    daan@schmauck:~$ ls dir2
    file2  file3
    daan@schmauck:~$ mhddfs dir1,dir2 dir0
    mhddfs: directory '/home/daan/dir1' added to list
    mhddfs: directory '/home/daan/dir2' added to list
    mhddfs: mount to: /home/daan/dir0
    mhddfs: move size limit 4294967296 bytes
    fuse: failed to open /dev/fuse: Permission denied
    daan@schmauck:~$ sudo mhddfs dir1,dir2 dir0
    mhddfs: directory '/home/daan/dir1' added to list
    mhddfs: directory '/home/daan/dir2' added to list
    mhddfs: mount to: /home/daan/dir0
    mhddfs: move size limit 4294967296 bytes
    daan@schmauck:~$ ls dir0
    ls: cannot access dir0: Permission denied
    daan@schmauck:~$ sudo ls dir0
    file1  file2  file3
    daan@schmauck:~$ ls -l -d dir0
    ls: cannot access dir0: Permission denied
    daan@schmauck:~$ sudo ls -l -d dir0
    drwxr-xr-x 2 daan daan 4096 2008-12-07 16:21 dir0
    How can acces the directory as a normal user?

    Are there any other tools than mhddfs that are easier to use?

    Thanks!

    Daan
    OS's I use: Debian testing, Debian stable, Ubuntu, OpenSuse 12.1, Windows 7, Windows Vista, Windows XP

  2. #2
    Linux User Daan's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    323
    I solved it!

    I added myself to the group "fuse". After a reboot:

    Code:
    daan@schmauck:~$ ls dir*
    dir0:
    
    dir1:
    file1  file2
    
    dir2:
    file2  file3
    daan@schmauck:~$ mhddfs dir1,dir2 dir0
    mhddfs: directory '/home/daan/dir1' added to list
    mhddfs: directory '/home/daan/dir2' added to list
    mhddfs: mount to: /home/daan/dir0
    mhddfs: move size limit 4294967296 bytes
    daan@schmauck:~$ ls dir0
    file1  file2  file3
    OS's I use: Debian testing, Debian stable, Ubuntu, OpenSuse 12.1, Windows 7, Windows Vista, Windows XP

Posting Permissions

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