Wednesday, June 2, 2010

Stale NFS file handle

SkyHi @ Wednesday, June 02, 2010
Same problem here, check this out... I got this after a system crash on debian lenny; after which i've reinstalled the root partition but kept /home (which is on a different partition).

fsck.ext3 says that /home is clean...







igi:~$ ls -l

ls: cannot access bin: Stale NFS file handle

ls: cannot access PICTURES_nortel_tmp: Stale NFS file handle

total 78568

d????????? ? ? ? ? ? bin

d????????? ? ? ? ? ? PICTURES_nortel_tmp

drwxr-xr-x 2 penguin penguin 4096 2008-11-22 23:06 TESTATICA

-rw-r--r-- 1 penguin penguin 31395624 2008-12-03 16:25 test.avi

-rw-r--r-- 1 penguin penguin 14698436 2008-12-04 15:36 test_divx_mp3.avi

-rw-r----- 1 penguin penguin 4240419 2008-11-19 22:43 toolsdev.tar.bz2

-rw-r--r-- 1 penguin penguin 5366 2008-10-19 13:29 tourpart7.html

drwxr-xr-x 10 penguin penguin 12288 2008-12-04 23:25 UNIX_HELP






Notice the weired directories with: d?????????

These dirs give me the: "Stale NFS file handle" error



igi:~$ rm -rf PICTURES_nortel_tmp

rm: cannot remove `PICTURES_nortel_tmp': Stale NFS file handle






Can't remove them or "ls -l" them or anything else (neither as root or when booted from a live distro, etc...)



Any insight on solving this issue (other than salvaging whats left on the /home partition and then recreating a new partition and or the file system) would be appreciated


Solved it:



Even though the first time i did fsck.ext3 on the home partition.... it
said it was clean but then when i tried with "force"... it found a bunch
of "problems". after fsck finished (and i had to press "y" <yes>
a few hundred times... it got rid (deleted the weired directories with:
"Stale NFS file handle")



umount /dev/hde

fsck.ext -f /dev/hde

REFERENCES
http://www.linuxquestions.org/questions/linux-software-2/cant-get-rid-of-stale-nfs-file-handle-684475/