[315] in netbsd-help mailing list archive
Re: fsck
daemon@ATHENA.MIT.EDU (John Hawkinson)
Tue Sep 5 14:54:59 1995
Date: Tue, 5 Sep 1995 14:54:45 -0400
To: Steve Franks <sdfranks@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: "[314] in netbsd-help mailing list archive"
From: John Hawkinson <jhawk@MIT.EDU>
> Date: Mon, 04 Sep 1995 20:18:50 EDT
Sorry we didn't answer sooner. We looked at this last night
and said "Groan! What's wrong? How do we fix this?", and of
course, the answer was not immediately forthcomnig :-(.
> I just got back from being out of town, and when I checked my box,
> it had locked up and gone to a db> yesterday morning.
When this happens, it's always good if you can hit "t" and at
least give us the function names where it crashed.
If you could then hit "c" (continue) and see if it dumps core
to disk, that'd be good too.
At least that way we can have an idea where the problem lay,
instead of guessing in the dark.
> I rebooted the machine and when it tried booting, it ran fsck, and
> then said that it couldn't finish fsck, and that I should run fsck
> manually. When I did that, it goes all the way to /dev/rwd1f, but
> then it gets to phase 2 and then segmentation faults, so I can't
> boot anything other than single user. What's wrong?
You might want to make sure you have the latest version of fsck (you
can run /etc/netstart to start the network, then run ``mount -u / ''
to mount your root partition writable, and then ftp to
ftp.dialup.mit.edu and get /afs/sipb/system/i386_nbsd1/sbin/fsck.
Presumably fsck produces output before it core dumps? Does it reference
any particular problematic inodes?
If so, you can clear those inodes by hand, which someteims makes fsck
deal a lot better. Use:
clri /dev/rwd1f inode# ...
If this is not helpful, could you (with your root mounted read-write)
run
fsck -n /dev/rwd1f > /tmp/output
(that will run fsck in NO WRITE mode, outputting info to /tmp/output)
and then run
/usr/sbin/sendmail netbsd-help@mit.edu < /tmp/output
If /usr/sbin is on rwd1f (sigh...), get sendmail via ftp as above,
from /afs/sipb/system/i386_nbsd1/usr/sbin/sendmail.
Thanks.
--jhawk