QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 741|回复: 3

求:2硬盘装分别装windows 和 linux 的 方法?

[复制链接]
发表于 2006-4-25 12:58:52 | 显示全部楼层 |阅读模式
最近需要 给自己的 机器装个linux。

本人情况如下:
/dev/hda 下面装了windows  xp没分区
/dev/hdb1 linux
/dev/hdb2 swap
/dev/hdb3 NTFS

我先装的windows, 后装的linux 并且把 将linux 的 boot loader装在他所在的主分区/dev/hdb1 上,而不是MBR.

当我 再开机 还是 自动 跳进了 windows xp. 不知道该如何启动linux? 上次不小心 把 linux 的boot loader装在了mbr上边window 不能动了,搞了半天fixmbr才搞定。 这次怕了, 还是 问问大家吧
请问 我是不是 我还要改什么,才能启动linux? 还有就是 老是看到 lilo 和 GRUB 是不是和windows 的 boot.ini一样?

谢谢乐先 我都研究了1个多星期,看论坛,读资料, 实在 不行了, 发个帖子 试运气

写信我 油箱野性 [email protected]
发表于 2006-4-25 16:52:21 | 显示全部楼层
用安装盘启动进入Linux的修复模式,输入grub,然后root(hd0,0),再setup(hd0,0).
回复

使用道具 举报

发表于 2006-4-25 19:03:03 | 显示全部楼层
grub:多系统启动管理器

建议把grub装在linux所在盘的mbr上。然后bios设置从该硬盘启动。
进入linux后,添加windows启动选项。
回复

使用道具 举报

 楼主| 发表于 2006-4-26 12:07:42 | 显示全部楼层
“用windows的boot loader 引导linux 的方法”
谢谢的大家帮助

linux系统搞定了。 我用的还是window 的 boot loader. 只是把 Linux boot sector  copy 到了 windows partition上面. 我放在了  C:\BOOTSECT.LNX。 再在windows 里面 boot.ini 加上了C:\BOOTSECT.LNX="Linux"

具体方法
如下:
1.From Linux, copy the Linux boot sector from /boot to a file using the dd command.

2.In the below, replace /dev/hda3 with your boot partition's location
# dd if=/dev/hda3 of=/bootsect.lnx bs=512 count=1
  

3.Copy bootsect.lnx onto a floppy disk.

4.If mcopy is available, this is easy:

# mcopy /bootsect.lnx a:

If mcopy is not available (e.g. a minimal install of Linux) you'll need to mount the floppy drive and then copy:

# mount /dev/fd0 /mnt
# cp /bootsect.lnx /mnt
# umount /mnt

5.Boot W2K, log in as Administrator and copy bootsect.lnx from your floppy disk onto the root of your C: drive


6.Edit C:\BOOT.INI and add the following line at the end:


C:\BOOTSECT.LNX="Linux"


还有个简单方法
有个软件 http://www.winimage.com/bootpart.htm。 在你的windows, 里面的dos下运行的。 按照里面的说明书 1行命令 以后。从新启动以后你就看到了 如下菜单

Windows 2000 Professional
Linux

有什么切磋的 联系我 别客气 哥们儿
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-23 05:27 , Processed in 0.076724 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表