加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

virtualbox中的ubuntu无法进入系统的修复方法

发布时间:2020-12-14 02:36:14 所属栏目:Linux 来源:网络整理
导读:virtualbox下的ubuntu经常因为各种原因被强制关闭,然后再启动的时候就出现类似错误: mounting /dev on /root/dev failed: No such file or directorymount:mounting /sys on /root/sys failed: No such file or directorymount:mounting /proc on /root/pr

virtualbox下的ubuntu经常因为各种原因被强制关闭,然后再启动的时候就出现类似错误:


mounting /dev on /root/dev failed: No such file or directorymount:
mounting /sys on /root/sys failed: No such file or directorymount:
mounting /proc on /root/proc failed: No such file or directory
Target file system doesn’t have /sbin/initNo init found.
Try passing init= bootarg
Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter ‘help’ for a list of built-in commands
(initramfs) _
用fsck修复磁盘即可。

修复办法:

  1. 在虚拟光盘添加一个ubuntu12.04的cd映像(10.04的有bug)
  2. 从光盘进入系统,也就是(try ubuntu)
  3. 进入系统后在终端运行sudo fsck /dev/sda1
  4. 一路提示都直接按回车,直至修复完毕
  5. 关闭系统,卸掉虚拟光盘的系统映像,重新启动,一切OK!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读