From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4b8f47b6d4f87a21 X-Google-Attributes: gidfee84,public From: Dave Hodgson Subject: Re: Deleting files with odd names Date: 1995/10/06 Message-ID: <452pde$rdd@mercury.hgmp.mrc.ac.uk>#1/1 X-Deja-AN: 117148361 references: <44rk7q$bg2@lyra.csx.cam.ac.uk> content-type: text/plain; charset=us-ascii organization: Genome Research x-url: news:44rk7q$bg2@lyra.csx.cam.ac.uk mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha) *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