From owner-freebsd-questions@FreeBSD.ORG Sun Jan 13 01:09:14 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9CF40477 for ; Sun, 13 Jan 2013 01:09:14 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id E617AB8 for ; Sun, 13 Jan 2013 01:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=Tz9qNzsIua9k8D8c/jIxKYJzaGpwtjTSTAR4JO2HlRM=; b=m0OwjMohNkiqcrxxbyg1zS7G7nsoYXx115BGlj6M8//JtFovxJaMWZ3ronYW2qwLyZuFxf2jaBmt5A5lRHn8J4P4+eSoy3aE0O4ehCBLbn9F8k6c4TWGGOTFTcdhbTtT; Received: from [125.163.96.175] (port=27077 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1TuC4O-002LK3-Va; Sat, 12 Jan 2013 18:09:05 -0700 Date: Sun, 13 Jan 2013 08:09:00 +0700 From: Erich Dollansky To: Warren Block Subject: Re: gpart, glabel and newfs --> what am I doing wrong Message-ID: <20130113080900.1a0045f8@X220.ovitrap.com> In-Reply-To: References: <20130112192220.617e28b6@X220.ovitrap.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 01:09:14 -0000 Hi, On Sat, 12 Jan 2013 09:56:39 -0700 (MST) Warren Block wrote: > On Sat, 12 Jan 2013, Erich Dollansky wrote: > > > in general, I try to create the partitions with gpart, add a label > > with glabel and put a filesystem. I think that I am doing something > > very simple the wrong way but I cannot see the error. > > > > I try to do it in the following way: > > > > # gpart destroy -F da0 > > # gpart create -s GPT da0 > > # gpart add -t freebsd-boot -s 64k da0 > > # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0 > > # gpart add -t freebsd-ufs -s 512m -a 4k -l Toshiba16GB2boot da0 > > # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2root da0 > > # gpart add -t freebsd-swap -s 10m -a 4k -l Toshiba16GB2swap da0 > > # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2var da0 > > # gpart add -t freebsd-ufs -s 10m -a 4k -l Toshiba16GB2tmp da0 > > # gpart add -t freebsd-ufs -a 4k -l Toshiba16GB2usr da0 > > > > Label the partitions: > > > > # glabel label Toshiba16GB2boot /dev/da0p2 > > # glabel label Toshiba16GB2root /dev/da0p3 > > # glabel label Toshiba16GB2swap /dev/da0p4 > > # glabel label Toshiba16GB2var /dev/da0p5 > > # glabel label Toshiba16GB2tmp /dev/da0p6 > > # glabel label Toshiba16GB2usr /dev/da0p7 > > There is no need for all this. You already created GPT labels with > 'gpt -l' above. And those labels don't need extra metadata at the > end of the partition. > For what is glabel then still good? > And consider using -U with newfs. Do not worry, this was just for the test. Erich