QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1709|回复: 2

关于grub引导双系统的问题

[复制链接]
发表于 2006-4-22 17:01:02 | 显示全部楼层 |阅读模式
大家好:
    我碰到了一个关于grub的问题,我硬盘的分区是这样的,总共是6个区,然后在最后一个盘,即H盘装了windows xp,然后在C盘下面装了debian,可是装好之后启动,确定在grub引导系统选择的界面下,只有debian系统,没有windows选择的栏,然后我改了/boot/grub/menu.lst文件,我的代码如下:
# menu.lst - See: grub(, info grub, update-grub(
#            grub-install(, grub-floppy(,
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default                0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout                3

# Pretty colours
color cyan/blue yellow/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title                Windows 95/98/NT/2000
# root                (hd0,0)
# makeactive
# chainloader        +1
#
# title                Linux
# root                (hd0,1)
# kernel        /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title                Debian GNU/Linux, kernel 2.6.8-2-386
root                (hd0,0)
kernel                /vmlinuz-2.6.8-2-386 root=/dev/hda3 ro
initrd                /initrd.img-2.6.8-2-386
savedefault
boot

title                Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root                (hd0,0)
kernel                /vmlinuz-2.6.8-2-386 root=/dev/hda3 ro single
initrd                /initrd.img-2.6.8-2-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

title Other operatings systems:
root

title Windows XP Professional
root (hd0,
savedefault
makeactive
chainloader  +1
boot

其中
title Other operatings systems:
root

title Windows XP Professional
root (hd0,
savedefault
makeactive
chainloader  +1
boot
这些是我自己后来加进去的,然后重启之后就有了选择栏了,可是选择进入windows xp时,出来错误提示是
root (hd0,8)
Filesystem type is fat,partition type Oxb
savedefault
makeactive
ERROR 12: Invalid device requested


我也已经尝试过:
grub>root (hd0,0)
grub>setup (hd0)
显示是成功的,succeed,我不知道怎么办了阿,希望大虾们能教我一下,是不是我windows必须装在C盘下面,grub才能识别阿?     
发表于 2006-4-23 22:36:37 | 显示全部楼层
你是先装win的还是debian的? 原来装好的win能不能启动?

注:方便的话给出fstab看一下
回复

使用道具 举报

发表于 2006-4-24 10:43:22 | 显示全部楼层

Re: 关于grub引导双系统的问题

[quote:6830003733="bigcakex"]是不是我windows必须装在C盘下面,grub才能识别阿?[/quote]
不是C嗎?[code:1]fdisk -l[/code:1]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-7-3 14:52 , Processed in 0.431238 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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