Grub2 Update Memo


重装系统,将分区列表更新后Grub的启动列表不再正确。由于Ubuntu系统版本太低,将Grub2卸载之后重装失败。只好单独下载grub的deb包安装。

这个过程走了不少弯路。在这做一下简单的记录。


1. What I have: Windows 7 X86, Windows 7 X64, Ubuntu 10.10 on Notebook. Windows 8 X86 CD. Ubuntu 11.04 CD.

2. What I want: Install Windows 8 X86 on the system. Keep the Ubuntu 10.10.


1. Install Windows 8 X86.

a. Remove partitions for Windows 7 X86, X64. Combine the 2 partitions and install Windows 8 x86  on it.

b. Boot with Ubuntu 11.04 Live CD. Update Grub.

c. The boot list updated. The Windows boot item becomes "Windows Recovery Environment (loader) (on /dev/sda1)". [*]

d. While boot system there will be "No Specified Parameters" warning for Ubuntu and Windows 8.


2. Try to update Grub2.

a. Edit /etc/default/grub.

b. Edit configuration files under /etc/grub.d/.

c. Cannot find way to fix the boot warning.


3. Purging the Grub2 - Here begins the trouble.

a. apt-get purge grub-common.

b. apt-get install grub-pc.  ------ Cannot connect Repositories.


4.  There is no grub any more. Try to re-install Grubs with Ubuntu 11.04 Live CD.

a. Boot with Live CD.

b. Try to install Grub. Get error:

      ubuntu@ubuntu:~$ sudo update-grub
      /usr/sbin/grub-probe: error: cannot stat `aufs'. 


5. Boot the system with Grub.

    Grub> ls

     (hd0), (hd0,msdos8),(hd0,msdos7)...

   Grub> Set

   Grub> linux (hd0,msdos5)/boot/vmlinuz***** root=/dev/sda5 ro

   Grub> initrd (hd0,msdos5)/boot/initrd.img****


6. Start Ubuntu 10.10 again.

a. Download grub2 packages:

http://ftp.cn.debian.org/debian/pool/main/g/grub2/grub-common_1.98+20100804-14+squeeze1_i386.deb

http://ftp.cn.debian.org/debian/pool/main/g/grub2/grub-pc_1.98+20100804-14+squeeze1_i386.deb

http://ftp.cn.debian.org/debian/pool/main/g/grub2/grub2_1.98+20100804-14+squeeze1_i386.deb

b. sudo update-grub to update the boot list.


7. DONE. 



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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值