FreeBSD Format and Partition

From Free Knowledge Base- The DUCK Project
Revision as of 13:34, 4 December 2020 by Admin (talk | contribs) (Created page with "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 g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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