javaee论坛

普通会员

225648

帖子

327

回复

341

积分

楼主
发表于 2017-08-13 03:28:16 | 查看: 156 | 回复: 2
问题描述:

ubuntu12.04LTS系统升级到ubuntu14.04LTS后,重启系统出现黑屏并提示如下:

mount: mounting /dev/loop0 on /root/ failed: No such file or directory

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 file system doesn't have request /sbin/init

No init found. Try passing init= bootarg

 

Busybox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash)

Enter 'help' for a list of built-in commands

(initramfs) _

刻制了一个启U盘,用U盘进入了Ubuntu界面,以下是在终端查看的原装系统信息

ubuntu@ubuntu:~$ df -h

Filesystem      Size  Used Avail Use% Mounted on

/cow            7.8G   40M  7.8G   1% /

udev            7.8G  4.0K  7.8G   1% /dev

tmpfs           3.2G  828K  3.2G   1% /run

/dev/sdb1       7.0G  5.9G  1.2G  84% /cdrom

/dev/loop0      660M  660M     0 100% /rofs

tmpfs           7.8G   16K  7.8G   1% /tmp

none            5.0M     0  5.0M   0% /run/lock

none            7.8G   76K  7.8G   1% /run/shm

 

ubuntu@ubuntu:~$ uname -a

Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

 

ubuntu@ubuntu:~$ dpkg --get-selections|grep linux

libselinux1 install

linux-firmware install

linux-generic install

linux-headers-3.2.0-29 install

linux-headers-3.2.0-29-generic install

linux-headers-generic install

linux-image-3.2.0-29-generic install

linux-image-generic install

linux-libc-dev install

linux-sound-base install

pptp-linux install

syslinux install

syslinux-common install

syslinux-legacy install

util-linux install

解决办法:

1. 重启电脑并按住shift键进入grub界面

2. 按E键进入grub编辑界面

3. 更改ro quiet splash项,将ro(只读)改为rw(可读可写)

4. F10CTRL+X键进行引导(根据屏幕上的提示,我的电脑是F10

5. 此时可以正常进入升级后的系统了,但是下一次启动还需要执行上述操作。

6. 想要永久更改启动项,需要更改grub文件

7. 按CTRL+ALT+T进入终端,执行 sudo gedit /etc/default/grub 进行更改

8. 找到GRUB_CMDLINE_LINUX_DEFAULT="quiet splash",在quiet前添加rw 

9. 点击保存并退出

10. 终端执行 sudo update-grub 更新grub启动项

11. 再次重启即可正常进入升级后的系统。


普通会员

1

帖子

300

回复

310

积分
沙发
发表于 2019-12-09 03:36:28

围观

普通会员

0

帖子

308

回复

314

积分
板凳
发表于 2022-12-24 17:11:02

看看

您需要登录后才可以回帖 登录 | 立即注册

触屏版| 电脑版

技术支持 历史网 V2.0 © 2016-2017