본문 바로가기

CentOS/Error

mount: wrong fs type, bad option, bad superblock on /dev/*,missing codepage or helper program, or other errorIn some cases useful info is found in syslog - trydmesg | tail or somount: wrong fs type, bad option, bad superblock on /dev/sdb1,missing codepa..

서버: CentOS 6.X

문제: mount /dev/sdc1 /dir 안 됨

에러: libmysqlclient_r.so.16: cannot open shared object file: No such file or directorymount: wrong fs type, bad option, bad superblock on /dev/sdc1,missing codepage or helper program, or other errorIn some cases useful info is found in syslog - try dmesg | tail or somount: wrong fs type, bad option, bad superblock on /dev/sdb1,missing codepage or helper program, or other errorIn some cases useful info is found in syslog - trydmesg | tail or so

원인: mkfs.xfs 미설치 및 버전 차이

사유: xfs로 다른 PC에서 포맷한 /dev/sdc를 해당 서버에서 마운트를 시도하니 문제가 발생함. mkfs. 까지만 입력 후 Tab을 누르자 목록에 xfs가 없음. 또한 설치 후에도 지속적인 오류가 발생하여 dmesg | tail을 해보자 bad version이라고 출력됨. 즉 버전차이까지 존재한다고 판단함.

해결: mkfs.xfs를 설치하기 위해 아래 명령어 입력

# yum install kmod-xfs xfsdump xfsprogs dmapi

mkfs.xfs 버전이 다르므로 해당 서버에서 재포맷 진행

# mkfs.xfs /dev/sdc1 

이 때 입력 후 -t 옵션으로 retry하라고 출력되면 -t를 사용하여 다시 포맷하면 됨