gpart micro-how-to

Andriy Gapon avg at icyb.net.ua
Thu Apr 2 10:51:48 PDT 2009


on 02/04/2009 20:43 Marcel Moolenaar said the following:
> 
> On Apr 2, 2009, at 5:09 AM, Andriy Gapon wrote:
> 
>> # the following are disklabel substitutes: create empty labels, then
>> add ufs
>> # partition ad10s1a, swap partition ad10s1b and partition ad10s2d of type
>> # "unknown"/FS_OTHER/10 for future use by zfs
> 
> The BSD scheme has a type for ZFS:
>     #define FS_ZFS 27 /* Sun's ZFS */
> 
> You should be able to say:
> 
>     gpart create -s bsd ad10s2
>     gpart add -i 4 -b 16 -s 964194257 -t freebsd-zfs ad10s2
> 
> This has been MFC'd it to 7-stable slightly more than a year
> ago.

Thank you very much!
Stupid me was looking in src/sbin/bsdlabel, not in sys/sys/disklabel.h.

-- 
Andriy Gapon


More information about the freebsd-geom mailing list