Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 1995 07:28:10 -0500
From:      starkhome!gene@sbstark.cs.sunysb.edu (Gene Stark)
To:        regent.e-technik.tu-muenchen.de!jhs@sbstark.cs.sunysb.edu
Cc:        current@FreeBSD.org
Subject:   newfs: sectors per cylinder (4096) disagrees with disk label (36)
Message-ID:  <199502211228.HAA07946@starkhome.cs.sunysb.edu>
In-Reply-To: Julian Howard Stacey's message of Sun, 19 Feb 1995 21:45:23 %2B0100

next in thread | raw e-mail | index | archive | help
>With system after a make world from current (of Fri 18th Feb),
>While doing a:
>	cd /usr/src/etc
>	make floppies
>it blew up with
>	disklabel -w -r -B -b /usr/mdec/fdboot  -s /usr/mdec/bootfd fd0 fd1440
>	newfs -b  4096 -c 80 -f 512 -i 8192 -m 0 -o space  rfd0 fd1440
>	Warning: calculated sectors per cylinder (4096) disagrees with disk label (36)

Newfs now ignores the disklabel and uses defaults of 1 track/cyl and 4096
sectors/track.  You can override by giving explicit arguments.
However, the way the changes have been made strikes me as somewhat kludgy.
Would it be possible for newfs to do the following:

	(1)  Check /etc/disktab for info on the partition.  Use these
		parameters if available.
		(Put the 4096/1 stuff in here.)

	(2)  If /etc/disktab has no info, look at the disklabel.
		Pay attention to these parameters if available.

	(3)  If neither (1), nor (2), use the hard-coded defaults
		(4096/1).

							- Gene Stark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502211228.HAA07946>