Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 2010 08:40:18 +0100
From:      David DEMELIER <demelier.david@gmail.com>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: No GPT on an usb key
Message-ID:  <AANLkTin2zaTYHF_hQbfWWj=5kraXCtwUVDUBsfVgY5FG@mail.gmail.com>
In-Reply-To: <15762619@bb.ipt.ru>
References:  <AANLkTinXvDmU-z=Krr3SFc%2BqhzDOgJrfnoCHgGAu2%2Bd2@mail.gmail.com> <15762619@bb.ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/11/8 Boris Samorodov <bsam@ipt.ru>:
> 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=3D/dev/zero of=3D/dev/da0 bs=3D512 count=3D1
>> 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
>> =3D> =C2=A0 =C2=A0 =C2=A034 =C2=A015771653 =C2=A0da0 =C2=A0GPT =C2=A0(7.=
5G)
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 34 =C2=A015771653 =C2=A0 =C2=A0 =C2=A0 - fre=
e - =C2=A0(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
> =C2=A0 =C2=A0 The gpart utility uses symbolic names for common partition =
types to avoid
> =C2=A0 =C2=A0 that the user needs to know what the partitioning scheme in=
 question is
> =C2=A0 =C2=A0 and what the actual number or identification needs to be us=
ed for a par-
> =C2=A0 =C2=A0 ticular type. =C2=A0The gpart utility also allows the user =
to specify scheme-
> =C2=A0 =C2=A0 specific partition types for partition types that do not ha=
ve symbol
> =C2=A0 =C2=A0 names. =C2=A0The symbolic names currently understood are:
> ...
> =C2=A0 =C2=A0 freebsd =C2=A0 =C2=A0 =C2=A0 =C2=A0A FreeBSD partition that=
 uses the BSD disklabel to sub-
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0divi=
de the partition into file systems. =C2=A0This is a legacy
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0part=
ition type and should not be used for the APM or GPT
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sche=
mes. =C2=A0The scheme-specific types are "!165" for MBR,
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"!Fr=
eeBSD" for APM, and
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"!51=
6e7cb4-6ecf-11d6-8ff8-00022d09712b" for GPT.
> ...
> -----
>
>> device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0crypto
>> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_ELI
>> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_PART_GPT
>> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_LABEL
>> options =C2=A0 =C2=A0 =C2=A0 =C2=A0 GEOM_VOL
>
>> Do I need something that I forgot?
>
> Seems you forgot to read the manual page carefully. ;-)
>
> --
> HTH & WBR, bsam
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>

Yes, a friend tole me there is a problem. But I was sure that a
freebsd slive even on GPT will be named da0s1 but he was really sure
so I asked here and I forgot to answer.

Cheers, :-)

--=20
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin2zaTYHF_hQbfWWj=5kraXCtwUVDUBsfVgY5FG>