2、第一个逻辑分区编号从5开始第一次执行sudofdisk/dev/sdb,出现了Error:Unabletoopen/dev/sdb-unrecogniseddisklabel. 提示找不到磁盘标签,可以使用parted进行分区(sudoparted /dev/sdb)。Shell代码1.Command (m for help): 2.这里按m获得帮助 3.a toggle a bootable flag 将分区设置为启动区 4.b edit bsd disklabel 编辑bsd的disklabel 5.c toggle the do
3、s compatibility flag 设置该分区为dos分区 6.d delete a partition 删除分区 7.l list known partition types 列出已知的分区类型 8.m print this menu 打印帮助列表 9.n add a new partition 创建新分区 10.o create a new empty DOS partition table 11.p print the partition table查看分区信息 12.q quit without sav
4、ing changes 退出不保存 13.s create a new empty Sun disklabel 14.t change a partition's system id改变分区类型 15.u change display/entry units 16.v verify the partition table 17.w write table to disk and exit 保存退出 18.x extra functionality (experts only) 19. 20.Command (m for he
5、lp):p //查看新硬盘的分区 21.******************************************************************** 1.Disk /dev/sdb: 1000204 MB, 1000202273280 bytes 2.255 heads, 63 sectors/track, 121601 cylinders 3.Units = cylinders of 16065 * 512 = 8225280 bytes 4.Device Boot Start End Blocks Id System
6、5.******************************************************************** 6.Command (m for help):n //创建新分区 7.File system type (default ext2): ext3 //输入想使用的分区格式 8.Partition name: backup //输入分区的名字 9.First cylinder (default 0cyl): //第几个柱面,我们按照默
7、认 10.Last cylinder or +size or +sizeMB or +sizeKB (default 0cyl):+1000000M //这里我们按大小输入 即+1000000M (注意这个M为大写) 11.Warning: You requested a partition from 0cyl to 121576cyl. 12.The closest location we can manage is 1cyl to 121575cyl. Is this still 13.acceptable t