Re: freebsd 4.8-STABLE hangs on boot with no error message

2003-11-30 Thread Neil Brown
> > I'm running freebsd 4.8-STABLE, I installed it a
> > little while ago and it has been running fine as
> my
> > broadband router for a few weeks now, no problems.
> > 
> > This morning there was a powercut, and when I came
> to
> > the machine and attached a monitor, I discovered
> that
> > it was making it through the BIOS, getting to the
> > spinning -\|/-\|/ prompt, where it freezes on the
> > first | every time.
> 
> Uh-oh.  That's bad.  That shows the system is trying
> and failing to
> read the kernel from your hard drive.  
>  
> 
> If so, first thing to try is running fsck on your
> root partition:
> 
> # fsck -y /dev/ad0s1a
> 

Thought I'd just reply to say how this one panned out
in case it helps anyone trawling the archives in the
future:

I booted off the CD, ran fsck, got bad super block
messages.  Unable to fix it by recommended methods, I
was becoming frustrated and came close to wiping the
disk for a reinstall.  Instead I put it in one of my
other machines, and it booted my system fine.  Then
into a third machine, that worked fine as well.

Once it was clear that the disk was not the cause of
the problem, I began to poke around a lot in the BSD
machine, and eventually found that what had happened
was that the powercut had caused the CMOS to flip the
"type" option for my hard disk from "normal" to "auto"
(not really a noticeable difference imho!), changing
this back meant it worked fine again.

So just one of those random incidents really!  Thanks
for the help given :)

Neil.


Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd 4.8-STABLE hangs on boot with no error message

2003-11-28 Thread Matthew Seaman
On Fri, Nov 28, 2003 at 09:28:23AM +, Neil Brown wrote:

> I'm running freebsd 4.8-STABLE, I installed it a
> little while ago and it has been running fine as my
> broadband router for a few weeks now, no problems.
> 
> This morning there was a powercut, and when I came to
> the machine and attached a monitor, I discovered that
> it was making it through the BIOS, getting to the
> spinning -\|/-\|/ prompt, where it freezes on the
> first | every time.

Uh-oh.  That's bad.  That shows the system is trying and failing to
read the kernel from your hard drive.  
 
> If I press enter quick enough at the right moment I
> can get the boot prompt, but then the | appears and it
> freezes.  I can still turn numlock on and off (a sign
> I've gone by for years that the PC hasn't totally
> locked...) and ctrl-alt-del still reboots but it's
> clear that the machine is not going anywhere further.
> 
> I can chuck a CD drive in and boot from the freebsd
> install disk or knoppix or whatever will help me, does
> anyone have any idea as to how I can fix it or what
> log file I should examine etc?

Can you boot to single user mode from Disk2 of the 4 CD set?
(Alternately, you can use the install and fixit floppy images from
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/4.8-RELEASE/floppies/)

If so, first thing to try is running fsck on your root partition:

# fsck -y /dev/ad0s1a

(Assuming you're using IDE disks and you've got FreeBSD installed into
the first slice -- adjust as necessary)

If you can fsck the filesystem, then try mounting it:

# mount -t ufs -o rw /dev/ad0s1a /mnt

If you can get this far, then you're in fairly good shape and can
probably recover the system without doing a full restore-from-backup.
If not, then it seems that you've had a really bad disk crash: at best
you'll be able to reinstall and things will work well enough.  At
worst, the disk is completely toast.

If you can access the drive, then check that you've got a kernel image
available on the drive (/kernel would be good, or /kernel.old or
/kernel.GENERIC).  If necessary try copying the kernel image from the
CD.  Once you've got that far, try booting again from your hard drive.
Once you've got the system booting up again, then going through a full
buildworld cycle would be a good idea.


Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature