Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 1999 12:28:14 +0200
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        Warner Losh <imp@village.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: fdisk
Message-ID:  <19990219122814.A65108@ucb.crimea.ua>
In-Reply-To: <199902191005.DAA01110@harmony.village.org>; from Warner Losh on Fri, Feb 19, 1999 at 03:05:31AM -0700
References:  <199902191005.DAA01110@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 19, 1999 at 03:05:31AM -0700, Warner Losh wrote:
> 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
> 
I suppose, you're talking about compatibility mode disk, are you?
If yes, `fdisk -t -u' is supposed to test it, and `fdisk -u' -- to do it.

> 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.
>
Could you tell us about the differences?

-- 
Ruslan Ermilov		Sysadmin and DBA of the
ru@ucb.crimea.ua	United Commercial Bank
+380.652.247.647	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age


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?19990219122814.A65108>