Newsgroups: comp.sys.amiga.misc Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!ira.uka.de!news From: S_ASCHMIDT@iravcl.ira.uka.de (|S| Angela Schmidt) Subject: Re: Need help deleting a bogus file In-Reply-To: sjk@aura.nbn.com's message of 21 Jun 91 01: 09:54 GMT Message-ID: <1991Jun24.141204.1007@ira.uka.de> Sender: news@ira.uka.de (USENET News System) Organization: University of Karlsruhe, FRG (Informatik Rechnerabteilung) References: Date: Mon, 24 Jun 1991 14:55:10 GMT X-News-Reader: VMS NEWS 1.10 Lines: 56 In sjk@aura.nbn.com writes: > This morning, my A3000 hung while running the CNews `expire' program. > I rebooted with the "drive busy" light on. After getting past a > "Work0: Disk not validated" error, I wound up with 2 directory entries > for a "history.pag" file; `list' showed 2 files with the same name > with different datestamps. I was able to copy the "real" file and > delete it, but am still left with this bogus file: > > AmiShell> list Control.BAD > Directory "Work0:Spool/CNews/Control.BAD" on Thursday 20-Jun-91 > history.pag 126268 ----rwed Today 03:43:28 > 1 file - 251 blocks used > AmiShell> delete Control.BAD/history.pag > No file to delete > AmiShell> type Control.BAD/history.pag hex > TYPE can't open Control.BAD/history.pag > No files to type > > Is there any way of getting rid of this without reformatting the > partition? Of course, there is a way to get rid of this. Probably the filesystem did not hash the file in correctly. So it will find the file if you type dir or list, but when you try to load or delete it, it will not be found. I would use a diskmonitor, set the hash-entry of this file to 0 and clear the bitmap-valid-flag. Don't forget the checksum! DOS will validate your partition and after this the file will be deleted. If you understood what I mean, you can try this. Otherwise please don't try to solute this using a diskmonitor. You can loose a lot of data if something goes wrong. Better you ask someone who knows a bit about the filesystem to help you. You also could try this (I don't know if it works). 1> delete #? Make sure, that there are no other files in the directory before you type in this line! > Please email responses. Thanks for any help with this! Sorry, something went wrong while trying email! I hope I could help you! Angela ---------------------------------------------------------+--------------------- Angela Schmidt Internet: S_ASchmidt@iravcl.ira.uka.de | // (Nessy in IRC) BITNET: UK8B@DKAUNI2.BITNET | Amiga // Phone: +49 731 712316 & 721 6904-263 | \\ // only 1000 MEZ: (10am-9pm) (12pm-10pm) | \X/ the real one! ---------------------------------------------------------+---------------------