Subject: Re: your mail
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Jon Lindgren <jlindgren@slk.com>
List: port-sparc
Date: 01/11/2001 14:53:08
On Thu, 11 Jan 2001, Manuel Bouyer wrote:

> > I just messed up my root disk when adding an external SCSI disk.
> > It now shows:
> > ...
> > root on sd1a dump on sd1b
> > /: bad dir ino 14 at offset 0: mangled entry
> > panic: bad dir
> > ...
> > and it drops back to db> prompt.
> > 
> > Is there any quick way to fix this problem without replacing
> > hard drive physically?  Thanks.
> 
> 1) try to remove the external hard disk and see if you can boot again
> 2) boot install media (floppy, cd, net or whatever you used to install) and
> type 'fsck /dev/rsd1a' to try to repair it.
> 
> But just adding a drive should'nt produce this. I suspect you have a
> problem on your SCSI system: both disks at the same ID, bad cable, terminator
> problem, ...

Perhaps the disk was added as the wrong SCSI ID?  I know the openboot prom
is gonna grok SCSI IDs differently (IIRC its 3 2 1 0...) than the kernel
will (0 1 2 3...) - if you had your original at 1, and added at 0, openboot
might see ID 1 as the primary, boot the bootstrap, load the kernel, which
then scans the bus and sees ID 0 as primary, tries to mount...

Just an idea, a shot in the dark.

-Jon
 --------------------------------------------------------------------
 "Trout are freshwater fish, and have underwater weapons."
 "Zing, zing zing zing!"
 "Keep away from the trout."
 -- The opinions expressed are not necesarily those of my employer --
 "Who stole my lawn?"