Nowadays you should use gpart to partition the disk (fdisk/disklabel are being
overtaken by gpart since it supports GPT), newfs to format UFS[2] partitions and zpool to create ZFS filesystems.
#gpart create -s gpt
/dev/da1
#gpart add -t freebsd-ufs
/dev/da1
#newfs -U /dev/da1p1
#mkdir /data
#mkdir /data
#mount -t ufs /dev/da1p1 /data
Add in fstab
# nano /etc/fstab
/dev/da1p1 /data ufs rw 2 2
Add in fstab
# nano /etc/fstab
/dev/da1p1 /data ufs rw 2 2
Ref: https://www.freebsd.org/doc/handbook/disks-adding.html
https://amitabhkant.com/2012/03/26/adding-new-disk-in-freebsd/
No comments:
Post a Comment