mount: wrong fs type, bad option, bad superblock

这篇具有很好参考价值的文章主要介绍了mount: wrong fs type, bad option, bad superblock。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Linux挂载磁盘报如下错误:

mount: wrong fs type, bad option, bad superblock on 192.168.0.68:/mnt,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

安装nfs

yum install nfs-utils

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

[root@localhost ~]# fdisk -l

Disk /dev/vda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00020f78

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           1        5222    41940992   83  Linux

Disk /dev/vdb: 64.4 GB, 64424509440 bytes
16 heads, 63 sectors/track, 124830 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x41398dd0

创建一个ext4文件系统

[root@localhost ~]# mkfs -t ext4 /dev/vdb1

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

[root@localhost ~]# mount /dev/vdb1 /mnt

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

[root@localhost ~]# df -Th
Filesystem     Type   Size  Used Avail Use% Mounted on
/dev/vda1      ext4    40G   35G  2.8G  93% /
tmpfs          tmpfs  3.9G     0  3.9G   0% /dev/shm
/dev/vdb1      ext4    59G   1G   58G  99% /mnt

设置自动挂载

[root@localhost ~]# 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.toymoban.com/news/detail-735325.html

到了这里,关于mount: wrong fs type, bad option, bad superblock的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Cause: error=86, Bad CPU type in executable

    Mac Android Studio 运行项目 报错 Cause: error=86, Bad CPU type in executable 原因 ADB 不支持 ARM。应该是苹果系统更新了某些东西 导致不支持 解决方案 终端输入 softwareupdate --install-rosetta 出现 I have read and agree to the terms of the software license agreement. A list of Apple SLAs may be found here: http://www.app

    2024年02月04日
    浏览(41)
  • 已解决 docker: Error response from daemon: invalid mount config for type

    🌷🍁 博主猫头虎(🐅🐾)带您 Go to New World✨🍁 🐅🐾 猫头虎建议程序员必备技术栈一览表📖 : 云原生技术 Cloud Native : 🔥 Golang 🐳 Docker ☸️ Kubernetes ⛵ Helm 🔥 Serverless 🌩️ AWS Lambda ☁️ Google Cloud Functions 📦 Microservices 🚀 Envoy 🌐 Istio 📊 Prometheus 🦄 博客首页 : 🐅🐾

    2024年02月05日
    浏览(59)
  • org.postgresql.util.PSQLException: Bad value for type long

    项目用 springboot+mybatis +mybatisplus, 数据库是:postgresql  。 执行查询时候返回错误。 org.springframework.dao.DataIntegrityViolationException: Error attempting to get column \\\'city_id\\\' from result set.  Cause: org.postgresql.util.PSQLException: Bad value for type long :  ; Bad value for type long : ; nested exception is org.postgres

    2024年02月07日
    浏览(32)
  • There was an unexpected error (type=Bad Request, status=400).

    本来是在学习@RequestParam 这个注解,前后端代码完善后就在浏览器里进行了测试,结果报了 400 的错。 前端的请求链接如下: 首先得知道 400 这个状态码是啥意思:400 ,bad request意思是“错误的请求\\\"; 所以是请求方式有问题吗? 我寻思这里的GET请求也是符合URL语法的,所以

    2024年02月13日
    浏览(46)
  • 安全头响应头(三)​X-Content-Type-Options

    一  X-Content-Type-Options响应头                                             script标签  style  StyleSheet    JavaScript MIME type 文件扩展和Content-Type的映射关系 ①  基础铺垫 nginx(十八)mime.types的作用 ②  浏览器默认行为   ③    问题引入 现象及其相似  location和alias的搭配问

    2024年02月12日
    浏览(28)
  • zsh: bad CPU type in executable: /usr/local/bin/git

    查找原因: 通过 where git 可以看到有2个路径 一个/usr/bin/git一个/usr/bin/local/git which git 返回/usr/bin/local/git 而 /usr/bin/local/git --version也报这个错 zsh: bad CPU type in executable 应该是由于mac自带git,而我又安装了一个git,导致产生冲突 解决方式就是卸载掉自己安装的git sh /usr/local/git/

    2024年02月11日
    浏览(48)
  • Web安全之充分利用 X-Content-Type-Options

    X-Content-Type-Options 是一种 HTTP 响应头,用于控制浏览器是否应该尝试 MIME 类型嗅探。如果启用了 X-Content-Type-Options,浏览器将遵循服务器提供的 MIME 类型,用于防止浏览器执行 MIME 类型错误的响应体(response body)。 如果在http响应头中指定的 Content-Type 与实际响应体返回的 MI

    2024年02月09日
    浏览(30)
  • 猫头虎分享已解决Bug || docker: Error response from daemon: invalid mount config for type ‍

    博主猫头虎的技术世界 🌟 欢迎来到猫头虎的博客 — 探索技术的无限可能! 专栏链接 : 🔗 精选专栏 : 《面试题大全》 — 面试准备的宝典! 《IDEA开发秘籍》 — 提升你的IDEA技能! 《100天精通鸿蒙》 — 从Web/安卓到鸿蒙大师! 《100天精通Golang(基础入门篇)》 — 踏入

    2024年02月19日
    浏览(56)
  • HTTP协议安全头部X-Content-Type-Options引入的问题

    本文于2016年4月完成,发布在个人博客网站上。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 前段时间测试MM反馈了一个问题,在富文本编辑器里上传的图片无法正常呈现。因为Jackie在本机的环境上没有观察类似的现象,而恰好那天

    2024年02月04日
    浏览(37)
  • 【已解决】“X-Content-Type-Options”头缺失或不安全

    Appscan是一款安全漏洞扫描软件,由IBM公司研发,后又被卖给了印度公司HCL。 在web安全测试中,今天我们说下扫描结果中包含X-Content-Type-Options请求头header的缺失或不安全的时候,我们该如何应对。 风险:可能会收集有关 Web 应用程序的敏感信息,如用户名、密码、机器名和

    2024年02月10日
    浏览(30)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包