From owner-freebsd-current Sun Nov 3 23:13: 1 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24FAA37B401; Sun, 3 Nov 2002 23:13:00 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57CE043E42; Sun, 3 Nov 2002 23:12:59 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gA47Cc9d084293; Mon, 4 Nov 2002 08:12:42 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: John Hay Cc: imp@bsdimp.com (M. Warner Losh), current@FreeBSD.ORG, n_hibma@FreeBSD.ORG Subject: Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken In-Reply-To: Your message of "Sat, 04 Nov 2002 08:36:34 +0200." <200211040636.gA46aYDA089784@zibbi.icomtek.csir.co.za> Date: Mon, 04 Nov 2002 08:12:38 +0100 Message-ID: <84292.1036393958@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200211040636.gA46aYDA089784@zibbi.icomtek.csir.co.za>, John Hay wri tes: >> : Hmmm. I just noticed that the disks probe with zero values for the >> : heads, sectors/track and cylinders. I have tried two different USB >> : CF readers and both do it. On 4.x it probes with the correct values >> : on the same machine and the same devices. So why do they probe >> : wrong? >> >> Don't know. I've had problems with CF readers returning the wrong >> geometry values in 4.3, but never 0's > >Ok, I found it. It is part of the rev 1.61 change to umass.c. It was >made in June. :-/ The relevant piece is this: >So the question now is do we just leave umass like this, which means we >can't do low level disk stuff on umass devices, or do we add something >like this back or is there another way? Is there a way to get the real >geometry of the device? We should obviously fix it. I have no idea what is possible in USB devices in this respect. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message