LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs (https://www.linuxquestions.org/questions/linux-general-1/ls-cannot-access-etc-resolv-conf-stale-nfs-file-handle-but-im-not-using-nfs-697001/)

schneidz 01-13-2009 10:01 AM

ls: cannot access /etc/resolv.conf: stale nfs file handle - but i'm not using nfs
 
[fc-9-live-usb]
hi i get this error which means i cant visit websites.

i cant rm, cp, mv, vi, ... this file. how do i regain the ability to browse the internet ?

is there a way i can create a /etc/resolv.conf2 and have my system use that instead ?

thx,

Valery Reznic 01-14-2009 05:15 AM

Quote:

Originally Posted by schneidz (Post 3407130)
[fc-9-live-usb]
hi i get this error which means i cant visit websites.

i cant rm, cp, mv, vi, ... this file. how do i regain the ability to browse the internet ?

is there a way i can create a /etc/resolv.conf2 and have my system use that instead ?

thx,

Are you sure you don't use NFS ?
You can try reboot your box.

Or you can try to run 'ls /etc/resolv.conf' under strace and see what caused problem.

schneidz 01-14-2009 09:23 AM

i ended up re-installing the live-usb once again.

it seems as if the sqaushfs uses some type of nfs emulation...

jcsjcs 02-19-2009 05:53 AM

I had exactly the same problem on an eee-pc's ssd.

I tried fsck on boot but that failed. Went into the shell, remounted / read-only (difficult again) and did a manual fsck. Reboot and everything was good:

mount -no remount,ro /
fsck /


JCS.

htmlbase 10-02-2009 02:39 PM

Remounting /
 
I was able to use the above instructions after executing "shutdown now" to get to single user mode. Without it, the "/" was always busy. The disk had plenty of errors besides the resolv.conf problem. It works now!


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