Date: Mon, 08 Nov 2010 10:20:52 +0300 From: Boris Samorodov <bsam@ipt.ru> To: David DEMELIER <demelier.david@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: No GPT on an usb key Message-ID: <15762619@bb.ipt.ru> In-Reply-To: <AANLkTinXvDmU-z=Krr3SFc%2BqhzDOgJrfnoCHgGAu2%2Bd2@mail.gmail.com> (David DEMELIER's message of "Thu, 28 Oct 2010 09:52:55 %2B0200") References: <AANLkTinXvDmU-z=Krr3SFc%2BqhzDOgJrfnoCHgGAu2%2Bd2@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
Hi,
On Thu, 28 Oct 2010 09:52:55 +0200 David DEMELIER wrote:
> I'm trying to put on my USB mass storage device a GPT scheme
> partitions. But gpart still add them as slices :
> To be sure to remove the MBR before I dd'ed it
> $ sudo dd if=/dev/zero of=/dev/da0 bs=512 count=1
> 1+0 records in
> 1+0 records out
> 512 bytes transferred in 0.003369 secs (151970 bytes/sec)
> $ sudo gpart create -s GPT da0
> da0 created
> $ gpart show da0
> => 34 15771653 da0 GPT (7.5G)
> 34 15771653 - free - (7.5G)
> $ sudo gpart add -b 34 -t freebsd da0
> da0s1 added
> Why it is still s1? In my kernel config I have this :
GPART(8) may be a good start here. Ex.:
-----
...
PARTITION TYPES
The gpart utility uses symbolic names for common partition types to avoid
that the user needs to know what the partitioning scheme in question is
and what the actual number or identification needs to be used for a par-
ticular type. The gpart utility also allows the user to specify scheme-
specific partition types for partition types that do not have symbol
names. The symbolic names currently understood are:
...
freebsd A FreeBSD partition that uses the BSD disklabel to sub-
divide the partition into file systems. This is a legacy
partition type and should not be used for the APM or GPT
schemes. The scheme-specific types are "!165" for MBR,
"!FreeBSD" for APM, and
"!516e7cb4-6ecf-11d6-8ff8-00022d09712b" for GPT.
...
-----
> device crypto
> options GEOM_ELI
> options GEOM_PART_GPT
> options GEOM_LABEL
> options GEOM_VOL
> Do I need something that I forgot?
Seems you forgot to read the manual page carefully. ;-)
--
HTH & WBR, bsam
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15762619>
