public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrey Vul" <andrey.vul@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] forcing file removal, fails with ESTALE
Date: Thu, 20 Nov 2008 20:16:35 -0500	[thread overview]
Message-ID: <e38d12ff0811201716u3234f806r89e8c77f64a66036@mail.gmail.com> (raw)
In-Reply-To: <4925FD9D.4070608@netspace.net.au>

On Thu, Nov 20, 2008 at 19:15, Iain Buchanan <iaindb@netspace.net.au> wrote:
> Qian Qiao wrote:
>>
>> On Thu, Nov 20, 2008 at 18:13, Andrey Vul<andrey.vul@gmail.com>  wrote:
>>>
>>> I'm trying to remove a file, yet it fails with ESTALE ("Stale NFS file
>>> handle"). I'm thinking that this is due to a corrupt inode but fsck
>>> fails to fix it.
>>>
>>> Is /lib/rc/console/unicode suppoed to be NFS or do I need to do a long
>>> hard fsck of /?
>>> --
>>> Andrey Vul
>>>
>>> A: Because it messes up the order in which people normally read text.
>>> Q: Why is top-posting such a bad thing?
>>> A: Top-posting.
>>> Q: What is the most annoying thing in e-mail?
>>
>> It's just a stale handle, i.e., some process opened the file, but the
>> file is then deleted, moved or renamed by another process.
>>
>> If you know what process is holding the handle of the non-existent
>> file, restart it, if not, re-mount the file system.
>
> `umount -l` might help you there.
Umount -l fixes inconsistent inodes / directory entries?
I thought only fsck -f could do that.
Anyways, I rebooted into bb (init=/bin/bb) and ran /sbin/jfs_fsck -f /dev/root .
That fixed the stale file handle.
You know it's fsck -f time when dmesg has "jfs_lookup: cannot read #####" lines.



  reply	other threads:[~2008-11-21  1:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 18:13 [gentoo-user] forcing file removal, fails with ESTALE Andrey Vul
2008-11-20 18:33 ` Qian Qiao
2008-11-21  0:15   ` Iain Buchanan
2008-11-21  1:16     ` Andrey Vul [this message]
2008-11-21  3:06       ` Iain Buchanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e38d12ff0811201716u3234f806r89e8c77f64a66036@mail.gmail.com \
    --to=andrey.vul@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox