Not under version control
This page was loaded from the repository but is not added under git version control. Make a commit on the Edit page to add it.new_disk
Linux
install parted
apt install parted
this will give us 'partprobe' so we can have linux rescan disks
partprobe
check out disk id
ls -lh /dev/disk/by-id
set GPT table
sudo parted /dev/disk/by-id/<disk> (parted) mklabel GPT
view disks by ID
ls /dev/disk/by-id
FreeBSD
Identify disks
camcontrol devlist
Get Last 4 Digits of SN
label=$( camcontrol identify ada0 | sed -n 's/.*serial number.*\(.\{4\}\)$/\1/p' )
Destroy Partitions
sudo gpart destroy -F ada0
Create Partition and Label
gpart create -s GPT ada0 gpart add -t freebsd-zfs -a 1m -l "$label" ada0
Create zpool
zpool create tank /dev/gpt/180H