From owner-cvs-all@FreeBSD.ORG Sun Mar 30 12:05:07 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 676DB37B4C8 for ; Sun, 30 Mar 2003 12:05:07 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DA2D43FAF for ; Sun, 30 Mar 2003 12:05:04 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 5980 invoked by uid 1000); 30 Mar 2003 20:05:05 -0000 Date: Sun, 30 Mar 2003 12:05:05 -0800 (PST) From: Nate Lawson To: Poul-Henning Kamp In-Reply-To: <10581.1048976788@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/fdisk fdisk.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 20:05:09 -0000 On Sat, 29 Mar 2003, Poul-Henning Kamp wrote: > In message , Nate Lawson writ > es: > >On Sat, 29 Mar 2003, Poul-Henning Kamp wrote: > >> Modified files: > >> sbin/fdisk fdisk.c > >> Log: > >> Use default geometry in case the device doesn't provide one: > >> 512 for sectorsize. > >> 63 for sectors. > >> 255 for heads. > >> This will mostly show up on MD(4) devices. > > > >Won't this be a problem for small devices or for int 13 booting? That's > >why we use 64 heads, 32 sectors for scsi devices < 1 GB. > > You can specify any number you like to fdisk using all the usual > ways of doing so, and you should if you want to copy the image to > some other media afterwards. Sure. My concern was for devices like USB flash disks where your defaults may not be appropriate and the info IS being written to media. Would you be willing to put in a < 1GB size check on the media to use more appropriate heads/sector values? -Nate