將機箱上的系統磁碟分割

在您設定系統磁碟分割區時,請使用此資訊。

在建立檔案系統之前,請使用 fdisk 公用程式,將磁碟分割。執行 fdisk 時,必須針對您要分割的磁碟,指定特殊的裝置檔案。圖 1 顯示 fdisk 公用程式不同選項的範例。
註: 如果您使用的是 子系統裝置驅動程式 (SDD),則範例中的路徑為 /dev/vpathb 而非 /dev/sdb
圖 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)
圖 2 顯示 /dev/sdb 磁碟上的主要分割區範例。
註: 如果您使用的是 SDD,則範例中的路徑為 /dev/vpathb 而非 /dev/sdb
圖 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