From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 03:56:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C17931065673 for ; Thu, 1 Dec 2011 03:56:03 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5D3878FC14 for ; Thu, 1 Dec 2011 03:56:03 +0000 (UTC) Received: by eaai12 with SMTP id i12so2246108eaa.13 for ; Wed, 30 Nov 2011 19:56:02 -0800 (PST) Received: by 10.216.179.142 with SMTP id h14mr212829wem.1.1322711762234; Wed, 30 Nov 2011 19:56:02 -0800 (PST) Received: from dfleuriot.local (angel.c-mal.com. [82.241.189.111]) by mx.google.com with ESMTPS id d17sm4427927wbh.19.2011.11.30.19.56.00 (version=SSLv3 cipher=OTHER); Wed, 30 Nov 2011 19:56:00 -0800 (PST) Message-ID: <4ED6FACF.1070908@my.gd> Date: Thu, 01 Dec 2011 04:55:59 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20182.39340.354254.608836@jerusalem.litteratus.org> <20182.63924.526118.602623@jerusalem.litteratus.org> In-Reply-To: <20182.63924.526118.602623@jerusalem.litteratus.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: problem formating disk with gpart X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 03:56:03 -0000 On 12/1/11 4:51 AM, Robert Huff wrote: > > I'm not sure how, but I have achieved this: > >>> gpart show ad1 > => 34 976773101 ad1 GPT (465G) > 34 976773101 1 freebsd-ufs (465G) > > ... which is correct, except for the size. > I have a new problem: > >>> newfs /dev/ad1p1 > newfs: wtfs: 512 bytes at sector 976773100: Input/output error > You're trying to create a 460gb file system on a 80gb drive. When newfs reaches the drive's boundary and attempts to write to the next sector, it tries to divide by 0 and gets slapped back 9000 years in time by Chuck Norris. Try this: gpart delete -i 1 gpart create -s 78g -i 1 -t freebsd-ufs /dev/ad1 Then try to newfs -U it.