LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2008, 11:04 PM   #1
disciplepup
Member
 
Registered: Jun 2007
Location: Auckland, NZ
Distribution: Puppy & Grafpup
Posts: 54

Rep: Reputation: 17
Unhappy Can't get rid of "Stale NFS file handle"


I've got something showing up in my /mnt directory that I can't figure out how to get rid of. If I try to delete it, I get, "ERROR: Stale NFS file handle"
I've tried googling it, but the only solution I can find is "remount and then unmount your NFS server". The trouble is that I don't have any NFS servers - it was a mountpoint for a squashfs file. Trying to remount the squashfile just gives the same error message. My best guess for how it was created is that maybe the file was deleted while mounted.
Surely there is a way I can get rid of it? It stuffs up my system by e.g. preventing find from working.

Thanks.


BTW I'm running Puppy Linux 4.1.1, although I suspect that is irrelevant
 
Old 11-20-2008, 08:21 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,770
Blog Entries: 4

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
I haven't used Squashfs but nothing I saw on their page made me think it would use NFS for any reason.

The fact you're seeing this in /mnt but haven't directly mounted anything there as NFS suggests its part of your automounter configuration. Have a look at the files in /etc/auto* and see if you have any special mounts configured there.

Have you tried rebooting by the way? The stale nfs occurs usually because the host that exported the filesystem is no longer accessible (often because that host got rebooted). Rebooting your local system would remove the mount and if the other host isn't accessible even if its in automounter setup you should no longer have stale condition since it simply would fail to mount it.
 
Old 11-20-2008, 11:46 PM   #3
disciplepup
Member
 
Registered: Jun 2007
Location: Auckland, NZ
Distribution: Puppy & Grafpup
Posts: 54

Original Poster
Rep: Reputation: 17
It's mounted with a script that does `mount -o loop -t squashfs /path/to/file /mnt/mntpoint` - I don't have any automounter.
Yes, I have rebooted, but as I said, there are no NFS hosts, so something weirder must have happened.

BTW normally even if I delete or replace a file that is mounted I don't get this problem - I just need to run scandisk to see the new free space
 
Old 12-07-2008, 01:31 PM   #4
penguin123
LQ Newbie
 
Registered: Sep 2003
Location: Ottawa
Distribution: Debian 4.0
Posts: 13

Rep: Reputation: 1
Stale NFS file handle (but i'm not using nfs)

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

Last edited by penguin123; 12-07-2008 at 04:35 PM.
 
Old 12-07-2008, 07:44 PM   #5
penguin123
LQ Newbie
 
Registered: Sep 2003
Location: Ottawa
Distribution: Debian 4.0
Posts: 13

Rep: Reputation: 1
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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet Another NFS Stale File Handle Question blanks Linux - Server 6 09-21-2008 09:14 PM
stale nfs file handle on rh3u6. laihu01 Red Hat 1 05-09-2007 01:57 PM
stale NFS file handle error hardian_97 Linux - Networking 0 10-02-2005 10:09 PM
NFS stale file handle master Linux - Software 7 06-14-2005 09:49 AM
Stale NFS file handle toneys Linux - Networking 1 10-24-2004 02:36 PM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration