Repair/rescue in 11.2 LiveCD??

MSWinXP has somehow borked my Grub, leaving me able to boot 11.2, but NOT to my 11.1 which is on a separate disk. No problem, I thinks, I’ll just boot to the live CD, and use “REPAIR” but… There isn’t one???
Or am I just being very stupid again?
I have tried a number of times, hitting F1/help at the initial boot choices screen on LiveCD, help says there is a repair option, but I can’t find it?? Is there one?
If not, how best to run a grub repair? Is there one on Netinstall .iso? I don’t have an optical drive so I boot from USB.
Is Swerdna’s guide to grub still applicable to 11.2?

Grub hasn’t changed - significant new upstream development stalled a long time ago (in favour of grub2), which is why all the things like ext4 handling have been patched by the distros individually.

Swerdna’s guide will still apply I’m sure.

If you’re unsure, give us an ‘fdisk -l’ and a ‘cat /boot/grub/menu.lst’ and we can give you some tips…

[PS - I don’t think there’s a grub repair on the Live CD. Once you’ve booted the system you can fix it within YaST, personally I prefer to do it the manual way…]

Thanks for this, I thought I was going mad!
I Had MsWinXP on the 300gb drive (sda here), then installed 11.1 to the 120gb (sdb)
They lived together happily with openSuse grub menu working fine and dual booting.

I then installed 11.2 on to the 300Gb, leaving windows where it was and only sharing the swapfile on the 120Gb. All was fine, and triple boot available, 11.2’s grub menu would appear first, if I wanted 11.1 I selected it, then the old 11.1 grub menu would appear. Yesterday I booted MsWin for the first time since installing 11.2.
Now, I boot and get the 11.2 grub menu, but if I select ANYTHING other than 11.2, MsWinXP starts…

Here are the infos:

Disk /dev/sda: 300.1 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6bf99939

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4653    37375191    7  HPFS/NTFS
/dev/sda2            4654       17402   102406342+   7  HPFS/NTFS
/dev/sda3           17403       36483   153268132+   f  W95 Ext'd (LBA)
/dev/sda5           17403       20013    20972826   83  Linux
/dev/sda6           20014       36483   132295243+  83  Linux

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2a4e2a4d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb3   *        2624       14593    96149025    f  W95 Ext'd (LBA)
/dev/sdb5            2624        2885     2104483+  82  Linux swap / Solaris
/dev/sdb6            2886        5496    20972826   83  Linux
/dev/sdb7            5497       14593    73071621   83  Linux


~> sudo cat /boot/grub/menu.lst
root's password:                                  
# Modified by YaST2. Last modification on Wed Nov 18 23:49:41 GMT 2009
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader          
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd1,4)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.2                                                     
    root (hd1,4)                                                        
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Maxtor_7L300S0_L60LCJ0G-part5 resume=/dev/disk/by-id/ata-ST3120022A_5JT3CL13-part5 splash=silent quiet showopts vga=0x348      
    initrd /boot/initrd-2.6.31.5-0.1-default                                                       

###Don't change this comment - YaST2 identifier: Original name:  openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)###                                                                                   
title  openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)                                             
    root (hd0,5)                                                                                   
    configfile /boot/grub/menu.lst                                                                 

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

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2
    root (hd1,4)
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Maxtor_7L300S0_L60LCJ0G-part5 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1  x11failsafe vga=0x348
    initrd /boot/initrd-2.6.31.5-0.1-default

###Don't change this comment - YaST2 identifier: Original name: memtest86###
title Memory Test
    kernel (hd1,4)/boot/memtest.bin

###Don't change this comment - YaST2 identifier: Original name: linux###
title Kernel-2.6.31.5-0.1-default
    root (hd1,4)
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-Maxtor_7L300S0_L60LCJ0G-part5 resume=/dev/disk/by-id/ata-ST3120022A_5JT3CL13-part5 splash=silent quiet showopts vga=0x348
    initrd /boot/initrd-2.6.31.5-0.1-default

Well, obviously it makes sense to back up any important files before meddling with them (especially on the suggestions of a confused entity such as myself…)

But if you were seeing both grub menus, then it stands to reason that there may well be a grub on sdb6.

So I’d try putting


###Don't change this comment - YaST2 identifier: Original name:  openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)###                                                                                   
title  openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)                                             
    root (hd0,5)                                                                                   
    chainloader +1

and seeing what that does.

If it doesn’t work, I’d just reinstall grub…

From your 11.2 root terminal


grub
find /boot/grub/stage1

grub returns two locations (presumably) in grub notation, (hd0,5) and (hd1,4). You then put


cat (hd0,5)/boot/grub/menu.lst

Grub returns your 11.1 menu.lst. Satisfied that you have the right partition, you then run


root (hd0,5)
setup (hd0,5)
quit

Reinstalling grub onto that partition. Post back if anything unexpected happens…

So I’d try putting

Code:

###Don’t change this comment - YaST2 identifier: Original name: openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)###
title openSUSE 11.1 - 2.6.27.37-0.1 (pae) (/dev/sdb6)
root (hd0,5)
chainloader +1

and seeing what that does.

I tried this, and got something like:

fstype=ext3 partition=0x83
chainloader +1
error 13
Invalid or unsupported executable format

As for the second of your suggestions, would not that boot me ONLY to 11.1, and overwrite what 11.2 added?

I reckon I should start a new thread, as we are OT from the repair option title, TY for the helps so far! I hope to see you in the new thread:

Grub gone wrong! - openSUSE Forums