Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 1999 03:05:31 -0700 (MST)
From:      Warner Losh <imp@village.org>
To:        hackers@freebsd.org
Subject:   fdisk
Message-ID:  <199902191005.DAA01110@harmony.village.org>

next in thread | raw e-mail | index | archive | help
How do I make fdisk(8) update the bios parameters for a disk drive.  By BIOS
parameters, I mean the bios parameters in sector 0.

fdisk appears to set the incore copy (or at least purports to do so), but
appear to update the parameters on the disk.

Yes.  I really really really want to do this.  The disk is the only one
system, but I could put it into another system.

Actually, why do I want to do this?

I'm wanting to make this disk bootable.  I've installed boot0 (which appears
to be working correctly).  However, when I hit F1 or F2, nothing happens except
a single disk access.  If I boot off floppy, then enter wd(0,a)/boot/loader
it works great.  This usually indicates that the mbr parameters don't match
the parameters which this bios comes up with.  The boot message indicates
a mismatch (since dmesg tells me cyl 3152, head 16, sectors 63).  fdisk
tells me 1576, head 32, sector 63.

So am I barking up the wrong tree?

Warner

P.S.  I think I need to port OpenBSD's disklabel and fdisk since they are
slightly less frustrating that FreeBSD's.  Todd Miller has done some good
work there.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902191005.DAA01110>