FreeBSD 大卷 GPT 分区备忘

GPT 分区

  • 创建一个新的空的GPT
gpt create -f /dev/da5
   -f   清除MBR及分区表
  • 清除一个已经存在的非空的GPT
gpt destroy  /dev/da5
  • 将一个新的分区加入分区表
gpt add  -t ufs  /dev/da5

   -b   指定分区的开始扇区数
   -i   指定使用GPT表中的一个空闲entry,默认第一个
   -s   指定分区大小,不指定则使用全部空间
  • 从分区表删除指定分区
gpt remove [b|i|s|t] /dev/da5
  • 设定卷标
gpt label  -a  -l bigs /dev/da5
   -a   all partitions should be labeled
   -b   label the partition that starts at the given block number
   -i   label the partition with the given partition number

创建文件系统

man page: http://www.freebsd.org/cgi/man.cgi?query=newfs...

newfs -m 0 -b 32768 -f 8192 -U /dev/da5p1
mount /dev/da5p1 /raid4
  • 对独占整个磁盘的分区可以简单地执行:
newfs -U /dev/da5 
 
tech-notes/freebsd-gpt-partition.txt · 最后更改: 2007/12/28 16:25 由 blf
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki