荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Field.bbs@bbs.cqupt.edu.cn (Initializing Kernel ), 信区: Linux
标  题: 使用lilo,grub和NT OSLoader进行多重引导的互相嵌套
发信站: 幽幽黄桷兰 (Sat May 31 03:27:01 2003)
转信站: SZU!news.tiaozhan.com!news2.uestc.edu.cn!CQUPT

功能: 多重引导,引导多个操作系统
  主引导 lilo(redhat)
  lilo(Redhat)——〉NTOSLOADER(win2k) + REDHATLINUX + GRUB(redhat) + LILO(
cosix)
  WIN2K+LILO(redhat)+LILO(cosix) + grub(redhat)
  NTOSLOADER(win2k) + LILO(redhat) + COSIXLINUX
  REDHATLINUX + COSIXLINUX + NTOSLOADER(win2k) + LILO(COSIX)
  注意LILO安装在了/dev/hda 和 /dev/hda3
  1.分区、系统、和引导
分区 系统 引导
/dev/hda Lilo(Redhat)
/dev/hda1 win2 NTOSLoader
/dev/hda3 COSIXLinux lilo (cosix)
/dev/hda7 RedHatLinux grub (Redhat)
  2. Redhat 的lilo配置
  # Redhat linux的lilo装载/dev/hda的MBR
  prompt
  timeout=50
  default=win2k
  boot=/dev/hda
  map=/boot/map
  install=/boot/boot.b
  message=/boot/message
  lba32
  #启动REDHAT LINUX
  image=/boot/vmlinuz-2.4.18-3
label=RedHat
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/hda7
  # 启动win2k
  other=/dev/hda1
optional
label=win2k
  #启动COSIX LINUX的LILO
  other=/dev/hda3
optional
label=COSIX
  #引导grub
  other=/dev/hda7
optional
label=GRUB
  3. COSIXLinux的配置
  # COSIX linux的lilo装载/dev/hda3
  boot=/dev/hda3
  map=/boot/System.map
  install=/boot/boot.b
  nowarn
  prompt
  timeout=50
  bitmap=/boot/cosix-msg.bmp
  bmp-colors=6,9,0,15,9,0
  bmp-table=60,5,1,18
  lba32
  default=cosix
  #启动COSIX LINUX
  image=/boot/vmlinuz-2.4.18-5
label=cosix
initrd=/boot/initrd-2.4.18-5.img
read-only
root=/dev/hda3
vga=0x314
append="devfs=mount quiet 5"
  # 启动开机时的LILO
  other=/dev/hda
optional
label=LILO
  # 启动WIN2K
  other=/dev/hda1
optional
label=WIN2K
  4. grub 引导
  # 把grub装在/dev/hda7,执行grub-install命令
  # grub-install /dev/hda7
  default=1
  timeout=10
  splashimage=(hd0,6)/boot/grub/splash.xpm.gz
  title RedHatLinux (2.4.18-3)
root (hd0,6)
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hda7
initrd /boot/initrd-2.4.18-3.img
  title COSIX
root (hd0,2)
kernel /boot/cosix-server-vmlinuz ro root=/dev/hda3
initrd /boot/initrd-cosix.img
  title WIN2K
root (hd0,0)
makeactive
chainloader +1
  title COSIXLilo
root (hd0,2)
makeactive
chainloader +1
  5.Win2k 的ntosloader引导
  (1)制作win2k启动linux的启动文件
  dd if=/dev/hda3 of=bootcosix.sec bs=512 count=1
  dd if=/dev/hda of=bootlilo.sec bs=512 count=1
  dd if=/dev/hda7 of=bootgrub.sec bs=512 count=1
  把创建的bootcosix.sec, bootgrub.sec 和bootlilo.sec 文件拷贝到win2k的c:
  (2)win2k中boot.ini的配置文件
  [boot loader]
  timeout=30
  default=multi(0)disk(0)rdisk(0)partition(1)
    WINNT
  [operating systems]
  multi(0)disk(0)rdisk(0)partition(1)
   WINNT="Microsoft Windows 2000 Server" /fastdetect
  cootcosix.sec="COSIXlilo"
  cootlilo.sec="RedhatLILO"
  cootgrub.sec="grub"

--
※ 来源:·幽幽黄桷兰 bbs.cqupt.edu.cn·[FROM: www.Field.net]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店