linux磁碟容量變為64Z

來源:互聯網
上載者:User

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------------

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.