On occasion I've had to edit directories with Emacs to get rid of weird
files. Unicode in the filenames generally, but it's worth a shot in
this case.
% emacs <directory>
Use the up/down arrows to move the cursor through the file list, hit 'd'
to mark a file for deletion. Hit 'x' to execute. Emacs will prompt you
for yes/no. Ctrl-x and then Ctrl-c to exit Emacs.
Rene
On 3/28/2017 11:14 AM, . . wrote:
On 03/28/2017 09:58 AM, Ken D'Ambrosio wrote:
On 2017-03-28 10:56, . . wrote:
I'm unable to delete one file which lists as 'Stale file handle' on a
jfs file system. I've read I should be able to do so with inode.
Unfortunately, 'ls -i' doesn't report an inode. It displays a
question mark and file name. Is there another way?
"Stale file handle" probably means you should give a reboot; usually,
it means that the mountpoint is kinda flaky. And the question mark
as a filename may point toward corruption -- I'd *strongly* recommend
an fsck, ASAP.
Good luck!
-Ken
I'd done an fsck and rebooted straightaway. It's but one file and I
was able to rename its directory and rebuild the original directory
with the original name and a copy of the offending file without
corruption. I then nuked all but the offending file in the renamed
directory.
I've checked the entire partition and only the one file reports as
bad. It's apparently not causing problems but it bugs me.
If there's no way to nuke the file does the following make sense?
1) Copy the partition containing the problem file to a blank
partition, omitting the partition containing the problem file.
2) Reformat the problem partition.
3) Copy the created partition to the reformatted partition.
--
------------------------------------------------------------------------
René Churchill
VP of Development (i.e. Geek #2)
WherezIt.com - Your source for Local information
[email protected] <mailto:[email protected]>
802-244-7880 x527
http://www.wherezit.com/