LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-21-2010, 02:03 PM   #1
nodopro
Member
 
Registered: Oct 2008
Posts: 48

Rep: Reputation: 16
Stale NFS file handle


How do I delete a file if it happens like this.

-????????? ? ? ? ? ? temp.cgi

Thanks,
nodopro
 
Old 01-21-2010, 02:57 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
find . -name "*temp.cgi*" -exec rm '{}' \;

?

Also, what does your title have to do with your question?
 
Old 01-21-2010, 04:13 PM   #3
nodopro
Member
 
Registered: Oct 2008
Posts: 48

Original Poster
Rep: Reputation: 16
How to delete Stale NFS file handle file?

Quote:
Originally Posted by AlucardZero View Post
find . -name "*temp.cgi*" -exec rm '{}' \;

?

Also, what does your title have to do with your question?
I have tried that but cannot remove the file. The error message below.

[root@localhost]# find . -name "*temp.cgi*" -exec rm '{}' \;
rm: cannot remove `./temp.cgi': Stale NFS file handle


I am sorry about the title. I don't know what to name it so I just put the error message. Should it be "How to delete Stale NFS file handle file"?
 
Old 01-21-2010, 04:42 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
No, your body should have related to your topic. You didn't previously tell us that you got "Stale NFS file handle" when trying to remove the file, so it seemed to be a non sequitur.

Anyway, the easiest way is probably to reboot.
 
Old 01-22-2010, 11:07 AM   #5
nodopro
Member
 
Registered: Oct 2008
Posts: 48

Original Poster
Rep: Reputation: 16
reboot the machine and the problem is still there.

Code:
[root@localhost ~]# ls -l temp.cgi
ls: cannot access temp.cgi: Stale NFS file handle

[root@localhost ~]# rm -rf temp.cgi
rm: cannot remove `temp.cgi': Stale NFS file handle
 
Old 01-22-2010, 11:17 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok, please post the output of
df -h
mount
ls -ld /tmp
grep tmp /etc/fstab

and any recent errors in /var/log/syslog or /var/log/messages. Please also tell us what Linux version you are running.
 
  


Reply



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
ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs schneidz Linux - General 4 10-02-2009 02:39 PM
Yet Another NFS Stale File Handle Question blanks Linux - Server 6 09-21-2008 09:14 PM
Stale NFS File Handle problem mpnorth Linux - Newbie 10 08-12-2008 10:57 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 PM.

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
Open Source Consulting | Domain Registration