LinuxSir.cn,穿越时空的Linuxsir!

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

双硬盘设置grub/menu.lst问题(已解决)

[复制链接]
发表于 2007-12-31 13:33:50 | 显示全部楼层 |阅读模式
这电脑还有个读卡器。
第一个硬盘是SATA接口,分了两个NTFS分区装了XP。第二个硬盘是IDE接口,第一分区32m作boot分区,第三分区11G用的XFS作/分区,还有个交换分区,这三个分区装Debian了,剩下的作扩展分区装了SuSE。先装的SuSE,然后装了Debian。都是选的Grub在MBR上。但是现在Grub只是SuSE设置的。Debian似乎没装上Grub。
我该如何手工添加到menu.lst里?

下面是现在我弄得menu.lst

# Modified by YaST2. Last modification on 一 12月 31 13:17:04 CST 2007
default 0
timeout 8
gfxmenu (hd1,6)/boot/message

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title windows XP
    rootnoverify (hd1,6)
    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd1,6)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_Maxtor_6L080P0_L23NT13G-part7 vga=0x314 resume=/dev/sdb6 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-default

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title Debian
    root (hd1,0)
    kernel /vmlinuz-2.6.18-5-686 root=/dev/sdb1 ro
    initrd /initrd.img-2.6.18-5-686

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd1,6)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_Maxtor_6L080P0_L23NT13G-part7 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
    initrd /boot/initrd-2.6.22.5-31-default

XP和SuSE都启动正常,就是我手工添加的Debian项不行。
一般到下面信息
sd 8:0:0:0: Attached scsi removable disk sdb
sd 8:0:0:1: Attached scsi removable disk sdc
sd 8:0:0:2: Attached scsi removable disk sdd
sd 8:0:0:3: Attached scsi removable disk sde
卡一会
继续显示
ALERT! /dev/sdb1 does not exist. Dropping to a shell!
======================================
kernel /vmlinuz-2.6.18-5-686 root=/dev/sdb1 ro
改成
kernel /vmlinuz-2.6.18-5-686 root=/dev/hdf3 ro
就可以了
果然是因为读卡器占用了sdb到sde的盘符
而且root=要指向根分区
发表于 2007-12-31 13:45:27 | 显示全部楼层
kernel /boot/vmlinuz-2.6.18-5-686

看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-31 14:05:39 | 显示全部楼层
试验了,不行哟
Grub提示
Error 15: File not found

因为boot是个单独分区,不在/分区里

我怀疑跟读卡器有关。是不是root=/dev/sdb1  应该特殊设置?
回复 支持 反对

使用道具 举报

发表于 2007-12-31 14:58:14 | 显示全部楼层
切换到 grub 的命令行,输入:
  1. root (
复制代码
然后按 TAB,看看你的 debian 到底在哪个分区
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-31 15:10:03 | 显示全部楼层
vmlinuz-2.6.18-5-686和initrd.img-2.6.18-5-686都在boot分区(hd1,0)没错,因为都读入运行了,只是运行到读卡器部分就不往下走了,好像是sdb变成了读卡器,kernel /vmlinuz-2.6.18-5-686 root=/dev/sdb1 就有问题了吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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