From owner-freebsd-questions@FreeBSD.ORG Sat Dec 4 07:40:19 2010 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 DA0B2106564A for ; Sat, 4 Dec 2010 07:40:19 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by mx1.freebsd.org (Postfix) with ESMTP id 7DEB58FC15 for ; Sat, 4 Dec 2010 07:40:19 +0000 (UTC) Received: by gxk28 with SMTP id 28so5465393gxk.17 for ; Fri, 03 Dec 2010 23:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ImXVZWw/9FPHngFxR+dNXa8nsscHbGe+qnVIBMsYnD0=; b=ML87pwFPhcV7tse4VtE5G1BdJpghmevq2JzyxkCRDIADsE+HV4ezDChtR9K3Dk7tPG g7V71cObrnPHUc0uX63kOYB2vWubG3XzxaJI+IyS+uEs0tU6jpmGFLK6jwP1hQ3YDF/e dIkLI1MC+4Qpn0EMjgHO+BYuBmhwLJuVOK+K8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LYIEU+nvANL9b+beG826DaNW9/QGjVcBkycE3p7dsq2CZO3KtBffo7OG7WWW88NC/0 hQDGi/goQfxceaW/uLr7g2qFzgCa2lfui2FQxlm1awprVzMlfvPnxeAcnxalDlQxtj50 AbFCfF2BmmgVb49DkF/t2RGQojWTWl+5S+M9U= MIME-Version: 1.0 Received: by 10.91.45.4 with SMTP id x4mr4456256agj.77.1291448418305; Fri, 03 Dec 2010 23:40:18 -0800 (PST) Received: by 10.90.73.18 with HTTP; Fri, 3 Dec 2010 23:40:18 -0800 (PST) In-Reply-To: <15762619@bb.ipt.ru> References: <15762619@bb.ipt.ru> Date: Sat, 4 Dec 2010 08:40:18 +0100 Message-ID: From: David DEMELIER To: Boris Samorodov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: No GPT on an usb key 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: Sat, 04 Dec 2010 07:40:19 -0000 2010/11/8 Boris Samorodov : > 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