Wednesday, August 7, 2013

Formatting a USB drive in FreeBSD

Create 1 slice covering the entire disk:
# fdisk -I /dev/devN

Create 1 partition covering the entire slice:
# bsdlabel -w devNs1

Create a filesystem on the "a" partition (soft-updates enabled):
# newfs -U /dev/devNs1a
Example for a device recognized as da0
# fdisk -I /dev/da0
# bsdlabel -w da0s1
# newfs -U /dev/da0s1a

No comments:

Post a Comment