免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2349 | 回复: 4
打印 上一主题 下一主题

为什么用fdisk创建的分区无法格式化? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-24 22:30 |只看该作者 |倒序浏览
[root@as3u9 root]# fdisk /dev/hda
The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
First cylinder (5068-9729, default 506: 5069
Last cylinder or +size or +sizeM or +sizeK (5069-9729, default 9729): +1024M
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

接下来格式化,出错:
[root@as3u9 root]# mke2fs ext3 /dev/hda9
mke2fs 1.32 (09-Nov-2002)
mke2fs: bad blocks count - /dev/hda9

论坛徽章:
0
2 [报告]
发表于 2007-09-24 22:32 |只看该作者
1、你需要重启,才能让内核重新读取新的分区表

2、mke2fs 命令语法错误 。改为 mke2fs -j /dev/hda9

论坛徽章:
0
3 [报告]
发表于 2007-09-24 23:58 |只看该作者
mke2fs 是专用ext2格式的,ext3格式要用mkfs 格式化,
例如,mkfs.ext3 /dev/hda12

论坛徽章:
0
4 [报告]
发表于 2007-09-25 00:11 |只看该作者
原帖由 无敌秋风 于 2007-9-24 23:58 发表
mke2fs 是专用ext2格式的,ext3格式要用mkfs 格式化,
例如,mkfs.ext3 /dev/hda12


此话不妥


  1. [root@mail src]# diff /sbin/mke2fs  /sbin/mkfs.ext3               
  2. [root@mail src]#
复制代码

论坛徽章:
0
5 [报告]
发表于 2007-09-25 17:30 |只看该作者
有学会了,.....................
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP