From owner-freebsd-bugs Tue Aug 15 21: 0:16 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id F067537BBF0 for ; Tue, 15 Aug 2000 21:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA58808; Tue, 15 Aug 2000 21:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from cc158233-a.catv1.md.home.com (cc158233-a.catv1.md.home.com [24.3.25.17]) by hub.freebsd.org (Postfix) with ESMTP id 951C237BB40 for ; Tue, 15 Aug 2000 20:54:59 -0700 (PDT) (envelope-from sjr@home.net) Received: (from sjr@localhost) by cc158233-a.catv1.md.home.com (8.9.3/8.9.3) id XAA00784; Tue, 15 Aug 2000 23:54:53 -0400 (EDT) (envelope-from sjr) Message-Id: <200008160354.XAA00784@cc158233-a.catv1.md.home.com> Date: Tue, 15 Aug 2000 23:54:53 -0400 (EDT) From: sjr@home.com Reply-To: sjr@home.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/20633: fdisk doesn't handle LBA correctly Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 20633 >Category: bin >Synopsis: fdisk doesn't handle LBA correctly >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 15 21:00:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Stephen J. Roznowski >Release: FreeBSD 4.1-STABLE i386 >Organization: >Environment: >Description: I'm not sure if this is related to PR 14974... When I run fdisk, I get: ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=3720 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=3720 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 63, size 8385867 (4094 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 521/ sector 63/ head 254 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 8385930, size 34604010 (16896 Meg), flag 80 (active) beg: cyl 522/ sector 1/ head 0; end: cyl 1022/ sector 63/ head 254 The data for partition 3 is: sysid 12,(DOS or Windows 95 with 32 bit FAT, LBA) start 51375870, size 8385930 (4094 Meg), flag 0 beg: cyl 1022/ sector 1/ head 0; end: cyl 1022/ sector 63/ head 254 The data for partition 4 is: Except for partition #1, these values are wrong. They should be 1: 0/1/1 521/63/254 2: 522/1/0 2675/63/254 3: 3198/1/0 3719/63/254 As I understand it, for partition types 0xC, 0xE, 0xF (12, 14, 15) LBA is used and the C/S/H entries are ignored. fdisk should be modified to do the correct thing depending on the partition type. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message