免费注册 查看新帖 |

Chinaunix

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

filesystem size和physical size of the device不匹配 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-24 17:35 |只看该作者 |倒序浏览
    系统启动时,有两个分区检测失败,输入密码进入单用户模式。想对某一个分区做文件系统检测时,竟然有如下提示
               
               
                # fsck.ext3  /dev/sda10
e2fsck 1.35 (28-Feb-2004)
The filesystem size (according to the superblock) is 14821962 blocks
The physical size of the device is 14813930 blocks
Either the superblock or the partition table is likely to be
Aborty>? yes
#
    这就奇怪了,文件系统的块大小比物理设备大。要是有逻辑卷还可以解释,是逻辑卷缩小了,文件系统没变化。但是物理分区怎么会出现这种情况?
    在网上还是有相关的问题,只要输入no,就可以继续检测,并且需要用resize2fs重新检查一下文件系统即可。
nteresting. I changed the PASS value to 0 in /etc/fstab for /dev/md0, and the system booted up normally. (As expected, since fsck skipped scanning the array).
However, I changed the PASS value back to 2, and then the UUID=xxx to /dev/md0. I got a new error on boot:
/dev/md0: The filesystem size (according to the superblock) is 48839600 blocks
The physical size of the device is 48839584 blocks
Either the superblock or the partition table is likely to be
/dev/md0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e. without -a or -p options)
fsck died with exit status 4
...
* File system check failed.
I guess the filesystems did not get resized with the partitions somehow? So I ran the commands:
$ sudo e2fsck -f /dev/md0
e2fsck 1.39 (29-May-2006)
The filesystem size (according to the superblock) is 48839600 blocks
The physical size of the device is 48839584 blocks
Either the superblock or the partition table is likely to be
Aborty>? no
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/md0: 438/24428544 files (5.9% non-contiguous), 1200621/48839600 blocks
$ sudo resize2fs /dev/md0
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/md0 to 48839584 (4k) blocks.
The filesystem on /dev/md0 is now 48839584 blocks long.
This resized the filesystem I guess. My system now boots


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43502/showart_2130015.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP