From owner-freebsd-current Tue Feb 21 19:53:21 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id TAA23809 for current-outgoing; Tue, 21 Feb 1995 19:53:21 -0800 Received: from sbstark.cs.sunysb.edu (sbstark.cs.sunysb.edu [130.245.1.47]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id TAA23802 for ; Tue, 21 Feb 1995 19:53:17 -0800 Received: from starkhome.UUCP (root@localhost) by sbstark.cs.sunysb.edu (8.6.9/8.6.9) with UUCP id WAA28677 for current@freebsd.org; Tue, 21 Feb 1995 22:49:58 -0500 Received: by starkhome.cs.sunysb.edu (8.6.9/1.34) id HAA07946; Tue, 21 Feb 1995 07:28:10 -0500 Date: Tue, 21 Feb 1995 07:28:10 -0500 From: starkhome!gene@sbstark.cs.sunysb.edu (Gene Stark) Message-Id: <199502211228.HAA07946@starkhome.cs.sunysb.edu> To: regent.e-technik.tu-muenchen.de!jhs@sbstark.cs.sunysb.edu Cc: current@FreeBSD.org In-reply-to: Julian Howard Stacey's message of Sun, 19 Feb 1995 21:45:23 +0100 Subject: newfs: sectors per cylinder (4096) disagrees with disk label (36) Sender: current-owner@FreeBSD.org Precedence: bulk >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