Linux磁盘被误重新分区的恢复方法

By admin, 19 二月, 2019

今天,服务器的磁盘被执行了误操作(本来是要mount挂载的)

fdisk /dev/sdb1

之后执行mount失败

# mount /dev/sdsb1 /mnt/data/

mount: /mnt/data: wrong fs type, bad, option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.

执行下面命令可修复:

fsck /dev/sdb1

如果不行,可以试试testdisk和gparted命令。

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"