ERROR mount: wrong fs type, bad option, bad superblock on /dev/vdb1,

mount: wrong fs type, bad option, bad superblock on /dev/vdb1

问题

在腾讯云购买了一台云服务器,后期添加了一块硬盘,之前也是正常使用的,今天重置了服务器,想再挂载此块硬盘,出现如下提示

[root@VM-0-16-centos ~]# mount /dev/vdb1 /www/wwwroot/
mount: wrong fs type, bad option, bad superblock on /dev/vdb1,
       missing codepage or helper program, or other error

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

原因及解决方案

原因:挂载时未格式化,使用的文件系统格式不对
解决方案:格式化

[root@VM-0-16-centos ~]# mkfs.xfs -f /dev/vdb1
meta-data=/dev/vdb1              isize=512    agcount=4, agsize=32767936 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0, sparse=0
data     =                       bsize=4096   blocks=131071744, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal log           bsize=4096   blocks=63999, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
[root@VM-0-16-centos ~]# mount /dev/vdb1 /www/wwwroot/

查看结果

[root@VM-0-16-centos ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  909M     0  909M   0% /dev
tmpfs          tmpfs     919M   24K  919M   1% /dev/shm
tmpfs          tmpfs     919M  576K  919M   1% /run
tmpfs          tmpfs     919M     0  919M   0% /sys/fs/cgroup
/dev/vda1      ext4       50G  6.9G   41G  15% /
tmpfs          tmpfs     184M     0  184M   0% /run/user/0
tmpfs          tmpfs     184M     0  184M   0% /run/user/1000
/dev/vdb1      xfs       500G   33M  500G   1% /www/wwwroot

可以看到vdb1已成功挂载

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值