Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2011 13:59:29 +0300
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        Kevin Oberman <kob6558@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can gpart create ntfs and FAT-32 partitions?
Message-ID:  <4E314111.6020804@gmx.com>
In-Reply-To: <CAN6yY1sVVS%2BoZ85a0DNxEz3=sUzUh3qoDehN=i3VG12PzGu8fw@mail.gmail.com>
References:  <CAN6yY1sVVS%2BoZ85a0DNxEz3=sUzUh3qoDehN=i3VG12PzGu8fw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E314111.6020804>