2010年06月29日 星期二 15:11
现在硬盘越来越大,越来越便宜,大硬盘已经成为潮流,如何使用大硬盘
#如果需要,此时用dd抹除硬盘内容
vodtest# dd if=/dev/zero of=/dev/da3 bs=1m count=1
#创建分区
vodtest# gpart create -s GPT da3
da3 created
#显示分区
vodtest# gpart show
=> 63 976562055 da0 MBR (466G)
63 976559157 1 freebsd [active] (466G)
976559220 2898 - free - (1.4M)
=> 0 976559157 da0s1 BSD (466G)
0 1048576 1 freebsd-ufs (512M)
1048576 8388608 2 freebsd-swap (4.0G)
9437184 69167104 4 freebsd-ufs (33G)
78604288 1048576 5 freebsd-ufs (512M)
79652864 20971520 6 freebsd-ufs (10G)
100624384 875934773 7 freebsd-ufs (418G)
=> 34 21474836413 da3 GPT (10T)
34 21474836413 - free - (10T)
#划分硬盘
vodtest# gpart add -b 34 -s 21474836413 -t freebsd-ufs da3
da3p1 added
#格式化
vodtest# newfs /dev/da3p1
=> 34 21474836413 da3 GPT (10T)
34 21474836413 1 freebsd-ufs (10T)
=> 34 21474836413 ufsid/4bc894422864bd20 GPT (10T)
34 21474836413 1 freebsd-ufs (10T)
#挂载
vodtest# mount /dev/da3 /mnt
Zeuux © 2024
京ICP备05028076号