ubuntu12.04LTS系統升級到ubuntu14.04LTS後無法正常啟動問題
問題描述:
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介面,以下是在終端檢視的原裝系統資訊
[email protected]:~$ 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
[email protected]:~$ 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
[email protected]:~$ 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. 按F10或CTRL+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. 再次重啟即可正常進入升級後的系統。