ITEM: BO8738L

problem with unlink / removed link and files


ENV:    3.2.5
DESC:   Customer did an unlink command on her directory and it 
        removed her link and the directory and all her files. She 
        did an: unlink /usr/lpp/sas
        and now all my files are gone, what do I do?
ACT:    The unlink command removes the inode entry similar to the 
        rmdir command but does not remove the data. The files 
        still exist but cannot be found.
        steps:
      1. do: boot from boot media.
      2. do: getrootfs hdisk\# sh
      3. run fsck -y on /usr (/dev/hd2)
      4. reboot the system
      5. look in lost+found directory under /usr
      6. mkdir /usr/lpp/sas
      7. cd /usr/lost+found/dir_name_here
      8. mv * /usr/lpp/sas
                She removed the link and the files were still out there. 
        We did the above steps and it worked. And also put the 
        link back. I told her if you are trying to remove a 
        symbolic link, DO NOT use unlink, use rm.



Support Line: problem with unlink / removed link and files ITEM: BO8738L
Dated: October 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:20
Comments or suggestions? Contact us