Find the answer to your Linux question:
Results 1 to 3 of 3
Hello everyone. Today I looked for a way to hard link directories. I came to "mount --bind olddir newdir" to achieve what I wanted. Accidentally the "olddir" folder specified contained ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2

    Undo mount action


    Hello everyone.

    Today I looked for a way to hard link directories. I came to "mount --bind olddir newdir" to achieve what I wanted. Accidentally the "olddir" folder specified contained some imported PHP files. After command execution the folder was empty.

    What I'm looking for is recovering the files I've lost. I've used magicrescue to find deleted files, but it seems my files are not in deleted files.

    That is why I thought that they are not actually deleted, but
    "hidden" somehow, and maybe un-mounting will show my files again.

    Any help is highly appreciated!

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Welcome to the forums!

    It's impossible to hardlink a directory. You could softlink it, or mount the filesystem in two places.

    And what you did was remount your olddir at newdir. Are you sure your files aren't in newdir?
    Can't tell an OS by it's GUI

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    2
    Hello, Freston!

    And what you did was remount your olddir at newdir. Are you sure your files aren't in newdir?
    Yes, they do not exists in both directories. Now I'm sure that they are not in deleted files too, as after recovering of all deleted files I've found ones deleted months ago, but these files are not found.

    Any other suggestions?

Posting Permissions

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