Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 1999 10:08:18 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Roelof Osinga <roelof@eboa.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Have crashed, won't travel
Message-ID:  <19990318100818.L429@lemis.com>
In-Reply-To: <36EFC56A.ACBFB0A7@eboa.com>; from Roelof Osinga on Wed, Mar 17, 1999 at 04:08:26PM %2B0100
References:  <19990303195632.B441@lemis.com> <36DDBFEB.86D89D20@eboa.com> <19990304095813.I441@lemis.com> <36DDEFFD.A4DB4978@eboa.com> <19990304130126.B441@lemis.com> <36DE0352.E99BCB70@eboa.com> <19990316174710.H429@lemis.com> <36EE54A4.8DC53017@eboa.com> <19990317093436.G429@lemis.com> <36EFC56A.ACBFB0A7@eboa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[Format recovered--see http://www.lemis.com/email/email-format.html]

On Wednesday, 17 March 1999 at 16:08:26 +0100, Roelof Osinga wrote:
> Greg Lehey wrote:
>> This looks like relatively serious file system damage.  I'd guess that
>> one of these files has its inode corrupted (and it makes it look like
>> a device file).  The best thing you can do here is to completely
>> remove the directory:
>>
>>   # rm -fr /usr/ports/devel/crossgo32/pkg/
>
> n669# ls -l /usr/ports/devel/crossgo32/pkg/
> total 1
> drwxr-xr-x  2 root        wheel                   512 Mar  2 06:11 CVS
> c--xr--rw-  1 1830822492  1718183023   92, 0x2022002e Dec  7  2023 DESCR
> br--r-----  1 1852399988  1701344288  103, 0x6320006e Nov 15  2031 PLIST
>
> Doesn't look good, no <g>. 

Yup, that's pretty much what I expected to see.

Still:
>
> root:/usr/ports/devel/crossgo32/pkg# ls -l CVS/
> total 3
> -rw-r--r--  1 root  wheel  122 Feb 15 09:21 Entries
> -rw-r--r--  1 root  wheel   37 Feb 15 09:21 Repository
> -rw-r--r--  1 root  wheel   11 Feb 15 09:21 Root
> root:/usr/ports/devel/crossgo32/pkg# cat CVS/Entries
> /COMMENT/1.1.1.1/Thu Mar 27 20:53:42 1997//
> /DESCR/1.3/Wed Aug 13 09:06:55 1997//
> /PLIST/1.3/Wed Aug 12 01:55:17 1998//D
> root:/usr/ports/devel/crossgo32/pkg# cat CVS/Root/home/ncvs
> root:/usr/ports/devel/crossgo32/pkg# cat CVS/Repository
> /home/ncvs/ports/devel/crossgo32/pkg
>
> Looks fine, though the last line in Entries is a tad weird.

It's difficult to tell after what your mailer did with it.  It looks
OK to me the way I've reconstructed it, if that's correct.

> Hm. Looks like some of the flags aren't in the manpage (chflags):
>
> root:/usr/ports/devel/crossgo32/pkg# rm DESCR
> override --xr--rw-  1830822492/1718183023 uappnd,uchg,nodump,opaque for DESCR?
> y
>
> Good thing you reminded me to sync. Just removing that file caused
> a reboot <g>. Guess I can't blame that one on the NIC. Ah well, one
> down, one to go. Still got UNREF FILE I=645. Ok, next one:
>
>   root:/usr/ports/devel/crossgo32/pkg# rm PLIST
>   override r--r-----  1852399988/1701344288 uchg,nodump,sappnd for PLIST? y
>   rm: PLIST: Operation not permitted
>
> Hm. Same of course with 'rm -f PLIST'. Can't even rename it. Something's
> fishy in the state of Denmark (to quote Inspector Clouseau).

Looks like it's time to learn to use fsdb.  I've never used it myself,
but from the man page you should be able to go in there and remove the
entries.

> B.t.w. isn't there a somewhat more direct way to go to and fro
> single user mode? Something like 'shutdown -k' but then ending
> in single- instead of multi-user.

shutdown with no arguments does this, sort of.  It's not perfect, and
in particular it leaves the file systems mounted read/write.  If you
use fsdb, you'll need to *re*boot single user, and leave the file
system unmounted.

> Also did the maillist have problems yesterday? All the CC's to the
> list came bouncing back to me.

Somebody in Israel created a mail loop.  It looks like it's fixed now.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990318100818.L429>