红联Linux门户
Linux帮助

急救我的grub.conf

发布时间:2010-01-21 23:36:19来源:红联作者:weimmy
我想从移动硬盘启动REDHAT但是启动不了,我的grub.conf和menu.ls如下:敬请各位大虾帮帮忙了阿
grub.conf如下:
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
root (hd0,1)
kernel /boot/xen.gz-2.6.18-53.el5 crashkernel=512M@16M
module /boot/vmlinuz-2.6.18-53.el5xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-53.el5xen.img





menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/sda2
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
root (hd0,1)
kernel /boot/xen.gz-2.6.18-53.el5 crashkernel=512M@16M
module /boot/vmlinuz-2.6.18-53.el5xen ro root=LABEL=/ rhgb quiet
module /boot/initrd-2.6.18-53.el5xen.img
文章评论

共有 4 条评论

  1. baizx 于 2010-01-25 09:33:58发表:

    [i=s] 本帖最后由 baizx 于 2010-1-25 10:42 编辑 [/i]

    4# deepwhite

    移动硬盘是U口的 启动的话 需要在BOIS做启动设置 设置成U盘启动

    如果不行
    使用LINUX安装盘 或者 硬盘安装方式 进行GRUB 安装 注意:只是进行GRUB安装(你现在的默认启动是 WIN的MBR,得使WIN的MBR知道你的移动硬盘GRUB存在) 然后在 grub.conf里 进行修改
    添加title winxp 做成双系统(这个只是猜测,我没有做过移动硬盘和本机硬盘的双系统,N个本地本地硬盘到是可以)
    title winxp
    map (hd0) (hd1)
    map (hd1) (hd0)
    root (hd1,0)(按实际情况修改)
    chainloader (hd1,0)+1(按实际性况修改)
    makeactive
    boot

  2. deepwhite 于 2010-01-25 09:02:05发表:

    引用:
    我自己本身机子里面的是160G的win系统,跟移动硬盘是分开的。
    weimmy 发表于 2010-1-23 21:17

    答非所问……

  3. weimmy 于 2010-01-23 21:17:34发表:

    我自己本身机子里面的是160G的win系统,跟移动硬盘是分开的。

  4. deepwhite 于 2010-01-22 09:00:00发表:

    你本地硬盘分区情况如何?
    执行下
    fdisk -l
    然后把结果贴上来看看吧。

    还有,你这个grub.conf是自己本地硬盘上的还是移动硬盘上的?