RHEL5.4 命令行分区
# fdisk /dev/hda >>磁盘分区命令
Command (m for help): m >>这里输入“m”
Command action
a toggle a bootable flag >>切换一个启动标志
b edit bsd disklabel >>编辑BSD的磁盘卷标
c toggle the dos compatibility flag >>切换DOS兼容标志
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 >>创建一个新的空DOS分区表
p print the partition table >>分区表打印
q quit without saving changes >> 退出不保存更改
s create a new empty Sun disklabel >> 创建一个新的sun的磁盘标签
t change a partition's system id >>改变一个分区的系统ID
u change display/entry units >>更改显示/输入单位
v verify the partition table >>验证分区表
w write table to disk and exit >> 写入磁盘并退出
x extra functionality (experts only) >>额外的功能(仅限专家)
Command (m for help): n >>选择“n”创建分区
Command action
e extended >>选择“e”创建扩展分区
p primary partition (1-4) >>创建主分区
e
selected partition 4
First cylinder (1416-3916, default 1416): >>按Enter键
Using default value 1416
Last cylinder or +size or +sizeM or +sizeK (1416-3916, default 3916): >>按Enter键
Using default value 3916
command (mfor help): n >>创建逻辑分区
First cylinder (1416-3916, default 1416): >>>>按Enter键
Using default value 1416
Last cylinder or +size or +sizeM or +sizeK (1416-3916, default 3916):+100M >>划分了一个100M大小的分区
command (mfor help): n >>创建逻辑分区
First cylinder (1416-3916, default 1416): >>>>按Enter键
Using default value 1416
Last cylinder or +size or +sizeM or +sizeK (1416-3916, default 3916):+1G >>划分了一个1G大小的分区
command (mfor help): w >>保存退出