在原有环境:windows XP-sata硬盘160G 基础上安装linux。不改变原硬盘的MBR
增加IDE硬盘40G用于安装linux。
1. BIOS修改IDE-40G为主硬盘
2. 设置光驱引导启动、安装linux。
3. 修改/boot/grub/grub.conf
末尾行添加:
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify(hd1,0)
chainloader+1
boot
或者使用ntldr来引导linux
1.在终端运行:dd if=/dev/sda of=/mnt/C/linux.lnx bs=512 count=1
(没挂载的,将生成的linux.lnx文件U盘拷贝到C:\下面)
2.修改boot.ini文件末尾行添加一条:c:\linux.lnx="linux"
3.在DOS下用FDISK重写了MBR,命令: FDISK /MBR
这样在启动windows时就可以选择进入Linux系统中了。