gpart show
gpart show ada1
root@silver ~ [1]# gpart show ada2
=> 34 1465146988 ada2 GPT (699G)
34 520190 - free - (254M)
520224 511968 6 ms-basic-data (250M)
1032192 32 - free - (16K)
1032224 225248 7 vmware-vmkdiag (110M)
1257472 32 - free - (16K)
1257504 585696 8 ms-basic-data (286M)
1843200 5242880 9 vmware-vmkdiag (2.5G)
7086080 1458060942 - free - (695G)
ELIMINAR PARTICIONES EXISTENTES:
root@silver ~# gpart delete -i 6 ada2
ada2p6 deleted
root@silver ~# gpart delete -i 7 ada2
ada2p7 deleted
root@silver ~# gpart delete -i 8 ada2
ada2p8 deleted
root@silver ~# gpart delete -i 9 ada2
ada2p9 deleted
root@silver ~# gpart destroy ada2
ada2 destroyed
root@silver ~# gpart show ada2
gpart: No such geom: ada2.
CREAR SISTEMA DE ARCHIVOS:
root@silver ~ [1]# gpart create -s GPT ada2
ada2 created
root@silver ~# gpart show ada2
=> 40 1465146976 ada2 GPT (699G)
40 1465146976 - free - (699G)
root@silver ~# gpart add -t freebsd-ufs -a 1M ada2 (en lugar de ufs puede ser "freebsd-zfs")
ada2p1 added
root@silver ~# gpart show ada2
=> 40 1465146976 ada2 GPT (699G)
40 2008 - free - (1.0M)
2048 1465143296 1 freebsd-ufs (699G)
1465145344 1672 - free - (836K)
root@silver ~# newfs -U /dev/ada2p1
/dev/ada2p1: 715402.0MB (1465143296 sectors) block size 32768, fragment size 4096
using 1143 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
with soft updates
super-block backups (for fsck_ffs -b #) at:
192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, ...
root@silver ~# gpart show ada2
=> 40 1465146976 ada2 GPT (699G)
40 2008 - free - (1.0M)
2048 1465143296 1 freebsd-ufs (699G)
1465145344 1672 - free - (836K)
root@silver ~# mkdir /HD-700GB
root@silver ~ [1]# mount /dev/ada2p1 /HD-700GB
root@silver ~# ls /HD-700GB/
.snap/
y eso era, para que se monte el disco automaticamente al iniciar faltaría agregar el comando a fstab:
/dev/ada2p1 /HD-700GB ufs rw 2 2 (ó zfs si es el caso)
çç
cc:cc