zoukankan      html  css  js  c++  java
  • Ubuntu:Target filesystem doesn't have /sbin/init (Slax 解决)

    计算机(Ubuntu)因为异常断电或是其它原因,再次启动时。非常不幸的出现:

    Killed
    mount: mounting /dev on /root/dev failed: No such file or directory
    mount: mounting /sys on /root/sys failed: No such file or directory
    mount: mounting /proc on /root/proc failed: No such file or directory
    Target filesystem doesn't have /sbin/init
    No init found. Try passing init= bootarg
    
    文件系统出现了问题,不能挂载。别急。还有救:

    有的方法是做一个Ubuntu的启动盘。使用体验版的Ubuntu运行文件系统修复,这个U盘不一定能启动成功。

    这里有更靠谱的办法,Slax。

    Slax是个便捷、便携的Linux操作系统,直接装在U盘里随身携带。

    解决上述问题步骤:

    ①下载Slax:http://www.slax.org/zhCN/download.php选择32或是64的zip

    ②格式化你的U盘后,解压到U盘的根文件夹

    ③双击/slax/boot/bootinst.bat创建向导,完了之后就能够用你的U盘启动Slax了。

    ④设置bios,从U盘启动。这时候时尚性感的Slax将要启动了。

    ⑤在资源下载一个boot info script,地址:http://download.csdn.net/detail/wu20093346/8065879

    ⑥将这个bootinfoscript-061.tar.gz复制到Slax桌面。解压。Extract here。

    ⑦运行脚本:bash ~/Desktop/boot_info_script.sh

    ⑧结束后桌面生成了RESULTS.txt,打开它。阅读。

    ⑨推断您的Ubuntu是在哪个分区,假设在sda1。或是sda7

    ⑩那么运行e2fsck -f -y -v /dev/sda1或是e2fsck -f -y -v /dev/sda7

    关闭Slax,拔出启动盘,开机,你的Ubuntu应该是恢复了。

  • 相关阅读:
    数据结构算法练习(一)
    crontab详解
    git遇到问题
    docker容器管理
    docker及服务器遇到的坑
    shell study
    低级终端IO
    高级IO
    信号处理
    UNIX日期与时间
  • 原文地址:https://www.cnblogs.com/hrhguanli/p/5063057.html
Copyright © 2011-2022 走看看