FreeBSD Format and Partition

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 14:34, 4 December 2020 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

All FreeBSD 9.0 and later installations come with GPT. You can use gpart(8) instead of the classic fdisk(8) and disklabel(8).

To remove existing partitions from a drive

gpart delete


gpart show

gpart recover vtbd0

gpart add -t freebsd-ufs -b BEGIN -s SIZE GEOM

gpart add -t freebsd-ufs -b 20971682 -s 18874240 vtbd0

newfs -U /dev/vtbd0p4

mkdir /transip

mount /dev/vtbd0p4 /transip

mount /dev/vtbd0p4 /transip