linux磁盘挂载报错,Linux mount挂载磁盘报错 mount: wrong fs type, bad option, bad superblock on /dev/vdb...

Linux mount挂载磁盘报错  mount: wrong fs type, bad option, bad superblock on /dev/vdb

Linux挂载磁盘报如下错误:

mount: wrong fs type, bad option, bad superblock on 192.168.0.68:/mnt,

missing codepage or helper program, or other error

(forseveral filesystems (e.g. nfs, cifs) you might

need a/sbin/mount.helper program)

In some cases useful infois found in syslog - trydmesg|tail or so

安装nfs

yum install nfs-utils

运行fdisk -l命令查看实例上的数据盘,发现/dev/vdb未被使用

[[email protected] ~]# fdisk -l

Disk/dev/vda: 42.9 GB, 42949672960bytes255 heads, 63 sectors/track, 5221cylinders

Units= cylinders of 16065 * 512 = 8225280bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier:0x00020f78Device Boot Start End Blocks Id System/dev/vda1 * 1 5222 41940992 83Linux

Disk/dev/vdb: 64.4 GB, 64424509440bytes16 heads, 63 sectors/track, 124830cylinders

Units= cylinders of 1008 * 512 = 516096bytes

Sector size (logical/physical): 512 bytes / 512bytes

I/O size (minimum/optimal): 512 bytes / 512bytes

Disk identifier:0x41398dd0

创建一个ext4文件系统

[[email protected] ~]# mkfs -t ext4 /dev/vdb1

运行mount /dev/vdb1 /mnt命令挂载文件系统

[[email protected] ~]# mount /dev/vdb1 /mnt

如果运行df -Th命令后出现新建文件系统的信息,表示文件系统挂载成功

[[email protected] ~]# df -Th

Filesystem Type Size Used Avail Use%Mounted on/dev/vda1 ext4 40G 35G 2.8G 93% /tmpfs tmpfs3.9G 0 3.9G 0% /dev/shm/dev/vdb1 ext4 59G 1G 58G 99% /mnt

设置自动挂载

[[email protected] ~]# lsblk -f

NAME FSTYPE LABEL UUID MOUNTPOINT

vda

└─vda1 ext4 1ae5f12f-79c1-47d4-************* /vdb

└─vdb1 ext4 1e3cb065-e1ad-4ee1-************* /mnt

通过修改/etc/fstab实现自动挂载,添加如下配置即可

vi /etc/fstab

UUID=1e3cb065-e1ad-4ee1-******* /mnt ext4 defaults 0 0

添加完成后,执行mount -a 即可生效

原文:https://www.cnblogs.com/will-xz/p/13532578.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值