Ubuntu啟動進入initramfs模式的解決辦法
阿新 • • 發佈:2019-01-01
故障情況:
刀片裝完Ubuntu11.04後重啟動,沒有進入系統登入介面,而是進入initramfs模式,如下圖:
解決辦法:
在該模式下輸入:exit,進入系統登入模式:
(initramfs)exit
………………
Ubuntu 11.04 cloudmaster tty1
cloudmaster login:
登入系統:
[email protected]:~$cat /etc/issue
Ubuntu 11.04 \n \l
[email protected]:~$sudo passwd
[email protected]:~$su - root
密碼:
[email protected]:~# vi /boot/grub/grub.cfg
在如下"linux /vmlinuz-2.6.38-8-server root=UUID=acfbc2b6-4cc6-4681-8708-9f57029340c6 ro quiet"和"linux /vmlinuz-2.6.38-8-server root=UUID=acfbc2b6-4cc6-4681-8708-9f57029340c6 ro single"兩行後面加上rootdelay=90,更改後如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
…………………………………………
menuentry 'Ubuntu,Linux 2.6.38-8-server' -- class ubuntu -- class gnu-linux -- class gnu -- class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root= '(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid -- set =root a0328795-e78b-49af-be40-e3f12ce323ce
linux /vmlinuz- 2.6 . 38 - 8 -server root=UUID=acfbc2b6-4cc6- 4681 - 8708 -9f57029340c6 ro quiet rootdelay= 90
initrd /initrd.img- 2.6 . 38 - 8 -server
}
menuentry 'Ubuntu,Linux 2.6.38-8-server (恢復模式)' -- class ubuntu -- class gnu-linux -- class gnu -- class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root= '(/dev/sdc,msdos1)'
search --no-floppy --fs-uuid -- set =root a0328795-e78b-49af-be40-e3f12ce323ce
echo 'Loading Linux 2.6.38-8-server ...'
linux /vmlinuz- 2.6 . 38 - 8 -server root=UUID=acfbc2b6-4cc6- 4681 - 8708 -9f57029340c6 ro single rootdelay= 90
echo 'Loading initial ramdisk ...'
initrd /initrd.img- 2.6 . 38 - 8 -server
}
…………………………………………
|
再次重啟系統即可:
[email protected]:~# reboot
[email protected]:~#
來自[email protected]的廣播資訊
(/dev/pts/0) 於 13:31 ...
現在,系統將關閉並且重新啟動!