df 显示系统中文件系统和磁盘信息,可以用 df --help查看参数使用
fdisk -l 会把磁盘信息显示的更加清楚
对磁盘分区:
fdisk /dev/dfa
显示磁盘的信息,然后显示命令行:
Command (m for help):
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
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
fdisk -l 会把磁盘信息显示的更加清楚
对磁盘分区:
fdisk /dev/dfa
显示磁盘的信息,然后显示命令行:
Command (m for help):
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
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit