一 准备材料:1,EasyBcd2.2 2,ubuntu-14.04-desktop-amd64 < casper目录下的initrd.lz、vmlinuz两个文件 > 3,在win7下新建一个分区再删除这个分区(这个分区用来存放ubuntu)
二 配置easybcd的menu.lst:/*从c盘启动,主要是路径对若进不到小系统则reboot重启进到win7改(hd0,0)*/
# NeoSmart NeoGrub Bootloader Configuration File
#
# This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst
# Please see the EasyBCD Documentation for information on how to create/modify entries:
# http://neosmart.net/wiki/display/EBCD/
title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.04-desktop-amd64.iso
locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.lz
title reboot
reboot
注:如果出现卡在启动界面那要在filename后加“ro quiet splash”。
title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.04-desktop-amd64.iso ro quiet splash
locale=zh_CN.UTF-8
initrd (hd0,0)/initrd.lz
title reboot
reboot
三 进到小系统后ctrl+alt+t打开终端$sudo umount -l /isodevice <在这个小系统里是可以联网的>
四 断网,正式开始安装,在“安装类型”选“其他选项” - 再设置挂载点的大小
五 安装完后,回到win7打开easybcd把“neogrub”引导项删除,把c盘下这次安装相关的文件删除。
六 修改win7与ubuntu1404双系统启动顺序(改为默认启动win7)
$sudo mv /etc/grub.d/30_os-prober /etc/grub.d/03_os-prober
$sudo update-grub
七 更改grub系统选项的等待时间
$sudo vi gedit /etc/default/grub
等待时间选项为 GRUB_TIMEOUT
################################################################
如把装有ubuntu的分区分区删除,再开机时会报出: “ * grub rescue>”的错,解决办法有多种。
我用的是 UltraISO制作win7的U盘启动,到选择安装盘时用shift+f10调出cmd命令提示符,输入命令:bootrec /fixboot回车,提示操作完成。如果重启仍报grub rescue>,则在cmd命令提示符中输 入:bootsect /nt60 sys /mbr回车。
参考文档;http://jingyan.baidu.com/article/84b4f565df60ce60f6da32ca.html