LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2316|回复: 25

最近碰到的一件趣事

[复制链接]
发表于 2004-12-11 16:32:34 | 显示全部楼层 |阅读模式
我用windows的分区魔术师去resize我的gentoo根分区(gentoo下的GNU parted不支持ext3格式,而且即使支持,parted也会说strange layout! not supported (yet);-<),进行到20%的时候,就死掉了(分区魔术师真是垃圾)。
重启机器,进入gentoo,fsck被强迫进行,找到了很多duplicated/bad inode和其他的错误,修复过后,一切恢复正常,成功登录。但是奇怪的事情(也是意料之中;-)发生了,使用fdisk来查看根分区容量,发现少了200多M的空间(和df结果对比),难道这就是经典的分区魔术师后遗症?——那就是虽然分区表好像没有错,但实际显示却少了容量。听说是分区魔术师会把在失败前处理过的分区空间隐藏起来但却不会修改分区表~~~所以fsck、parted被这种后遗症蒙骗了,帮不上忙

以前我也碰到过这类问题,那时候是低级格式化整个硬盘。但现在的数据很多,又没有备用盘,恐怕不能这样做。

分区表没有错,但哪里错了呢?呵呵~~~~~有趣的事情。
发表于 2004-12-11 16:50:49 | 显示全部楼层
PM和fdisk不要混用,要不然出了問題哭都?聿患鞍。
parted不支持ext3? 這倒是奇怪了。是不是用法不對?http://www.gnu.org/software/part ... arted_toc.html#TOC8
 楼主| 发表于 2004-12-11 17:27:06 | 显示全部楼层
最初由 kohno 发表
PM和fdisk不要混用,要不然出了問題哭都?聿患鞍。
parted不支持ext3? 這倒是奇怪了。是不是用法不對?http://www.gnu.org/software/part ... arted_toc.html#TOC8

没有混用。
只是用fdisk -l和df来查看分区容量而已。

在Windows下看到的容量和Linux看到的容量是有差值的。

parted在编译时就应该指定参数,并且装了依赖库才可以支持ext3的。但gentoo默认的ebuild没有。

重新格式化分区应该可以解决问题了~~~~
发表于 2004-12-11 17:58:55 | 显示全部楼层

回复: 最近碰到的一件趣事

最初由 home_king 发表
我用windows的分区魔术师去resize我的gentoo根分区(gentoo下的GNU parted不支持ext3格式,而且即使支持,parted也会说strange layout! not supported (yet);-<),进行到20%的时候,就死掉了(分区魔术师真是垃圾)。
重启机器,进入gentoo,fsck被强迫进行,找到了很多duplicated/bad inode和其他的错误,修复过后,一切恢复正常,成功登录。但是奇怪的事情(也是意料之中;-)发生了,使用fdisk来查看根分区容量,发现少了200多M的空间(和df结果对比),难道这就是经典的分区魔术师后遗症?——那就是虽然分区表好像没有错,但实际显示却少了容量。听说是分区魔术师会把在失败前处理过的分区空间隐藏起来但却不会修改分区表~~~所以fsck、parted被这种后遗症蒙骗了,帮不上忙

以前我也碰到过这类问题,那时候是低级格式化整个硬盘。但现在的数据很多,又没有备用盘,恐怕不能这样做。

分区表没有错,但哪里错了呢?呵呵~~~~~有趣的事情。
教主真是明察秋毫,少了200M都看的出来
我要少了超过1G才会发觉不对劲:p :p
 楼主| 发表于 2004-12-11 19:53:49 | 显示全部楼层
系统上已经装有e2fsprogs,满足了parted的软件依赖,为什么最新版本的parted还不能支持ext3呢?奇怪。
发表于 2004-12-11 20:02:05 | 显示全部楼层
I think it is sort of front-end and back-end dependencies.  Just like k3b, xcdroast, they are both front-end UI, only cdrecord is the true piece of software (back-end) to do the CD writing job.

Well, I do not against this philosophy.  Why re-inventing the wheel when someone else already done the hard job?
 楼主| 发表于 2004-12-11 20:33:44 | 显示全部楼层
最初由 d00m3d 发表
I think it is sort of front-end and back-end dependencies.  Just like k3b, xcdroast, they are both front-end UI, only cdrecord is the true piece of software (back-end) to do the CD writing job.

Well, I do not against this philosophy.  Why re-inventing the wheel when someone else already done the hard job?

What I want parted is not to format some partition with ext3. Moreover, according to parted's doc parted can resize the partition with ext3 format! Parted is not a front-end of its dependent softwares such as e2fsprogs, libreiserfs! Dependency is not equal to _INTERFACE_, I think.

How to resize? Help me.
发表于 2004-12-11 21:42:51 | 显示全部楼层
教主, I am sorry for my poor analogy.  I don't mean parted is a front-end of e2fsprogs but parted does rely on e2fsprogs.

I am sorry I cannot offer much help.  I do not have experience on the low level parted.  My previous experience on partition resize was done long ago with QTparted (this time, a true front-end/back-end relationship).

I booted up the SystemRescueCD and did it under GUI.  I chose SystemRescueCD because it included everything the system needed and I did not need to care about what to install.  In fact, I believe it is more safe to do the resize in an isolated environment.
发表于 2004-12-11 22:09:09 | 显示全部楼层
doom3d是不是在gzeasy显卡版那位大侠啊??:)
发表于 2004-12-12 00:38:48 | 显示全部楼层
最初由 home_king 发表
parted在编译时就应该指定参数,并且装了依赖库才可以支持ext3的。但gentoo默认的ebuild没有。

这个似乎不只是gentoo的问题,我试过knoppix里的parted也不支持ext3。
建议你试一下ext2resize,这贴可以参考一下:http://gentoo-wiki.com/HOWTO_Ins ... izing_the_Partition
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表