From <@post.demon.co.uk:james@jraynard.demon.co.uk>  Sat Jul  8 05:59:05 1995
Received: from disperse.demon.co.uk (disperse.demon.co.uk [158.152.1.77])
          by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id FAA06474
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 8 Jul 1995 05:59:03 -0700
Received: from post.demon.co.uk by disperse.demon.co.uk id aa06698;
          8 Jul 95 13:58 +0100
Received: from jraynard.demon.co.uk by post.demon.co.uk id aa03827;
          8 Jul 95 13:58 +0100
Received: (from james@localhost) by jraynard.demon.co.uk (8.6.11/8.6.9) id MAA00328; Sat, 8 Jul 1995 12:08:47 GMT
Message-Id: <199507081208.MAA00328@jraynard.demon.co.uk>
Date: Sat, 8 Jul 1995 12:08:47 GMT
From: James Raynard <james@jraynard.demon.co.uk>
Reply-To: james@jraynard.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: disklabel : changes to cylinder details not saved
X-Send-Pr-Version: 3.2

>Number:         602
>Category:       i386
>Synopsis:       disklabel : changes to cylinder details not saved
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul  8 06:00:03 1995
>Closed-Date:    Sun Dec 10 19:22:28 MET 1995
>Last-Modified:  Sun Dec 10 19:25:38 MET 1995
>Originator:     James Raynard
>Release:        FreeBSD 2.0-BUILT-19950603 i386
>Organization:
None
>Environment:

Dell 433/L with Phoenix v1.10 A12 BIOS, Conner CFS420A 420MB IDE HD running
2.0.5-RELEASE.

>Description:

Hard disk is incorrectly detected as a CFA340B 340MB with 665 cylinders when 
it should be a CFS420A with 826 cylinders. On 2.0-RELEASE, this could be fixed 
by running 'disklabel -e' and editing the cylinder details. However, on 
2.0.5-RELEASE, the changes are only made to the in-core copy, even if the -r 
flag is specified. 

The same problem occurs if an entry in /etc/disktab is made and disklabel run
with '-w -r'. In both cases, displaying the disklabel without '-r' shows 826
cylinders, displaying it with '-r' shows 665. Rebooting and running fdisk 
without any arguments shows 665 as well. However, the changes to the disk and
controller type show up, so the problem seems to be with the cylinders only.

Running disklabel -W first doesn't make any difference.

>How-To-Repeat:

'disklabel -e -r wd0' and change the figures for 'cylinders' and 
'sectors/unit'. Save and run 'disklabel wd0' to observe the new values in the
in-core copy. Run 'disklabel -r wd0' to verify that the old values are still
on the disk.

Alternatively, create an entry 'cp420a' in /etc/disktab and run 
'disklabel -w -r wd0 cp420a', with the same result.

>Fix:
	
No idea, sorry - I don't have the source (not enough disk space!)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Dec 10 19:22:28 MET 1995 
State-Changed-Why:  
The submitter withdrawed his report by Nov 26, 1995: 

> [1995/07/08] i386/602      disklabel : changes to cylinder details not saved 

As the reporter of this fault, I would like to withdraw it as the 
problem does not occur (in this form) in 2.1.0-RELEASE. 

>Unformatted:


