linux磁盘容量变为64Z
author:skate
time:2012/06/05
linux磁盘容量变为64Z
[root@localhost ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 255G 2.6G 240G 2% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb1 64Z 64Z 91G 100% /search
[root@localhost ~]# ll /search/
总计 0
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ll /search/
总计 0
[root@localhost ~]# df -hT /search/
文件系统 类型 容量 已用 可用 已用% 挂载点
/dev/sdb1 ext3 64Z 64Z 91G 100% /search
[root@localhost ~]# ll /dev/sdb1
brw-r----- 1 root disk 8, 17 06-04 18:38 /dev/sdb1
卸载文件系统
[root@localhost ~]# umount /search
[root@localhost ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 255G 2.6G 240G 2% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 16G 0 16G 0% /dev/shm
[root@localhost ~]# mount -t ext3 /dev/sdb1 /search
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
说明superblock已经损坏,如果没有重要数据可以重建,如下:
[root@localhost ~]# mkfs.ext3 /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
12140544 inodes, 24280231 blocks
1214011 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
741 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
重新mount文件系统
[root@localhost ~]# mount -t ext3 /dev/sdb1 /search
[root@localhost ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 255G 2.6G 240G 2% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb1 92G 188M 87G 1% /search
[root@localhost ~]#
ok
-----------end------------
更多推荐
所有评论(0)