SUMMARY: hard link issue

From: R. Jesus Garcia (
Date: Fri Jun 23 2000 - 10:12:46 CDT

        I can't still figure out why the link performed by my user succeded.
In any case, we were able to recover the data by:

        1. Stopping automount and nfs.server
        2. Unmounting /data filesystem
        3. Unmounting /export/data
        4. Running fsck on /export/data
        5. Re-mounting and restarting services
        6. Taking a look at lost+found. (There the missing data was!)
        7. rmdir /data/users/iraf (it succeded this time)

        Most of the people suggested using the same (usual) tools to

        df -k . / df -kl -> To find out current device / local mounts
        ls -i -> To find out i-node numbers
        fsck -> The good old fsck did the trick!

        Thank you to Nasser Manesh who suggested the right solution, and to
Jarrett Carver, Mike Salehi, David Ledger, Marco Greene and Richard Muirden
for their suggestions and comments.


--- Original Question ---

        Hi, admins.

        Here's my problem. One of my users did the following as root in a
Solaris 7 (sparc) machine:

                        ln /iraf /data/users/iraf

        Where: /iraf -> /usr/local/iraf (symlink)
        And: /data/users/iraf is mounted from /export/data/iraf
                        /usr/local is a separate filesystem

        As long as I know, the above link should have never suceeded for
/iraf is in / and /data/users/iraf is in /export/data, thus different

        My user swears she did not receive any error message.

        When she moved to /data/users/iraf, the directory was empty. Before
the linking it was full of tons of precious data. What she wants (of
course) is to know if there is a way to recover the data. She's got a
backup but not as recent as she might have wanted.

        Here's some output:

        # cd /data/users/iraf
        # ls -l iraf
        drwxr-xr-x 3 user other 512 Jun 22 12:35 iraf/

        # cat iraf
        . .. iraf

        # ls -la iraf
        drwxr-xr-x 3 user other 512 Jun 22 12:35 ./
        drwxr-xr-x 8 root root 512 Jun 22 14:10 ../

        # rmdir iraf
        rmdir: directory "iraf": Directory not empty

        Any ideas on what's happening here and how to recover (if possible)?


------- End of forwarded message -------

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:10 CDT