linux(centos 5.5) 系统磁盘不够用,新增一块硬盘sdb 在分区中出现了问题

# fdisk -l

# fdisk /dev/sdb


Command (m for help): n

Command action

e extended

p primary partition (1-4)

//创建新的扩展分区

e

Partition number (1-4): 1

First cylinder (1-13054, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-13054, default 13054):

Using default value 13054


Command (m for help): w

//格式化出现问题:

# mkfs.ext3 /dev/sdb1

mke2fs 1.41.12 (17-May-2010)

mkfs.ext3: inode_size (128) * inodes_count (0) too big for a

filesystem with 0 blocks, specify higher inode_ratio (-i)

or lower inode count (-N).

//格式化扩展分区报错,扩展分区不能格式化,要扩展分区下的逻辑分区才能格式化。

//新建逻辑分区

#fdisk /dev/sdb

Command (m for help): n

Command action

l logical (5 or over)

p primary partition (1-4)

l

First cylinder (1-13054, default 1): 1

Last cylinder, +cylinders or +size{K,M,G} (1-13054, default 13054):

Using default value 13054


Command (m for help): w

The partition table has been altered!


Calling ioctl() to re-read partition table.

Syncing disks.


//格式化ext3系统,挂载可以正常使用了

# mkfs.ext3 /dev/sdb5

mke2fs 1.41.12 (17-May-2010)

.

.

.

Writing inode tables: 680/800