From owner-freebsd-questions@FreeBSD.ORG Fri Dec 23 19:09:27 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 A09D8106564A for ; Fri, 23 Dec 2011 19:09:27 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA4F8FC13 for ; Fri, 23 Dec 2011 19:09:27 +0000 (UTC) Received: (qmail 37481 invoked by uid 89); 23 Dec 2011 18:42:45 -0000 Received: from localhost (HELO pop.pknet.net) (127.0.0.1) by poshta.pknet.net with ESMTP; 23 Dec 2011 18:42:45 -0000 Received: from 74.63.162.21 (SquirrelMail authenticated user fbsdq@peterk.org) by pop.pknet.net with HTTP; Fri, 23 Dec 2011 11:42:45 -0700 Message-ID: <23e2a89872f6805695ac526665c4d60f.squirrel@pop.pknet.net> In-Reply-To: <4EF4C0E4.7080902@gmail.com> References: <4EF4C0E4.7080902@gmail.com> Date: Fri, 23 Dec 2011 11:42:45 -0700 From: "Peter" To: "Johan Hendriks" User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: FreeBSD Subject: Re: gpart, modified label does not show up in /dev/gpt. 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: Fri, 23 Dec 2011 19:09:27 -0000 > Hello all. > > I just installed FreeBSD 9.0 RC2 and upgraded to 9.0 RC3. > > I used the standard GPT disk layout at install. > > Now i want to set labels for my disk, so that i can swap around disks a > little more easy. > So reading through the man page it told me to use gpart modify -i -l > > The layout is as follows: > test# gpart status > Name Status Components > da0p1 OK da0 > da0p2 OK da0 > da0p3 OK da0 > > test# gpart list | grep label > label: (null) > label: (null) > label: (null) > > Now i modified the gpart labels. > > test# gpart modify -i1 -l bootpart da0 > da0p1 modified > test# gpart modify -i2 -l rootpart da0 > da0p2 modified > test# gpart modify -i3 -l swap da0 > da0p3 modified > > Ok all looks fine. > Now lets see if i can use my labels > > test# cd /dev/gpt > /dev/gpt: No such file or directory. > > Well it does not create my labels > I did check if the labels where there > > test# gpart list | grep label > label: bootpart > label: rootpart > label: swap > > So i rebooted the machine! > But after a reboot, still no /dev/gpt. > > So why is it not creating my labels! > Am i missing a step? > > Thanks for your time. > > And before i forget, merry christmas to all, and a wonderful 2012. > > regards, > Johan Hendriks > I was going to say if you mount /dev/da0p? its /dev/gpt/label disappears, and since all the partition are mounted already [/dev/gpt/ is empty], then /dev/gpt is maybe also removed.......but /dev/gpt/bootpart is not mounted and should still show up. When you ran the 'gpart' commands, did you set the sysctl geom debug variable? [sysctl kern.geom.debugflags=17] After the reboot, are the labels still there? [gpart list | grep label] ]Peter[