LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: freesky3555

grub的问题,能引导Win2K3不能引导Lin

[复制链接]
发表于 2006-10-22 23:27:17 | 显示全部楼层
把你现在的 /boot/grub/grub.conf 和 ls /boot 的结果贴上来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 14:14:10 | 显示全部楼层
这是/boot/grub/grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,7)
#          kernel /vmlinuz-version ro root=/dev/hdc9
#          initrd /initrd-version.img
#boot=/dev/hdc
default=1
tImeout=30 color white/blue blue/green
ko
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
        root (hd0,6)
        kernel /vmlinuz-2.4.20-8 ro root=/dev/hdc7
        initrd=/initrd-2.4.20-8.img
title Windows 2003
        rootnoverify (hd0,0)
        chainloader +1


这是ls /boot的结构:

boot.b
chain.b
config-2.4.20-8
grub
initrd-2.4.20-8.img
kernel.h
lost+found
message
message.ja
module-info
module-info-2.4.20-8
os2_d.b
System.map
System.map-2.4.20-8
vmlinux-2.4.20-8
vmlinuz
vmlinuz-2.4.20-8
回复 支持 反对

使用道具 举报

发表于 2006-10-23 14:46:37 | 显示全部楼层
root (hd0,7)

kernel kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi /*问题出现在这一步,到这一步的时候就不能执行下去了*/

"LABEL=/"改为"LABEL=/1" 后面加一个1 试试
回复 支持 反对

使用道具 举报

发表于 2006-10-23 14:51:04 | 显示全部楼层
有没有 /etc/inittab 这个文件?有的话内容是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 15:24:19 | 显示全部楼层
Post by shael
"LABEL=/"改为"LABEL=/1" 后面加一个1 试试


LABEL=/ 就对着呢,是我后来改的 ro root=/dev/hdc7这个不对。现在已经启动了!呵呵呵呵。
我把/boot/grub/grub.conf给大家帖上来看。

谢谢大家了!

################################################
#                                                                                                           #
# /boot/grub/grub.conf                                                                      #
#                                                                                                           #
################################################


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,7)
#          kernel /vmlinuz-version ro root=/dev/hdc9
#          initrd /initrd-version.img
#boot=/dev/hdc
default=1
tImeout=30 color white/blue blue/green
ko
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
        root (hd0,6)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hda=ide-scs
        initrd=/initrd-2.4.20-8.img
title Windows 2003
        rootnoverify (hd0,0)
        chainloader +1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 15:28:26 | 显示全部楼层
这个是/etc/inittab文件,是启动配置吧。


#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
                                                                                
# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:
                                                                                
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
                                                                                
l0:0:wait:/etc/rc.d/rc 0
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
                                                                                
# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
                                                                                
# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "ower Failure; System Shutting Down"
                                                                                
# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "ower Restored; Shutdown Cancelled"
                                                                                
                                                                                
# Run gettys in standard runlevels

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
                                                                                
# Run xdm in runlevel 5
x:5:respawn:/etc/X11/prefdm -nodaemon
回复 支持 反对

使用道具 举报

发表于 2006-10-23 15:48:03 | 显示全部楼层
Post by freesky3555
LABEL=/ 就对着呢,是我后来改的 ro root=/dev/hdc7这个不对。现在已经启动了


那你的问题已经解决了,是吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-23 20:58:46 | 显示全部楼层
对,已经解决了。主要是root(hd0,6)的问题,后来的问题都是我改出来的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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