z·eeki·sh

tech log on gentoo, linux, and random stuff

Posts Tagged ‘stale-NFS-file-handle

workaround for “stale NFS file handle” possibly from a coLinux messup

leave a comment »

Tried to run coLinux with an existing distro (gentoo) on my tablet, and after reboot acpid stops working. Apparently /var/run/acpid.socket becomes a stale NFS file handle™ and refuses any rm attempt. Same thing with some other files under /tmp.

workaround:

#/bin/sh
for d in /var/run /tmp; do
    mv $d $d.stale
    mkdir $d
    chmod --reference=$d.stale $d
done

Still don’t know how to remove those staled files though.

Advertisements

Written by zsh

May 29, 2009 at 3:01 pm