免费注册 查看新帖 |

Chinaunix

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

关于分区mke2fs问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-06 17:04 |只看该作者 |倒序浏览
]# fdisk /dev/sda

The number of cylinders for this disk is set to 7296.
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): p

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        4475    35841015   83  Linux
/dev/sda3            4476        4730     2048287+  82  Linux swap
/dev/sda4            4800        7296    20057152+  83  Linux

其中/dev/sda4是我的磁盘空间最新给分的区,准备挂载一个新的fs.

# mke2fs -j /dev/sda4
mke2fs 1.35 (28-Feb-2004)
/dev/sda4: Invalid argument passed to ext2 library while setting up superblock

出现了上述的错误,我不知道是什么原因造成的.谢谢指导

论坛徽章:
0
2 [报告]
发表于 2007-04-07 11:31 |只看该作者
今天顶 一次
实在不知道是怎么回事了

论坛徽章:
0
3 [报告]
发表于 2007-04-08 06:57 |只看该作者
你上面出現的那個錯誤好像只有logic partition拿來建立fs才會出現的錯誤。
事實上,logic partition是不能拿來建立fs的。
還是你原本是fdisk一個logic partition,後來更改他的分割區系統識別碼,而沒有重新reboot,kernel只認識到舊的資訊。
你要不要在看一下?
因為你的識別碼是83。

论坛徽章:
0
4 [报告]
发表于 2007-04-09 08:51 |只看该作者
谢谢,重新启动后再执行命令就可以了,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP