Ubuntu启动进入initramfs模式的解决办法

故障情况:

刀片装完Ubuntu11.04后重启动,没有进入系统登录界面,而是进入initramfs模式,如下图:


 

解决办法:

在该模式下输入:exit,进入系统登录模式:

(initramfs)exit

………………

Ubuntu 11.04 cloudmaster tty1

cloudmaster login:

登录系统:

chensh@cloudmaster:~$cat /etc/issue
Ubuntu 11.04 \n \l

chensh@cloudmaster:~$sudo passwd

 

chensh@cloudmaster:~$su - root
密码: 
root@cloudmaster:~# 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 
…………………………………………
保存退出~!

再次重启系统即可:

root@cloudmaster:~# reboot
root@cloudmaster:~# 
来自chensh@cloudmaster的广播信息
        (/dev/pts/0) 于 13:31 ...

现在,系统将关闭并且重新启动!

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值