From owner-freebsd-fs@FreeBSD.ORG Tue Oct 21 08:36:18 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70BE21065725 for ; Tue, 21 Oct 2008 08:36:18 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from bene1.itea.ntnu.no (bene1.itea.ntnu.no [IPv6:2001:700:300:3::56]) by mx1.freebsd.org (Postfix) with ESMTP id 7AFA48FC29 for ; Tue, 21 Oct 2008 08:36:17 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 839A5176ADF; Tue, 21 Oct 2008 10:36:15 +0200 (CEST) Received: from carrot.studby.ntnu.no (unknown [IPv6:2001:700:300:3::184]) by bene1.itea.ntnu.no (Postfix) with ESMTP id 0B70A1769C0; Tue, 21 Oct 2008 10:36:14 +0200 (CEST) Date: Tue, 21 Oct 2008 10:36:14 +0200 From: Ulf Lilleengen To: andys Message-ID: <20081021083415.GA1571@carrot.studby.ntnu.no> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: Debian amavisd-new at bene1.itea.ntnu.no Cc: freebsd-fs@freebsd.org Subject: Re: bsdlabel partiton c error message on new install X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 08:36:18 -0000 On fre, okt 17, 2008 at 04:16:14pm +0100, andys wrote: > Hi, > > on a newly installed FreeBSD 7.0 system on a dell 1950 server I see the > following error from bsdlabel. Is there any known issues with this or is the > only reasonable explanation that I have managed to mess it up without even > knowing? :P And should I manually change the partition c to fix the prob? Is > this safe to do? > > bsdlabel -A /dev/da0s1 > # /dev/da0s1: > type: SCSI > disk: da0s1 > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 17750 > sectors/unit: 285155328 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 20971520 0 4.2BSD 2048 16384 28552 > b: 20971520 75497472 swap > c: 285153687 0 unused 0 0 # "raw" part, don't 285155328 > edit > d: 20971520 20971520 4.2BSD 2048 16384 28552 > e: 20971520 41943040 4.2BSD 2048 16384 28552 > f: 12582912 62914560 4.2BSD 2048 16384 28552 > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard system > utilities > > > thanks for any advice, Im not really confident with the FreeBSD disk > management as I havent used it much, Hello, This is completely ok. The reasons that you might get warnings like this is that fdisk tries to put the sector number on a cylinder boundary. If that means that the partition is larger than the actual disklabel size, that is ok. What would have been a problem is if the disklabel extends past the partition size! (I think the installer makes sure this does not happen). You do waste a few sectors because of this, but unless you are really interested in getting them back, I would not start bothering with it. One way to "fix" it is to do a bsdlabel -e and change c: 285153687 0 unused 0 0 to c: 285155328 0 unused 0 0 But again, it is not many sectors that is currently wasted. -- Ulf Lilleengen