From owner-freebsd-questions@FreeBSD.ORG Sat Nov 13 04:29:47 2010 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 46AD01065670; Sat, 13 Nov 2010 04:29:47 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id A67AD8FC08; Sat, 13 Nov 2010 04:29:46 +0000 (UTC) Received: by wwj40 with SMTP id 40so672540wwj.31 for ; Fri, 12 Nov 2010 20:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=Im59eNuMwB7WelfiHNvsllFKflo2H5+4S1mDeLsCAWg=; b=cMFvEmIdL7BIpfFK2YtSFHvBRo2qXwOedZdqkauvNvfh8sV7mkN/DsQoX5I2pQfSdX JelGMfhm4NnyhdgnD5JXPtzkMwZUJq3aDe/opxIm/ujVLV+EcLQvKpvgx8GFYiBDRmJ3 KN7HMow2DhBgHU7KDefyLcxIXdhO3ws/3HZDs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=ANIr8kr7oWWXlzW5w0ztcrpmlO8A7fEx8WhCZ89/L7pwUGgFXIrE5pW334VX3cZtfL GlrMJwxk+eoQhU8rVxc2IvsVxFMkXUYHJRmovOXG5csZ+cSwiZ8GH056d7Gg1vuBq0YA JVdOpelNxft0Mm8VKN4z+W1AmXlFD+euQqb8k= MIME-Version: 1.0 Received: by 10.216.7.210 with SMTP id 60mr4667801wep.30.1289620928241; Fri, 12 Nov 2010 20:02:08 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Fri, 12 Nov 2010 20:02:08 -0800 (PST) In-Reply-To: <20101113030930.GB57734@pcbsd.org> References: <20101112204700.0f51550b@ukr.net> <20101113030930.GB57734@pcbsd.org> Date: Fri, 12 Nov 2010 20:02:08 -0800 X-Google-Sender-Auth: enDPpjT_PgRgUyuPG9szXw2-J4Q Message-ID: From: Garrett Cooper To: Kris Moore Content-Type: text/plain; charset=ISO-8859-1 Cc: Ivan Klymenko , freebsd-current@freebsd.org, freebsd-questions@freebsd.org, Kris Moore Subject: Re: Error 1: gpart create -s GPT ad0 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: Sat, 13 Nov 2010 04:29:47 -0000 On Fri, Nov 12, 2010 at 7:09 PM, Kris Moore wrote: > On Fri, Nov 12, 2010 at 08:47:00PM +0200, Ivan Klymenko wrote: >> Hello! People. >> >> I use the alternate installer pc-sysinstall based on FreeBSD >> 9.0-CURRENT r215176 >> When you load the virtual machine qemu disk ad0 is determined by: >> http://img573.imageshack.us/i/qemu1.png/ >> but when trying to create a section displays the following error: >> http://img80.imageshack.us/i/qemu.png/ >> Think all options for gpart are correct - what can there be a problem? >> >> Thanks! > > The gpart syntax looks correct, and ad0 is being used elsewhere in your install process successfully. Is this a fresh disk / image? Perhaps something has broken in the gpart command? According to the gpart(8) manpage, the invocation is correct. It'd be interesting to see what the log displayed yields, but before then have you tried kern.geom.debugflags=16? I did a quick scan of lib/libgeom and sys/geom, and all of the places (minus one) that returned EINVAL were due to incorrect sector size. What are you using for your disk? Thanks, -Garrett