Subject: bin/3263: Newfs and mount_mfs complain about valid geometries
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Ian.Dall@dsto.defence.gov.au>
List: netbsd-bugs
Date: 02/27/1997 13:23:57
>Number:         3263
>Category:       bin
>Synopsis:       Newfs and mount_mfs complain about valid geometries
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 26 19:05:06 1997
>Last-Modified:
>Originator:     Ian Dall
>Organization:
>Release:        NetBSD 1.2
>Environment:
	

>Description:
	
newfs and mount_mfs complain if the disklabel has sectors/track,
tracks/cylinder and sectors/cylinder such that sectors/track *
tracks/cylinder is greater than sectors/cylinder.
Further more, it doesn't just complain, it ignores the sectors/cylinder
parameter.

This combination of parameters is normal for many modern disks which
have spare sectors at the end of each cylinder rather than at the end
of each track.

>How-To-Repeat:
	
A geometry known to cause this problem is 65 sec/track, 11 tracks/cyl,
711 sec/cyl.


>Fix:
	
A work around is to use the -x option to newfs. However, this is not ideal
because fsck doesn't know the -x option was used when it calculates
alternate super blocks. Also -x is not a valid option to mount_mfs.
Newfs, mount_mfs and fsck should believe the sectors/track parameter in
the disklabel.
>Audit-Trail:
>Unformatted: