Stale NFS File Handle Locks In BackTrack 4 Beta

Published in

Operating System:
BackTrack 4 Beta (This issue seems to be a regular problem on Debian based systems including Ubuntu)

Symptoms:
Grey screen with a black X for the mouse cursor
During boot process or from dmesg: Activating swapfile swap [fail]
Cannot delete folders and files related to X11 in /mnt/sdb2/changes/tmp (BackTrack) or /tmp (Debian/Ubuntu) because of a "Stale NFS file handle.":

kde-root
kde-yourname
ksocket-root
ksocket-yourname
.X0-lock
.X11-unix

Warning: Be sure to make a backup of your important files prior to running any of these commands.

To resolve this issue in BackTrack4 Beta (or Debian based system) without reformatting and restoring your original BackTrack4 Beta boot partition:

Identify your persistent partition:

fdisk -l

Attempt to unmount your persistent partition (mine was /dev/sdb2):

umount /dev/sdb2

If BackTrack reports that it is unable to unmount the folder, because various processes are in use -- find processes that are being used by the partition:

fuser -m /dev/sdb2

Attempt to gracefully kill processes found from the fuser command:

kill processid

If graceful kill didn't work:

kill -9 processid

You should now be able to unmount the partition:

umount /dev/sdb2

If you formatted the partition as ext3, run the e2fsck.ext3 command to check and repair your file system:

e2fsck.ext3 -f /dev/sdb2

At this point, you will need to keep pressing y, and allow e2fsck to repair and remove files as needed.

OR If you don't care to read what is being repaired and removed:

e2fsck.ext3 -fy /dev/sdb2

Restart your system when e2fsck is done, and you should be back in business.


© 2008-2010 Red Audit LLC.
Page generated in: 0.000178 seconds.