- 论坛徽章:
- 0
|
本帖最后由 whoiswhoz 于 2010-06-04 10:51 编辑
[root@localhost ~]# cat /cd/v1/aaa
vcnuiznvkjqr
[root@localhost ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 6321524 4398020 1602208 74% /
none 79228 0 79228 0% /dev/shm
/dev/mapper/testshotsanp-v1
99150 5655 88375 7% /cd/v1
[root@localhost ~]# umount /dev/testshotsanp/v1
[root@localhost ~]# mkfs.ext3 -n /dev/testshotsanp/v1 ##模拟格式化 查看超级块的位置
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
25688 inodes, 102400 blocks
5120 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
13 block groups
8192 blocks per group, 8192 fragments per group
1976 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
[root@localhost ~]# fsck.ext3 -b 8193 /dev/testshotsanp/v1 ##利用超级块修复
e2fsck 1.35 (28-Feb-2004)
/dev/testshotsanp/v1 was not cleanly unmounted, check forced.
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
Free blocks count wrong for group #0 (3557, counted=3567).
Fix<y>? yes
Free blocks count wrong for group #1 (7685, counted=7684).
Fix<y>? yes
Free blocks count wrong (93486, counted=93495).
Fix<y>? yes
Free inodes count wrong for group #0 (1965, counted=1964).
Fix<y>? yes
Free inodes count wrong (25677, counted=25676).
Fix<y>? yes
/dev/testshotsanp/v1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/testshotsanp/v1: 12/25688 files (16.7% non-contiguous), 8905/102400 blocks
[root@localhost ~]# mount /dev/testshotsanp/v1 /cd/v1/
[root@localhost ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 6321524 4398020 1602208 74% /
none 79228 0 79228 0% /dev/shm
/dev/mapper/testshotsanp-v1
99150 5655 88375 7% /cd/v1
[root@localhost ~]# cat /cd/v1/
aaa lost+found/
[root@localhost ~]# cat /cd/v1/
aaa lost+found/
[root@localhost ~]# cat /cd/v1/aaa
vcnuiznvkjqr
这样可以吗?LZ前备份啊
参考:http://it.china-b.com/linux/xtgl/20090601/38485_1.html
http://www.enet.com.cn/article/2008/0311/A20080311178982.shtml
http://www.cnblogs.com/xuczhang/archive/2010/02/24/1672533.html |
|