Date: Fri, 19 Feb 1999 10:57:50 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Warner Losh <imp@village.org> Cc: hackers@FreeBSD.ORG Subject: Re: fdisk Message-ID: <Pine.BSF.3.95.990219105445.1143A-100000@current1.whistle.com> In-Reply-To: <199902191005.DAA01110@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
The parameters are "synthesised" by assuming that the last sector of the BSD partition is ion the last sector of the last head of it's cylinder. so if you are trying ot say that the disk has 2 heads and 10 sectors per track you would manually set the ending head number to 1 and the ending sector to 10 (sectors are 1-based) The fact that the calculations wouldn't work out don't matter as NOTHING uses those numbers except the wd driver in a last ditch attempt to try find a geometry somewhere. julian On Fri, 19 Feb 1999, 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 > > 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 > 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?Pine.BSF.3.95.990219105445.1143A-100000>