|
发表于 2004-8-11 11:27:54
|
显示全部楼层
看你使用的是何种启动管理器,
如果是grub,
使用map命令进行映射。
假定第一块硬盘装linux,
第二块硬盘装windows,
默认启动linux,
grub.conf 配置的大致形式如下:
- default=0
- timeout=10
- splashimage=(hd0,0)/boot/grub/splash.xpm.gz
- title Redhat Enterprice Linux Advanced Server
- root (hd0,0)
- kernel /boot/vmlinuz-2.4.22 ro root=/dev/hda1
- initrd /boot/initrd-2.4.22.img
- boot
- title Windows 2000 Advanced Server
- map (hd0)(hd1)
- map (hd1)(hd0)
- root (hd1,0)
- chainloader (hd1,0)+1
- makeactive
- boot
复制代码
如果使用lilo,
第一块硬盘安装linux,
第二块安装windows,
默认启动windows,
形式大致如下:
- disk=/dev/hdb
- bios=0x81
- boot=/dev/hda
- map=/boot/map
- install=/boot/boot.b
- linear
- prompt
- timeout=50
- default=windows
- image=/boot/vmlinuz-2.2.11-1
- label=linux
- root=/dev/hda1
- read-only
- other=/dev/hdb1
- label=windows
- map-drive = 0x80
- to = 0x81
- map-drive = 0x81
- to = 0x80
- table=/dev/hdb
复制代码
仅供参考。 |
|