Path: utzoo!telly!eci386!ecicrl!clewis From: clewis@ferret.ocunix.on.ca (Chris Lewis) Newsgroups: comp.unix.ultrix Subject: Re: Help in removing corrupt directory ! Message-ID: <1204@ecicrl.ocunix.on.ca> Date: 24 Jan 91 06:00:31 GMT References: <36066@netnews.upenn.edu> Distribution: usa Organization: Elegant Communications Inc., Ottawa, Canada Lines: 20 In article <36066@netnews.upenn.edu> hpc@cattell.psych.upenn.edu (Hua Pei Chen) writes: | I would like to have some advice on how to remove a corrupt |directory in a file system.... |The directory itself |seems to be fine, but it contains a file with a very long name |("m[[bbmm..."). The i-number for this file is a negative number, so the |file is totally transparent. Both rm -r and rmdir failed. I have also |tried "clri" and "fsck" the filesystem, "clri" does not recognize the |negative inode, and "fsck" can not salvage the corrupt directory. Besides |scratching the whole file system and restore it, is there another way to |physically remove this corrupted directory(file)? First, move any files under this directory that you need, then clri the directory inode. A following fsck should take out both the directory and the corrupt file. -- Chris Lewis, Phone: (613) 832-0541, Internet: clewis@ferret.ocunix.on.ca UUCP: uunet!mitel!cunews!latour!ecicrl!clewis Moderator of the Ferret Mailing List (ferret-request@eci386)