Date: Tue, 15 Aug 2000 23:54:53 -0400 (EDT) From: sjr@home.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/20633: fdisk doesn't handle LBA correctly Message-ID: <200008160354.XAA00784@cc158233-a.catv1.md.home.com>
next in thread | raw e-mail | index | archive | help
>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: <UNUSED> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008160354.XAA00784>