gpart micro-how-to

Marcel Moolenaar xcllnt at mac.com
Thu Apr 2 10:43:23 PDT 2009


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.

FYI,

-- 
Marcel Moolenaar
xcllnt at mac.com





More information about the freebsd-geom mailing list