- 论坛徽章:
- 0
|
系统的一个分区,有1TB大小,在一次重启的时候出现检测提示,结果检测了一天多没有完成后强制重启,重启后分区不能挂载,进行了如下操作:
1.查看分区信息:dumpe2fs /dev/sdb1- root@svr-eccarc:~# dumpe2fs /dev/sdb1
- dumpe2fs 1.41.12 (17-May-2010)
- Filesystem volume name: <none>
- Last mounted on: <not available>
- Filesystem UUID: e7b8f5d1-9ff0-4fff-8d5a-261db19bad0f
- Filesystem magic number: 0xEF53
- Filesystem revision #: 1 (dynamic)
- Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
- Filesystem flags: signed_directory_hash
- Default mount options: (none)
- Filesystem state: clean with errors
- Errors behavior: Continue
- Filesystem OS type: Linux
- Inode count: 65544192
- Block count: 262145271
- Reserved block count: 13107263
- Free blocks: 190509235
- Free inodes: 65538720
- First block: 0
- Block size: 4096
- Fragment size: 4096
- Reserved GDT blocks: 961
- Blocks per group: 32768
- Fragments per group: 32768
- Inodes per group: 8192
- Inode blocks per group: 512
- Filesystem created: Sat Oct 22 15:24:22 2011
- Last mount time: Fri Feb 10 14:10:27 2012
- Last write time: Mon Feb 13 11:39:32 2012
- Mount count: 2
- Maximum mount count: 20
- Last checked: Sat Oct 22 15:24:22 2011
- Check interval: 15552000 (6 months)
- Next check after: Thu Apr 19 15:24:22 2012
- Reserved blocks uid: 0 (user root)
- Reserved blocks gid: 0 (group root)
- First inode: 11
- Inode size: 256
- Required extra isize: 28
- Desired extra isize: 28
- Journal inode: 8
- Default directory hash: half_md4
- Directory Hash Seed: 45ab3152-65cb-4a14-9c2c-c62267dcd7c4
- Journal backup: inode blocks
- dumpe2fs: Corrupt extent header while reading journal super block
复制代码 2. 使用fsck检查系统分区:fsck -r /dev/sdb1- root@svr-eccarc:~# fsck -r /dev/sdb1
- fsck from util-linux-ng 2.17.2
- e2fsck 1.41.12 (17-May-2010)
- /dev/sdb1 contains a file system with errors, check forced.
- Resize inode not valid. Recreate<y>?
- root@svr-eccarc:~#
复制代码 通过fsck输出信息发现第一个步骤可能是把原来的ext3文件系统变成了ext2,下面没有把握再往下进行了,请问各位大侠有什么好办法把ext2改回原来的ext3??
只能通过tune2fs -j /dev/sdb1吗?这个好像是要重写inode信息,这样里面的数据就没了吧,紧急啊。。。。
。 |
|