*GPTパーテーションのあれこれ [#v5d4f060] -GPT 作成 gpart create -s GPT ada0 gpart bootcode -b /boot/pmbr ada0 gpart add -s 128 -t freebsd-boot ada0 gpart bootcode -p /boot/gptboot -i 1 ada0 gpart add -s 290GB -t freebsd-ufs -i 2 ada0 gpart add -s 2GB -t freebsd-swap -i 3 ada0 gpart add -s 5GB -t freebsd-ufs -i 4 ada0 gpart show gpart set -a bootme -i 4 ada0 # 第4パーテーションから起動 gpart set -a bootme -i 2 ada0 # 第2パーテーションから起動 gpart set -a bootonce -i 4 ada0 # 一回だけ起動してbootmeフラグを削除 gpart delete -i 4 ada0 newfs -jU /dev/ada0p4 [[FreeBSD]]