Grub2 Update Memo
来源:互联网 发布:度量天下指标公式源码 编辑:程序博客网 时间:2024/05/17 19:14
重装系统,将分区列表更新后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.
- Grub2 Update Memo
- git hub update command memo
- Memo
- Memo
- memo
- MEMO
- memo
- memo
- memo
- memo
- Memo
- memo
- Memo
- memo
- memo
- memo
- memo
- Memo
- 《黑客与画家》–读后感
- C++ 虚函数与纯虚函数
- Extjs4.0常见的几种布局详解
- 基础解读PPP协议
- VPATH和vpath
- Grub2 Update Memo
- Ensemble入门教程之CacheObject教程说明
- 未来十年怎样成为富豪
- 用数组存放字符串和用指针存放字符串的区别
- NVIDIA Visual Profiler使用方法
- Bootstrap 框架
- Ubuntu 12.04 Eclipse 安装 SVN插件
- Oracle analyze table的使用总结
- oracle数据库笔记---pl/sql的基础使用方法