歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> 更多Linux

使用lilo,grub和NT OSLoader進行多重引導的互相嵌套

功能: 多重引導,引導多個操作系統    主引導 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    c:ootcosix.sec="COSIXlilo"    c:ootlilo.sec="RedhatLILO"    c:ootgrub.sec="grub"



   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    c:ootcosix.sec="COSIXlilo"    c:ootlilo.sec="RedhatLILO"    c:ootgrub.sec="grub"



Copyright © Linux教程網 All Rights Reserved