1.从硬盘安装ubuntu系统首先需要下载ubuntu的iso镜像文件和grub引导程序,将ubuntu.iso放在fat32分区中,我放在ntfs中找不到iso文件
2.使用解压缩工具从iso文件中提取caspe目录中提取vmlinuz和initrd.lz两个文件放在C盘下,将grub目录中的grldr文件和menu.lst放在C盘下
用于引导
3.修改windows的boot.ini文件,修改为如下
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)/WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)/WINDOWS=”Microsoft Windows XP Professional” /noexecute=optin /fastdetect
C:/GRLDR=”grub”
4.修改menu.lst文件,添加对Linux的引导
timeout 10
title Windows at (hd0,0)
root (hd0,0)
chainloader +1
title install Ubuntu9.10
root (hd0,0)
kernel (hd0,0)/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.10-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
label check live-install
initrd (hd0,0)/initrd.lz
重新启动进入grub,然后选择intall Ubuntu9.10就可以进入ubuntu了
备注:
需要注意的是ubuntu-9.10-desktop-i386.iso改为你的Ubuntu的iso文件名。
boot=casper:设置boot的目录为casper
ro:read only
quiet:kernel静态启动
splash:显示启动画面,也就是ubuntu的启动进度条,去掉后只显示文本提示。