免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1802 | 回复: 3
打印 上一主题 下一主题

安装xp,linux 后怎么启动linux [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-30 09:16 |只看该作者 |倒序浏览
How to use ntldr to load grub               
<Environment>
Disk:        hda
Sector:        hda1(fat32 xp main sector),hda5(fat32),hda6(fat32),hda7(ext3 /boot),hda8(swap),
        hda7(ext3 /)(1 to 4 reserved for main sector)
system:        xp,linux redhat9
<How to>
First:        install xp in hda1
Second:        install linux and install Grub in /boot
third:        Create Grub loading file for ntldr
                1:Boot the computer using linux installing CD 1
                2:#linux rescue
                3:#chroot /mnt/sysimage
                4:#mkdir /mnt/win
                5:#mount -t vfat /dev/hda1 /mnt/win
                6:#dd if=/dev/hda7 of=/mnt/win/linux.lnx bs=512 count=1
                  (NOTE:The name of lnx file must not be too long)
                7:#exit
                8:#exit
Fourth:        Reboot system to xp and modify file c:\boot.ini
                You can see file linux.lnx in c:\.So now we just need to modify boot.ini file and
                add one line such as c:\linux.lnx="Red Hat linux 9".
<Boot.ini sample>               
following is the sample of  boot.ini file:
               
[boot loader]
timeout=20
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:\linux.lnx="Red Hat linux 9"

论坛徽章:
0
2 [报告]
发表于 2007-10-03 15:12 |只看该作者
装完了xp后在装linux的时候,选择把grub装到mbr上面就可以,然后重启动后会看见grub的引导菜单出来,选择要进的系统就行了啊。

论坛徽章:
0
3 [报告]
发表于 2007-10-03 15:20 |只看该作者
用ntloader引导linux太麻烦了,用grub方便多了。

论坛徽章:
0
4 [报告]
发表于 2007-10-04 00:09 |只看该作者
可以用grub for dos
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP