From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 08:15:50 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8119616A4CE for ; Tue, 20 Apr 2004 08:15:50 -0700 (PDT) Received: from chuggalug.clues.com (chuggalug.demon.co.uk [62.49.17.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id D886E43D5A for ; Tue, 20 Apr 2004 08:15:49 -0700 (PDT) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (localhost [127.0.0.1]) by chuggalug.clues.com (8.12.10/8.12.10) with ESMTP id i3KFAD3N099363; Tue, 20 Apr 2004 15:10:13 GMT (envelope-from geoffb@chuggalug.clues.com) Received: (from geoffb@localhost) by chuggalug.clues.com (8.12.10/8.12.10/Submit) id i3KFA7Ma099360; Tue, 20 Apr 2004 15:10:07 GMT (envelope-from geoffb) Date: Tue, 20 Apr 2004 15:10:07 +0000 From: Geoff Buckingham To: Bruce Evans Message-ID: <20040420151007.GA98865@chuggalug.clues.com> References: <20040419142242.GB65324@chuggalug.clues.com> <20040419152212.GA66959@chuggalug.clues.com> <20040420124505.J1004@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040420124505.J1004@gamplex.bde.org> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: newfs_msdos behaviour change between 4.x and 5? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2004 15:15:50 -0000 On Tue, Apr 20, 2004 at 02:58:02PM +1000, Bruce Evans wrote: > > Summary: to create bootable and/or trustworthy file systems using > newfs_msdos under -current, you must now specify the correct -h, -u > and -o parameters on the command line. > Thanks, the works fine, allthough anoyingly I now realise my original scripting written early on in the 4.x life cycle had -h -u -o parameters, but i dropped them when i realised newfs_msdos worked them out for me and using the wrong values breaks things when you switch between devices with 32/63 sectors per track (Compaq/HP raid arrays/ nearley everything else) Zero seems a very poor choice of default value for the badly miss-named hidden sectors field, it is never going to be correct for any hd/flash media. Short of doing the correct thing, taking the value of sectors per track should at least work for the first partition on the disk (assuming the partition is in the correct place :-)