Prev: raid on mixed ide/sata drives (/dev/hda /dev/sda) not assembled at boot with initramfs
Next: raid on mixed ide/sata drives (/dev/hda /dev/sda) not assembled at boot with initramfs
From: Michael Yang on 6 Feb 2010 15:40 When I list files under my $HOME, I found following two files that can not be accessed: ls: cannot access .xsession-errors: Stale NFS file handle ls: cannot access .Xauthority: Stale NFS file handle total 2384 -????????? ? ? ? ? ? .xsession-errors -????????? ? ? ? ? ? .Xauthority It looks like a remote access from NFS system from error message. But it is my $HOME, which is a ext2 system. This is the entry in my /etc/fstab /dev/sda8 /home ext2 defaults 0 2 This error is probably causing another problem of accessing my $HOME files from GTK-based application. When I "open -> file" from a gtk-based application to open a file under $HOME, I can not see any files of $HOME from the "open..file" dialog. Anyone can help me with this? Thanks very much. Michael.
From: Michael Yang on 7 Feb 2010 10:10 On Sat, Feb 6, 2010 at 3:35 PM, Michael Yang <michael.yxf(a)gmail.com> wrote: > When I list files under my $HOME, I found following two files that can not > be accessed: > > ls: cannot access .xsession-errors: Stale NFS file handle > ls: cannot access .Xauthority: Stale NFS file handle > total 2384 > -????????? ? ? ? ? ? .xsession-errors > -????????? ? ? ? ? ? .Xauthority > > It looks like a remote access from NFS system from error message. But it is > my $HOME, which is a ext2 system. This is the entry in my /etc/fstab > /dev/sda8 /home ext2 defaults 0 2 > > This error is probably causing another problem of accessing my $HOME files > from GTK-based application. When I "open -> file" from a gtk-based > application to open a file under $HOME, I can not see any files of $HOME > from the "open..file" dialog. > > Anyone can help me with this? > > Thanks very much. > Michael. > > Anybody can help with this? Thanks.
From: Sergey Matveev on 7 Feb 2010 10:20 Greetings, On Sun, Feb 07, 2010 at 10:07:41AM -0500, Michael Yang wrote: > When I list files under my $HOME, I found following two files that can not > be accessed: > > ls: cannot access .xsession-errors: Stale NFS file handle > ls: cannot access .Xauthority: Stale NFS file handle > total 2384 > -????????? ? ? ? ? ? .xsession-errors > -????????? ? ? ? ? ? .Xauthority > > [skip] > > Anyone can help me with this? I googled for this issue, and found this[1]: A filehandle becomes stale whenever the file or directory referenced by the handle is removed by another host, while your client still holds an active reference to the object. A typical example occurs when the current directory of a process, running on your client, is removed on the server (either by a process running on the server or on another client). So this can occur if the directory is modified on the NFS server, but the directories modification time is not updated. How do I fix this problem? * The best solution is to remount directory from the NFS client * Or try to mount NFS directory with the noac option. However I don't recommend using noac option because of performance issue and Checking files on NFS filesystem referenced by file descriptors (i.e. the fcntl and ioctl families of functions) may lead to inconsistent result due to the lack of consistency check in kernel even if noac is used. [1] http://www.cyberciti.biz/tips/nfs-stale-file-handle-error-and-solution.html -- Happy hacking, Sergey Matveev FSF Associate member #5968 | FSFE Fellow #1390 -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Osamu Aoki on 7 Feb 2010 10:50 On Sat, Feb 06, 2010 at 03:35:37PM -0500, Michael Yang wrote: .... > ls: cannot access .xsession-errors: Stale NFS file handle > ls: cannot access .Xauthority: Stale NFS file handle .... > Anyone can help me with this? I have no idea but I uually use google on this kind of situation. (At least fro short info, there is no simple solution I can present.) Peple may have had encountered similar and did much more dig in to solve this. Alas, I see many http://www.linuxquestions.org/questions/linux-networking-3/stale-nfs-file-handle-error-369219/ http://www.cyberciti.biz/tips/nfs-stale-file-handle-error-and-solution.html .... But yor case is on local file... Did you check file permission of ..xsession-errors and .Xauthority. Please post "ls -l ~/.xsession-errors ~/.Xauthority" Osamu > Thanks very much. > Michael. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Tom H on 7 Feb 2010 12:20
> When I list files under my $HOME, I found following two files that can not > be accessed: > ls: cannot access .xsession-errors: Stale NFS file handle > ls: cannot access .Xauthority: Stale NFS file handle > total 2384 > -????????? ? ? ? ? ? .xsession-errors > -????????? ? ? ? ? ? .Xauthority > It looks like a remote access from NFS system from error message. But it is > my $HOME, which is a ext2 system. This is the entry in my /etc/fstab > /dev/sda8 /home ext2 defaults 0 2 > This error is probably causing another problem of accessing my $HOME files > from GTK-based application. When I "open -> file" from a gtk-based > application to open a file under $HOME, I can not see any files of $HOME > from the "open..file" dialog. Are you sure that you do not have an nfs mount on top of the /home local mount in fstab? -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org |