分页: 1 / 1

dubuntu的grub问题

发表于 : 2006-10-15 9:01
caqis
我用了2个硬盘
主硬盘80g
从硬盘250g
主硬盘80g 装xp,
从硬盘250g 第一分区装dubuntu,
grub装在从盘上,
bios 设定为从hd1 (从硬盘) 起动


开始的.meun.lst


title dubuntu-6.06
root (hd1,0)
kernel /vmlinuz ro root=/dev/hdb1 quiet splash
initrd /initrd.img

title Microsoft Windows
root (hd0,0)
chainloader +1

linux,windows都无法起动,

我把 (hd1,0) (hd0,0) 互换了一下,


title dubuntu-6.06
root (hd0,0)
kernel /vmlinuz ro root=/dev/hdb1 quiet splash
initrd /initrd.img

title Microsoft Windows
root (hd1,0)
chainloader +1

linux,windows都能起动了,

但是 后来起动windows 报错, 起动linux能行
起动windows 只能 在bios 从新设定 从hd0起动,

重新安grub 后 问题任然
??????????????????

发表于 : 2006-10-25 21:23
dajian0509
等待高手的到来了
俺也学学呢

发表于 : 2006-10-25 21:41
eexpress
不会是bios里面有自动交换硬盘的选项吧。

发表于 : 2006-10-27 18:39
老客628
我也有类似的毛病。重写了mbr后。再也装不上grub了

发表于 : 2006-11-01 15:51
LIEDY
晕,没人解决,我也是这样呀,
主硬盘80g
从硬盘6.4g
主硬盘80g c盘 装xp,
从硬盘6.4g 第一分区主分区装dubuntu,第二分区是交换区,没了
grub装在从盘上, 安装dubuntu时,拔掉了80g的硬盘数据线
主板CMOS设定为从hd1 (从硬盘6.4g的) 起动

起动到grub有几个可选
1.dubuntu 6.06
.....
.....
5.microsoft windows

选第1可以起动进入dubuntu,
选第5就不能启动win

编辑dubuntu的menu.lst

其中关于win的

title Microsoft Windows
rootnoverify (hd0,0)
chainloader +1
这是装好dubuntu默认的,,这样起动不了win,然后我改成:

title Microsoft Windows
rootnoverify (hd1,0)
chainloader +1

还是不行!请高手指教一下,这样的情况,
title Microsoft Windows 下面的命令行怎么打?才能引导进入win?

刚搜到一篇关于grub的文章,这样说的:

如果您的机器有两块硬盘,而Windows 位于第二个硬盘的第一个分区,也就是(hd1,0)

您可以用grub的map来指令来操作把两块硬盘的序列对调,这样就不用在BIOS中设置了;在menu.lst中加如下的内容,比如下面的;


title WinXp
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
makeactive

不知这样可不可以解决,我现在试不到,下了班再回去试试,!

发表于 : 2006-11-01 18:46
LIEDY
唉,还是不行,这是我的硬盘分区情况,麻烦高手帮我把诊,谢谢!

dubuntu@dubuntu:~$ sudo fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1245 10000431 c W95 FAT32 (LBA)
/dev/hda2 1246 9964 70035367+ f W95 Ext'd (LBA)
/dev/hda5 1246 3735 20000893+ b W95 FAT32
/dev/hda6 3736 6850 25021206 b W95 FAT32
/dev/hda7 6851 9964 25013173+ b W95 FAT32

Disk /dev/hdb: 4310 MB, 4310433792 bytes
255 heads, 63 sectors/track, 524 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 498 4000153+ 83 Linux
/dev/hdb2 499 524 208845 5 Extended
/dev/hdb5 499 524 208813+ 82 Linux swap / Solaris

menu.lst配置
default 0
timeout 10
# hiddenmenu
#color cyan/blue white/blue

# vga=0xNNN
# 0x31B = 1280 x 1024 24
# 0x318 = 1024 x 768 24
# 0x317 = 1024 x 768 16
# 0x315 = 800 x 600 24

title dubuntu-6.06
root (hd0,0)
kernel /vmlinuz ro root=/dev/hdb1 quiet splash
initrd /initrd.img

title dubuntu-6.06 (safe graphics mode)
root (hd0,0)
kernel /vmlinuz ro root=/dev/hdb1 xforcevesa quiet splash
initrd /initrd.img

title dubuntu-6.06 (console mode)
root (hd0,0)
kernel /vmlinuz ro root=/dev/hdb1 single
initrd /initrd.img

title memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin


title Microsoft Windows
root (hd1,0)
chainloader +1

发表于 : 2006-11-01 22:51
LIEDY
唉,ubuntu下的GRUB还是搞不好,不过在用grub for win搞好了,现在不用老在CMOS切换了!

1.首先到:http://newdos.yginfo.net/dosware/grub/g ... .zip下载grub for win!
2.解压其中的grldr和grub.exe到C盘的根目录下!(我XP装在C盘)
3.编辑C盘下的boot.ini,在最后面加上:C:\grldr=Ubuntu
4.修改ubuntu里面的menu.lst,因为我在CMOS是设主硬盘(WIN,从硬盘装dubuntu)启动的,所以改:root (hd0,0)为root (hd1,0),如下:

title dubuntu-6.06
root (hd1,0)
kernel /vmlinuz ro root=/dev/hdb1 quiet splash
initrd /initrd.img

title dubuntu-6.06 (safe graphics mode)
root (hd1,0)
kernel /vmlinuz ro root=/dev/hdb1 xforcevesa quiet splash
initrd /initrd.img

title dubuntu-6.06 (console mode)
root (hd1,0)
kernel /vmlinuz ro root=/dev/hdb1 single
initrd /initrd.img

title memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin

5.在CMOS设为主硬盘作为启动盘!就OK了!


我是个新手,这问题是不是太幼稚了?献丑了~呵呵!