LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1092|回复: 17

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

[复制链接]
发表于 2006-10-20 17:33:13 | 显示全部楼层 |阅读模式
Win2K3和RedHat9双系统,重装Win后用Linux secuse进入Linux,
sh#:grub
grub>root (hdc0,7)
grub>setup (hdc0)

退出后重起,问题有二:
1 进入grub后看不到菜单和画面。
2 引导Linux不成功

下面是我的根目录结构和/boot目录结构,后面是/boot/grub/grub.conf文件,请大侠给分析一下。
/
bin
boot
bootsect.lnx
dev
etc
home
initrd
lib
lost+found
misc
mnt
opt
poweroff
proc
root
sbin
tmp
usr
var

/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

/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,7)/boot/grub/splash.xpm.gz

title Red Hat Linux (2.4.20-8)
       
         root (hd0,7)
       
         kernel kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi /*问题出现在这一步,到这一步的时候就不能执行下去了*/
        initrd /boot/initrd-2.4.20-8.img

title Windows 2003              /*Windows可以正常起动*/

        rootnoverify (hd0,0)

        chainloader +1
发表于 2006-10-20 20:40:05 | 显示全部楼层
Post by freesky3555


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


kernel kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

是你输入错误?
kernel kernel 有2个
回复 支持 反对

使用道具 举报

发表于 2006-10-20 20:41:20 | 显示全部楼层
Post by freesky3555


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


kernel kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

是你输入错误?
kernel kernel 有2个
回复 支持 反对

使用道具 举报

发表于 2006-10-20 21:29:23 | 显示全部楼层
Win2K3和RedHat9双系统,重装Win后用Linux secuse进入Linux,
sh#:grub
grub>root (hdc0,7)
grub>setup (hdc0)

这里就有问题啦,
应该是
grub>root (hd0,7)
grub>setup (hd0)
回复 支持 反对

使用道具 举报

发表于 2006-10-21 03:44:00 | 显示全部楼层
把 /boot/grub/grub.conf 中多余的那个 kernel 去掉,再照 4 楼进 grub 修复一遍(别再打错了!)。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-22 07:56:20 | 显示全部楼层
Post by sanebaby
kernel kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi

是你输入错误?
kernel kernel 有2个


这个是我输入的错误,但一个kernel的时候也是File not found呀!
现在是这样:
grub>root (hd0,7)
grub>setup (hd0)
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...no
grub>kernel /boot/vmlinuz-2.4.20.8 ro root=LABEL=/ hdc=ide-scsi
Error 15:File not found
回复 支持 反对

使用道具 举报

发表于 2006-10-22 08:26:43 | 显示全部楼层
是否升级过内核?你的内核版本到底是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-22 20:56:26 | 显示全部楼层
内核没有升级过
主要问题已经找到,是(hd0,6)
root (hd0,6)
但还是不能启动,是执行到initrd这一句的时候不能执行了。
回复 支持 反对

使用道具 举报

发表于 2006-10-22 21:35:02 | 显示全部楼层
把详细出错信息贴下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-22 22:53:41 | 显示全部楼层
这是启动到出错的屏幕显示:

Red Hat nash version 3.4.42 starting
Loading jbd.o module
Journalled Block Device driver loaded
Loading ext3.0 module
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
kjournald starting  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode
pivotroot: pivot_root (/sysroot,/sysroot/initrd) failed: 2
umount  /initrd/proc  failed: 2
Freeing unused kernel memory:132k freed
Kernel panic: No init found  Try passing init=option to kernel
回复 支持 反对

使用道具 举报

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

本版积分规则

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