歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下的分區工具(3)

Linux下的分區工具(3)

日期:2017/2/25 10:35:17   编辑:Linux教程
Command (m for help): p #打印/查看已有的分區表

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000e25d9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 382 3068383+ 83 Linux
/dev/sda2 383 509 1020127+ 83 Linux
/dev/sda3 510 636 1020127+ 82 Linux swap / Solaris
Command (m for help): n #開始增加新的分區
Command action
e extended #擴展分區
p primary partition (1-4) #主分區,一塊硬盤中可以有4個主分區
#例如:XP下C盤為主分區,DEF為邏輯分區(DEF合起來就是擴展分區)
e #增加擴展分區
Selected partition 4 #分區4作為擴展分區,分區4開始是未分配空閒空間
First cylinder (637-1044, default 637):
Using default value 637 #分區的開頭,1044是塊結尾
Last cylinder or +size or +sizeM or +sizeK (637-1044, default 1044):
#也可在這裡直接輸入想要建立分區的大小,比如+5000MB,表示建立5000MB大小的分區
Using default value 1044 #分區的結尾
Command (m for help): n #建立完擴展分區,然後建立邏輯分區
First cylinder (637-1044, default 637):
Using default value 637
Last cylinder or +size or +sizeM or +sizeK (637-1044, default 1044):
Using default value 1044
Command (m for help): p #建立完了邏輯分區,打印/查看
#可以看到增加了一個分區,邏輯分區是建立在擴展分區上的
Copyright © Linux教程網 All Rights Reserved