filesystem size和physical size of the device不匹配-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 2018202
  • 博文数量: 220
  • 博客积分: 8531
  • 博客等级: 中将
  • 技术积分: 4976
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-18 13:33
文章分类

全部博文(220)

文章存档

2017年(1)

2015年(1)

2014年(5)

2013年(6)

2012年(6)

2011年(30)

2010年(37)

2009年(53)

2008年(41)

2007年(40)

相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: linux

2009-12-24 17:35:37

    系统启动时,有两个分区检测失败,输入密码进入单用户模式。想对某一个分区做文件系统检测时,竟然有如下提示

# 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
abort<y>? 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
abort<y>? 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


阅读(4726) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图