linux新增磁盘分区时出现问题-150
2015-12-16 09:51
399 查看
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
# 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
相关文章推荐
- Linux socket 初步
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝
- vivi下重新调整分区