红联Linux门户
Linux帮助

用fdisk分区失败,求解惑!(内含详细出错信息)

发布时间:2013-05-20 15:43:21来源:红联作者:行而尚学
下面这段是我运行fdisk之后,首先用p查看当前分区表,然后在n建立新分区(失败)的过程。
fangmeng@cs-fang:~$ sudo fdisk /dev/sda

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x205f205e

Device Boot Start End Blocks Id System
/dev/sda1 * 63 104872319 52436128+ 7 HPFS/NTFS/exFAT
Partition 1 does not start on physical sector boundary.
/dev/sda2 104873984 362921983 129024000 7 HPFS/NTFS/exFAT
/dev/sda3 362921984 620969983 129024000 7 HPFS/NTFS/exFAT
/dev/sda4 620972030 892000255 135514113 f W95 Ext'd (LBA)
Partition 4 does not start on physical sector boundary.
/dev/sda5 620972032 696063999 37545984 7 HPFS/NTFS/exFAT
/dev/sda6 696066048 696494079 214016 83 Linux
/dev/sda7 696496128 798056447 50780160 83 Linux
/dev/sda8 798058496 841025535 21483520 83 Linux
/dev/sda9 841027584 862509055 10740736 83 Linux
/dev/sda10 862511104 892000255 14744576 82 Linux swap / Solaris

Command (m for help): n
All primary partitions are in use
Adding logical partition 11
No free sectors available
--------------------------------------------------------------------------------------------------------------------------------------------------------------
根据报错的信息,似乎要让我建立一个扩展分区后再添加逻辑分区。但接下来是我的困惑:
[size=6]我已经有了10个分区了,所以我必然已经有了扩展分区了(如果没有最多只能建立四个分区)。既然如此,为何增加新的分区会失败呢?[/size]
文章评论

共有 3 条评论

  1. 相思爱文 于 2013-05-21 13:51:52发表:

    已经建立四个分区了,
    /dev/sda1 * 63 104872319 52436128+ 7 HPFS/NTFS/exFAT
    Partition 1 does not start on physical sector boundary.
    /dev/sda2 104873984 362921983 129024000 7 HPFS/NTFS/exFAT
    /dev/sda3 362921984 620969983 129024000 7 HPFS/NTFS/exFAT
    /dev/sda4 620972030 892000255 135514113 f W95 Ext'd (LBA)
    其中第四个/dev/sda4 为扩展分区,开始位置620972030 结束位置892000255
    /dev/sda5至/dev/sda10为扩展分区中的逻辑分区,开始位置620972030 结束位置892000255
    扩展分区的空间已经分配满了,没有自由空间了,不能再新建逻辑分区。

    主分区最多四个已经分完,逻辑分区个数还可以添加,但没有自由空间,所以增加不了。
    可以删除部分逻辑分区,然后再建立多个相对较小的分区。

  2. chenhao0118 于 2013-05-20 20:30:07发表:

    谢谢楼主分享,这个蛮有用

  3. cdyemail 于 2013-05-20 20:14:01发表:

    没空间分配了。