用Grub做Dual boot不成功!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
besok
帖子: 16
注册时间: 2008-02-02 15:07

用Grub做Dual boot不成功!

#1

帖子 besok » 2010-04-06 21:41

我的電腦一直有XP,第一次用dual boot(Grub)的方法的install Linux

安裝後,可以進入Linux。但當我選擇了Window XP,離開了Grub畫面後,

就只有黑畫面,load唔到windows的畫面出來…

就算我手動地在grub打入"rootnovertify (hd0,1); chainloader +1; makeactive"都是一樣…

唔通連win的ntldr都load唔到?

跪求大家幫手!


===============================================
我的Hardisk Parition:
Device Boot Size Mount
/dev/sdb1 500Mb /boot
/dev/sdb2 * 26Gb Windows C:
/dev/sdb3 1Gb Swap
/dev/sdb4 12Gb /
================================================
menu.lst的內容:
#boot=/dev/sdb
(省略…)
title Fedora (2.6.31.5-127.fc12.i686)
root (hd0,0)
kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=UUID=94cef995-d3b6-4ae0-9502-f60f15b4eab0 noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.i686.img
title Windows XP Professional SP3
rootnoverify (hd0,1)
chainloader +1
makeactive
=====================================================
Windows內的Boot.ini,因為Window的分割在第二個Partition,所以我把Partition(1)改成了Partition(2)
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional"
========================================================

請大家幫幫忙~~謝謝!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 用Grub做Dual boot不成功!

#2

帖子 smallapple » 2010-04-06 22:40

用 Partition(1) 什么反应?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 用Grub做Dual boot不成功!

#3

帖子 adagio » 2010-04-06 22:42

代码: 全选

title Windows XP Professional SP3
rootnoverify (hd0,1)
chainloader +1
makeactive
你先确定hd0,1激活了没有,或者说你的C盘是不是hd0,1
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
besok
帖子: 16
注册时间: 2008-02-02 15:07

Re: 用Grub做Dual boot不成功!

#4

帖子 besok » 2010-04-07 22:03

謝謝各位!

我是使用fdisk把hd0,1激活了,再加上Grub的設定中加入了makeactive選項,該激活了吧…?

如果我把Windows 的Boot.ini 中的Partition(2)改成Parition(1),什至是Partition(3),開機時大約會出現:

=========
下列檔案遺失或損壞:
<Windows root>/windows/system32/hal.dll
=========


究竟可以怎解決?
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 用Grub做Dual boot不成功!

#5

帖子 wangdu2002 » 2010-04-07 22:05

/dev/sdb1 500Mb /boot
/dev/sdb2 * 26Gb Windows C:
/dev/sdb3 1Gb Swap
/dev/sdb4 12Gb /
明明是sdb。。。为啥用hd0呢,要用hd1的硬盘标识符才对喔。。。 :em09
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
besok
帖子: 16
注册时间: 2008-02-02 15:07

Re: 用Grub做Dual boot不成功!

#6

帖子 besok » 2010-04-07 22:29

這是因為我改變了BIO裡硬碟的開機次序,sdb是第一個打開的硬碟,sda反而是第二個硬碟,所以 sdb就變成hd0了…

我的/boot放在sdb1裡(即grub中的hd0,0),一樣可以導入linux。這hd0,0也不會有錯吧? :em06
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 用Grub做Dual boot不成功!

#7

帖子 smallapple » 2010-04-07 22:34

硬盘有没有其他活动分区?
sudo fdisk -l
看看
besok
帖子: 16
注册时间: 2008-02-02 15:07

Re: 用Grub做Dual boot不成功!

#8

帖子 besok » 2010-04-07 22:44

其實我有兩個硬碟,sudo fdisk -l的結果是這樣的:

==========================================================
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4d662487

Device Boot Start End Blocks Id System (<----------只用來放個人檔案的硬碟)
/dev/sda1 1 30401 244196001 7 HPFS/NTFS

Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x03e203e1

Device Boot Start End Blocks Id System (<-----安裝雙系統的硬碟)
/dev/sdb1 1 64 514048+ 83 Linux (<-------------/boot)
/dev/sdb2 * 65 3328 26218080 7 HPFS/NTFS (<-------------XP)
/dev/sdb3 3329 3459 1052257+ 82 Linux swap / Solaris (<-------------Swap)
/dev/sdb4 3460 4865 11293695 83 Linux (<-------------/ (root) )

Disk /dev/sdc: 2007 MB, 2007498752 bytes (<----USB手指,可省)
62 heads, 62 sectors/track, 1020 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes
Disk identifier: 0x0007029a

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1020 1960409 c W95 FAT32 (LBA)
======================================================================
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 用Grub做Dual boot不成功!

#9

帖子 smallapple » 2010-04-07 22:50

按这样看,xp 不认识 Linux分区的,boot.ini应该是这样

[boot loader]
timeout=30
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"

menu.lst 写这样试试

代码: 全选

title Windows XP Professional SP3
root (hd0,1)
chainloader +1
besok
帖子: 16
注册时间: 2008-02-02 15:07

Re: 用Grub做Dual boot不成功!

#10

帖子 besok » 2010-04-07 23:02

謝謝你啊!

我按你的指示修改了設定,現在便reboot

待會報告 :em01
besok
帖子: 16
注册时间: 2008-02-02 15:07

Re: 用Grub做Dual boot不成功!

#11

帖子 besok » 2010-04-07 23:18

出現了Grub畫面選擇windows及linux
只是,選擇windows後,出現了來自windows的訊息(沒有出現windows的商標):

============
下列檔案遺漏或損壞,無法啟動windows
<windows root>\system32\hall.dll
請重新安裝一份上列檔案的拷貝
============

出現了什麼問題? :em20
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 用Grub做Dual boot不成功!

#12

帖子 wangdu2002 » 2010-04-07 23:39

楼主用的是GNU的grub0.97吧。。。而不应该要用的grub4dos。。。 :em20
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 用Grub做Dual boot不成功!

#13

帖子 smallapple » 2010-04-08 8:53

besok 写了:出現了Grub畫面選擇windows及linux
只是,選擇windows後,出現了來自windows的訊息(沒有出現windows的商標):

============
下列檔案遺漏或損壞,無法啟動windows
<windows root>\system32\hall.dll
請重新安裝一份上列檔案的拷貝
============

出現了什麼問題? :em20
从 boot.ini 不能找到windows 启动分区。

boot.ini 加个 C:\Windows启动项试试:
[boot loader]
timeout=30
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"
C:\WINDOWS="WIndows XP"

选第二项的 Windows XP 看能不能启动,不行的话可能得把 /boot 分区和 XP 分区换个位置,让 xp的分区排在硬盘最前面。
回复