Subject: Re: Unremovable file
To: Daniel Parks <danielp@reed.edu>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 10/11/2000 20:42:51
At 15:03 Uhr +0200 11.10.2000, Daniel Parks wrote:
>>Try:
>>	rm ./-*
>>	Either 'rm -- nastyfile' or 'rm ./nastyfile'.
>>	rm *something
>>	rm -- -file
>
>Oh, duh. Why didn't I think of using ./?
>I didn't know about --.
>
>Unfortunately, * seems to miss this file. I type qrm (the name of the
>c program I wrote) -<tab->nasty>* (because I have 2 files, -nastybad
>and -nastyevil) and it replies that it cannot find a file named
>-nasty*. I've also tried typing various letters then pressing tab so
>I can get a complete name, but none of the characters work.

Another one:

`ls -i`

<scribble down the inode numbers of the offending files>

`shutdown now`

<unmount the partition in question>

<following is csh pseudo code:>

foreach inode ( <scribbled numbers> )
`/sbin/clri /dev/rsd?? $inode`
end

fsck -fp /dev/rsd??

reboot

man ls, man clri, man fsck

-- if you feel unsure with any of the listed commands, this had better be a
last resort. Deadly effective.  ;)

	hauke

--
"It's never straight up and down"     (DEVO)