LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2013, 04:08 PM   #1
ME077
LQ Newbie
 
Registered: Jul 2013
Location: Tulsa Oklahoma
Distribution: Slackware, BSD,
Posts: 1

Rep: Reputation: Disabled
Help.!! I Have a Stale NFS handle Problem.!! ;-{


Dear Reader,

I Have a Stale NFS handle Problem.!!
I never ran across a problem like this before.

My name is Michael E. and I Have been using Linux Slackware Since about 1995
I run Linux on all my Computers even My Laptop. I am using Slackware 12.2 Now.
Well Anyway, A while back I was a way from home and I wrote a letter to my wife on my linux laptop and sent it to her E-Mail. But I kept the Original Letter on my laptop I wrote it using Kword in KDE and Stored it as R-Molay.odt later I clean all my date file off my laptop and put them on a USB stick And forgot all about them. A few Days later I needed to save some stuff to my USB Stick but did not have the room So I Started removing old Files and then I get an Error that says: Can not remove R-Molay.odt Stale file handle So I do ls -al on the directory and get this

.
..
-????????? ? ? ? ? ?R-Molat.odt

I tried everything I could think of to get rid of it.. Dose anyone have any Ideas.?

Oh yes the Strange thing is that the file has No Data in it anymore. It is a Zero File. And it is on a USB Stick with a Linux ext2 Partition. I was Not part of a Network or an NFS system that I know of. It was just a letter I type in KDE using Kword on my Linux Laptop running Slackware 12.2 Dose any of this make since.? So How can a file that I created with data in it and saved to a linux partition on a USB Stick, windup with a Stale NFS handle and No Date in side of it.?? And the Big Question is How do I get rid of it off my USB Stick.!!

If anyone has any Ideas on how to get rid of a Stale NFS handle File,
Please let me know..

Thank you so much for your time.

Michael E. - Hard Core Power Linux User


<E077>
 
Old 07-31-2013, 04:54 PM   #2
mlslk31
Member
 
Registered: Mar 2013
Location: Florida, USA
Distribution: Slackware, FreeBSD
Posts: 210

Rep: Reputation: 76
It's just how the error message goes. It means that particular entry is no longer correct. It can mean a program read the directory entry for a file, but the file was deleted before the program could read the file itself. It can also mean that you deleted the file, but something went wrong updating the entry for it (removed the stick early, disconnect due to loose connection, power outage, etc.). It may or may not be the sign of a bad sector that hit at just the wrong place. It's up to you whether to run fsck to correct the problem. You may want to run forensic tools to find or recover that file before using fsck, maybe not. If you didn't want that file, tinker with e2fsck, maybe read the man page for e2fsck to see if you want to try the safer options like -n and -p first.

This a moment to ask, "Do you have a backup?" Because I don't know for sure what caused the first bad entry, I don't know what a full fsck run will do, either. It might correct that one entry and be done, it might send one full directory to /lost+found. Read the e2fsck man page first, and if you agree with my assesment of "-n", try `e2fsck -n drive_to_check` after that.
 
1 members found this post helpful.
Old 07-31-2013, 05:07 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Usually they will go away if you dismount the filesystem from the client, then remount on the client.

These files serve as a marker for files that had been open when deleted. The server needs them only briefly, but the client uses them with file handles. I have caused these by deleting a file on one client while another client was reading them.

Normally these pop into existence, and disappear with out anyone noticing.

As a worst case, you can use the "unlink" system call to remove it from the directory entry. Very likely there is no inode associated with it.

Last edited by jpollard; 07-31-2013 at 05:09 PM.
 
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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Stale NFS handle on embedded system that does not have NFS running CollieJim Linux - Embedded & Single-board computer 6 03-29-2012 08:50 AM
Stale NFS file handle nodopro Linux - Newbie 5 01-22-2010 12:17 PM
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 03:39 PM
Stale NFS File Handle problem mpnorth Linux - Newbie 10 08-12-2008 11:57 AM
Stale NFS file handle toneys Linux - Networking 1 10-24-2004 03:36 PM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration