Bug 602 - disklabel : changes to cylinder details not saved
Summary: disklabel : changes to cylinder details not saved
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: i386 (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-07-08 06:00 UTC by James Raynard
Modified: 1995-12-10 18:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Raynard 1995-07-08 06:00:03 UTC
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.

Fix: 

No idea, sorry - I don't have the source (not enough disk space!)
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.
Comment 1 Joerg Wunsch freebsd_committer freebsd_triage 1995-12-10 18:22:28 UTC
State Changed
From-To: open->closed

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.