From owner-freebsd-questions@FreeBSD.ORG Thu Jul 28 10:59:43 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 B44AA106566B for ; Thu, 28 Jul 2011 10:59:43 +0000 (UTC) (envelope-from nvass@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 0A4E68FC12 for ; Thu, 28 Jul 2011 10:59:42 +0000 (UTC) Received: (qmail invoked by alias); 28 Jul 2011 10:59:41 -0000 Received: from adsl-160.79.107.78.tellas.gr (EHLO [192.168.73.192]) [79.107.78.160] by mail.gmx.com (mp-eu005) with SMTP; 28 Jul 2011 12:59:41 +0200 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1/RVtZjYH3RZqgXTZhprzbukwyzMQrpFhyWUv+3S8 gpLIZ/ZQKh4dqZ Message-ID: <4E314111.6020804@gmx.com> Date: Thu, 28 Jul 2011 13:59:29 +0300 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Kevin Oberman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-questions@freebsd.org Subject: Re: Can gpart create ntfs and FAT-32 partitions? 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: Thu, 28 Jul 2011 10:59:43 -0000 On 7/28/2011 7:55 AM, Kevin Oberman wrote: > I want to create a GPT disk structure that has the following partitions: > MBR > NTFS (1.2G) > NTFS (200G) > FreeBSD OS (250G) > NTFS (15G) > FAT-32 (100G) (needs to be RW for W7 and FreeBSD and ntfs-3g is just > not stable enough) > FreeBSD data only (380G) > > The NTFS partitions are to place the Windows7 system, recovery > partition (which I may > not use), and Lenovo's odd "SYSTEM_DRV" that is required for booting. > gpart has no > indications of how to create an NTFS or FAT partition. Any way to so > this? Or, should I > use W7 to do that and leave the space for the FreeBSD ones? No, you can do this with gpart. gpart knows the following MS related GUIDs. The types you need to use in -t are ms-basic-data, ms-ldm-data etc. > { "ms-basic-data", G_PART_ALIAS_MS_BASIC_DATA }, > { "ms-ldm-data", G_PART_ALIAS_MS_LDM_DATA }, > { "ms-ldm-metadata", G_PART_ALIAS_MS_LDM_METADATA }, > { "ms-reserved", G_PART_ALIAS_MS_RESERVED }, > { "ntfs", G_PART_ALIAS_MS_NTFS }, I don't know which partition types you should use for the wanted partitioning scheme. The struct that defines the known gpart GUIDs is in /sys/geom/part/g_part.c at line 69(on HEAD). HTH, Nikos