Date: Sun, 13 Jan 2013 08:09:00 +0700 From: Erich Dollansky <erichsfreebsdlist@alogt.com> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: gpart, glabel and newfs --> what am I doing wrong Message-ID: <20130113080900.1a0045f8@X220.ovitrap.com> In-Reply-To: <alpine.BSF.2.00.1301120950120.7674@wonkity.com> References: <20130112192220.617e28b6@X220.ovitrap.com> <alpine.BSF.2.00.1301120950120.7674@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Sat, 12 Jan 2013 09:56:39 -0700 (MST) Warren Block <wblock@wonkity.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130113080900.1a0045f8>