From: Dave Hodgson <dmh@sanger.ac.uk>
Subject: Re: Deleting files with odd names
Date: 1995/10/06 [thread overview]
Message-ID: <452pde$rdd@mercury.hgmp.mrc.ac.uk> (raw)
In-Reply-To: 44rk7q$bg2@lyra.csx.cam.ac.uk
*sigh*
Of _course_ I tried '\' to escape the '/' characters!
And of course I tried wrapping quotes around the thing!
I have now fixed the problem, here's the answer that came from Burkhard
Neidecker-Lutz at Digital:
This is a known bug with old versions of MacIntosh NFS. The catch here is
that there is *NO* way to delete that file via name from UNIX, because
the kernel "nametoi" function cannot get past the "/" characters. They
can be introduced only via NFS (which doesn't use the nametoi function
but rather constructs pathes one by one).
Solution 1:
Delete from the Mac. It created the invalid thing in the
first place and can work around the problem.
Solution 2:
ls -i
4711 name/with/slash/in/it
(the actual number will not be 4711). Unmount the file system. Now (assuming
here that the file systen is a UFS file system on disk /dev/rrz3g):
fsdb -w /dev/rrz3g
> 4711:inode
> :ln=0
> :quit
This will set the link count of the file to zero. Now force a file system
check on that file system:
fsck -o /dev/rrz3g
and answer "yes" when fsck offers to remove the file in question.
Many thanks to all those that mailed,
Dave
next prev parent reply other threads:[~1995-10-06 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-03 4:00 Deleting files with odd names Dave Hodgson
1995-10-05 4:00 ` Joseph B. Gurman
1995-10-11 4:00 ` Michael Sternberg
1995-10-05 4:00 ` John van der Voort van der Kleij
1995-10-06 4:00 ` Dave Hodgson [this message]
1995-10-07 4:00 ` Thomas Leitner
1995-10-11 4:00 ` Daniel S. Riley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox