linux文件系统问题:wrong fs type, bad option, bad superblock

报错内容:

mount: wrong fs type, bad option, bad superblock on /dev/mapper/oraclevg-oraclelv,

missing codepage or helper program, or other error

In some cases useful info is found in syslog – try

dmesg | tail or so

[@more@]

问题解决过程如下:

查看文件系统是否已挂载:

ebdbpro:/ # df -h

Filesystem Size Used Avail Use% Mounted on

/dev/cciss/c0d0p2 273G 8.2G 251G 4% /

devtmpfs 16G 156K 16G 1% /dev

tmpfs 16G 1.9M 16G 1% /dev/shm

/dev/dm-1 501G 198M 476G 1% /local_bkup

mount文件系统报错:

ebdbpro:/ # mount /dev/mapper/oraclevg-oraclelv /eb_db

mount: wrong fs type, bad option, bad superblock on /dev/mapper/oraclevg-oraclelv,

missing codepage or helper program, or other error

In some cases useful info is found in syslog – try

dmesg | tail or so

查看文件系统分区表:

ebdbpro:/ # more /etc/fstab

修复文件系统:

ebdbpro:/ # fsck -t ext3 /dev/mapper/oraclevg-oraclelv

fsck from util-linux-ng 2.16

e2fsck 1.41.9 (22-Aug-2009)

fsck.ext3: Group descriptors look bad… trying backup blocks…

/dev/mapper/oraclevg-oraclelv 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

/dev/mapper/oraclevg-oraclelv: ***** FILE SYSTEM WAS MODIFIED *****

/dev/mapper/oraclevg-oraclelv: 11/52559872 files (0.0% non-contiguous), 3349081/210238464 blocks

 

 

 

简单来说:

运行挂载命令如 mount /dev/sdb1 mnt出现错误:


mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

检查该磁盘的文件系统,即运行命令

fsck -t ext4 /dev/sdb1

 

上面的选项“ -t ext4 ”表示文件系统类型为 ext4.

西数超哥学习乐园,西数超哥基础运维经验教程分享的学习乐园,西数超哥博客,运维经验教程交流学习分享的博客

原创文章,作者:zhang sir,如若转载,请注明出处:https://www.ysidc.top/293.html