对机柜中的系统磁盘进行分区

当您设置系统磁盘分区时,请使用此信息。

在创建文件系统之前,请使用 fdisk 实用程序对磁盘进行分区。运行 fdisk 时,必须指定要分区的磁盘的专用设备文件。 Figure 1 显示了 fdisk 实用程序不同选项的示例。
Note: 如果您使用的是 子系统设备驱动程序 (SDD),那么示例中的路径为 /dev/vpathb 而非 /dev/sdb
Figure 1. fdisk 实用程序不同选项的示例
# fdisk /dev/sdb

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
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 Oracle disklabel
t 				change a partitions system id
u   change display/entry units
v 				verify the partition table
w 				write table to disk and exit
x 				extra functionality (experts only)
Figure 2 显示了磁盘 /dev/sdb 上主分区的示例。
Note: 如果您使用的是 SDD,那么示例中的路径为 /dev/vpathb 而非 /dev/sdb
Figure 2. 磁盘 /dev/sdb 上主分区的示例
Command (m for help): n

Command 	action
e 				extended
p 				primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-953, default 1): Enter
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-953, default 953): Enter
Using default value 953

Command (m for help): p

Disk /dev/sdb: 64 heads, 32 sectors, 953 cylinders
Units = cylinders of 2048 * 512 bytes

	Device Boot 	Start 	End 		Blocks 	Id 	System
	/dev/sdb1 				1 953 		975856 	83		Linux