[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-port-i386
Subject:    Re: MBR not working (1.5)
From:       gabriel rosenkoetter <gr () eclipsed ! net>
Date:       2001-11-23 16:10:25
[Download RAW message or body]


On Fri, Nov 23, 2001 at 02:49:34PM +0100, Wolfgang Solfrank wrote:
> No, it doesn't.  The MBR bootcode uses the beg cylinder/head/sector
> numbers for reading the active partition's first sector (there are
> exceptions, but they don't come into play here).  And this data
> isn't correct in your MBR.  (I've no idea how this data arrived on
> your drive, short of you entering it deliberately, (which I tend
> to doubt)).

Yeah, those are probably the only bits in fdisk and disklabel's
output I could safely twiddle that I didn't. I don't think I'd ever
even paid close attention to their existence.

(The disk got into an unbootable state after I created a disklabel
for a zip disk, sd1, by hand and then wrote it back... to the wrong
SCSI device. I managed to reconstruct the disklabel for sd0 by
reading it byte by byte, piping that through strings, and walking
though it till I came to the preserved disklabels in /var. Not too
sure why that would have zeroed the fdisk information, but it
certainly seems to have. Unless I'm forgetting some other detail of
my attempts to resurrect things which would have had this effect.)

> Anyway, try to change these values to cylinder 0, head 1, sector 1 and
> try again.  Note that unlike Anne, you don't have to reinstall the
> disklabel after that change.

... and this fixes everything!

Vielen dank, Wolfgang.

-- 
       ~ g r @ eclipsed.net

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic