Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 16:08:26 +0100
From:      Roelof Osinga <roelof@eboa.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Have crashed, won't travel
Message-ID:  <36EFC56A.ACBFB0A7@eboa.com>
References:  <36DCB59E.F16D5539@eboa.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg Lehey wrote:
> 
> I suspect it's just because it was easier that way.

Hm. I mean, it's ok when I do it, but ... <g>

> Yup, I know, fsck shouts.

> 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:1
1 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>. 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.

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).

> and then re-create it by whatever method you used to create it in the
> first place.  It's conceivable that you might have a panic while
> trying to do this, so do a sync first and don't have anything else
> running while you do.

First I'll have to get rid of the PLIST file. Went to single-user, did
a 'fsck -fp /usr', retried to delete it. Same error.

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.

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

Roelof

-- 
Home is where the (@) http://eboa.com/ is.


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?36EFC56A.ACBFB0A7>