文章目录
fdisk
-
fdisk 主要用于对磁盘分区和查看磁盘使用情况
-
语法:
fdisk (选项) 磁盘
-b <大小> 扇区大小(512,1024,2048,4096)
-c[=<模式>] 兼容模式:“dos”或“nondos”(默认)
-h 打印此帮助文本
-u[=<单位>] 显示单位:“cylinders”(柱面)“sectors”(扇区,默认)
-v 打印程序版本
-C <数字> 指定柱面数
-H <数字> 指定磁头数
-S <数字> 指定每个磁道的扇区数
[root@localhost ~]# fdisk /dev/sdb
输入 m 列出可以执行的命令
command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition