From owner-freebsd-hackers Fri Feb 19 2:30:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [212.110.138.1]) by hub.freebsd.org (Postfix) with ESMTP id 629731159F for ; Fri, 19 Feb 1999 02:29:40 -0800 (PST) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.9.2/8.9.2/UCB) id MAA66831; Fri, 19 Feb 1999 12:28:15 +0200 (EET) (envelope-from ru) Date: Fri, 19 Feb 1999 12:28:14 +0200 From: Ruslan Ermilov To: Warner Losh Cc: hackers@FreeBSD.ORG Subject: Re: fdisk Message-ID: <19990219122814.A65108@ucb.crimea.ua> Mail-Followup-To: Warner Losh , hackers@FreeBSD.ORG References: <199902191005.DAA01110@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.17i In-Reply-To: <199902191005.DAA01110@harmony.village.org>; from Warner Losh on Fri, Feb 19, 1999 at 03:05:31AM -0700 X-Operating-System: FreeBSD 3.0-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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