I'm trying to format my external disk with ZFS filesystem. I've search and found several guides using different tools. Since sysutils/gpart is used in handbook, it seems FreeBSD prefer it than other tools. So, I'd like to know what's the difference and I'd like to make sure the commands I used are correct.
Are those two sets of commands have the same functionality? What are the differences?
Update - 1:
Code:
# dd < /dev/zero > /dev/da0 count=1
# fdisk -I /dev/da0
# glabel label mydisk da0s1
# zpool create mydisk /dev/label/mydisk
Code:
# gpart destroy -F da0
# gpart create -s GPT da0
# glabel label mydisk da0p1
# gpart add -t freebsd-zfs -a 1M -l mydisk da0
# zpool create mydisk /dev/label/mydisk
Are those two sets of commands have the same functionality? What are the differences?
Update - 1:
glabel
command is added in the second set.