GRUB Mystery

Jim Kuzdrall gnhlug at intrel.com
Mon Jul 18 20:44:00 EDT 2005


Greetings,

    I just installed SuSE 9.3 on an alternate drive, and I want to boot 
into it from the normal GRUB menu.  The main and clone drives have SuSE 
8.2, which is stable and working well.  (Why I am upgrading, I can't 
guess.)

    I can boot in from the floppy described below.  If I boot choice 2 
from the first scsi (my normal boot), it hangs after mounting /proc.  I 
can see from the screen dump that it is loading Linux 2.4 modules from 
sda2, which won't work with 2.6.

    The normal boot works fine for the two SuSE 8.2 drives, as it had 
before.

    If I switch the grub line to chainload, GRUB clears the screen, 
prints the command lines and hangs.

    As described below, I have tried loading stage1 and stage2 modules 
to /dev/sdb2/boot/grub from the successful floppy and via 9.3's 
grub-install.  I did grub setup from floppy and from SuSE 9. drive.  
Nothing so far works.  I am running out of experiments to try.

    Details follow:

device.map
(hd0)  /dev/hda   ; has SuSE 8.2, clone
(hd1)  /dev/sda   ; has SuSE 8.2, main
(hd2)  /dev/sdb   ; has SuSE 9.3
(fd0)  /dev/fd0

One of many tries: ------------------------------------------
1. boot into sdb2, SuSE 9.3 installation
2. grub-install /dev/sdb2
3. grub
     > root (hd2,1)
     > setup /dev/sdb2
     > quit

This boot works; SuSE 9.3 boots up from sdb2
floppy-boot: /boot/grub/ directory 
--------------------------------------
-rw-r--r--    1 jak      jak          7520 2003-11-08 20:59 
e2fs_stage1_5
-rw-------    1 jak      jak          1108 2005-07-17 22:13 menu.lst
-rw-r--r--    1 jak      jak           512 2003-11-08 20:55 stage1
-rw-r--r--    1 jak      jak        100586 2003-11-08 20:55 stage2
-rw-r--r--    1 jak      jak        159740 2003-11-08 20:55 
stage2.netboot

floppy menu.lst 
----------------------------------------------------------
# Created according to Nutshell p511, 08-Nov-03 from sda menu.lst
# See lnx_hw2_bootgrub.sxw.
# 05-Dec-03 jak; documentation
# 08-Nov-03 jak; change all drive reference to GRUB notation
# 17-Jul-05 jak; change name to menu.1st; new Seagate partition order

color white/blue black/light-gray
default 0
gfxmenu (hd0,1)/boot/message
timeout 10

title SuSE 8.2 Clone drive ide82  hda2 ( via floppy)
    root (hd0,1)
    kernel (hd0,1)/boot/vmlinuz ro root=/dev/hda2 vga=0x317 
splash=silent showopts noapic
    initrd (hd0,1)/boot/initrd

title SuSE 8.2 ibm sda2
    root (hd1,1)
    kernel (hd1,1)/boot/vmlinuz ro root=/dev/sda2 vga=0x317 
splash=silent showopts noapic
    initrd (hd1,1)/boot/initrd

title SuSE 9.3 seagate sdb2
#Partitions: (hd2,0)=swap, (hd2,1)=boot & root
    kernel (hd2,1)/boot/vmlinuz ro root=/dev/sdb2 vga=0x317 
splash=silent
showopts noapic
    initrd (hd2,1)/boot/initrd

title failsafe
    root (hd0,1)
    kernel (hd0,1)/boot/vmlinuz.shipped root=/dev/hda2 showopts 
ide=nodma apm=off acpi=off vga=normal nosmp noapic maxcpus=0 3
    initrd (hd0,1)/boot/initrd.shipped

This does not work; loading fails with #lines, grub fails with 
chainloader
scsi-boot: /boot/grub/ directory 
----------------------------------------------------------
-rw-r--r--    1 root     root           60 2005-07-17 21:57 device.map
-rw-r--r--    1 root     root         7520 2003-03-13 19:17 
e2fs_stage1_5
-rw-r-----    1 root     jak          1387 2005-07-18 19:20 menu.lst
-rw-r--r--    1 root     root          512 2003-03-13 19:17 stage1
-rw-r--r--    1 root     root       100586 2003-09-23 23:31 stage2

scsi-boot: menu.lst 
----------------------------------------------------------
# Modified by YaST2. Last modification on Wed Sep 24 03:30:57 2003
# For ulb SCSI drive 0 (ibm), called hd1 to GRUB
# Created by jak according to Nutshell p511.  See lnx_hw2_bootgrub.sxw.
# 03-Oct-04 jak; add scsi emulation for CD-DVD at hdc
# 05-Dec-03 jak; documentation
# 08-Nov-03 jak; note source drive on first choice)
# 30-Oct-03 jak; add noapic
# 17-Jul-05 jak; adjust sdb for SuSE 9.3; sdb1=swap sdb2=boot&root

color white/blue black/light-gray
default 0
gfxmenu (hd0,1)/boot/message
timeout 10


title SuSE 8.2 IBM sda2 (via scsi 0)
# Partitions: (hd1,0)=swap; (hd1,1)=boot and root
    kernel (hd0,1)/boot/vmlinuz root=/dev/sda2 vga=0x317 splash=silent 
showopts noapic
    initrd (hd0,1)/boot/initrd

title SuSE 9.3 Sea sdb2
# Partitions: (hd2,0)=swap; (hd2,1)=boot & root;
#    kernel (hd2,1)/boot/vmlinuz ro root=/dev/sdb2 vga=0x317 
splash=silent noapic
#    initrd (hd2,1)/boot/initrd
    root (hd2,1)
    chainloader +1
    boot

title SuSE 8.2 IDE hda2
#Partitions: (hd0,0)=swap; (hd0,1)=boot and root; (hd0,2)=aux
    kernel (hd2,1)/boot/vmlinuz root=/dev/hda2 vga=0x317 splash=silent 
showopts noapic
    initrd (hd2,1)/boot/initrd

title floppy
    root (fd0)
    chainloader +1

title failsafe
    kernel (hd0,1)/boot/vmlinuz.shipped root=/dev/sda2 showopts 
ide=nodma apm=off acpi=off vga=normal nosmp noapic maxcpus=0 3
    initrd (hd0,1)/boot/initrd.shipped


 



More information about the gnhlug-discuss mailing list