LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to restore boot loader on Mandriva 09 dual boot with Suse 11.0 ? (https://www.linuxquestions.org/questions/mandriva-30/how-to-restore-boot-loader-on-mandriva-09-dual-boot-with-suse-11-0-a-695425/)

dolphans1 12-01-2008 04:54 AM

How to restore boot loader on Mandriva 09 dual boot with Suse 11.0 ?
 
Okay simple question, I am trying to restore my dual boot-loader on Mandriva 2009 and OpenSuse 11.0.

Somehow during one of my updates with a newer kernel and removal of my older kernel on Manriva 2009, the grub boot-loader erased OpenSuse from the boot-loader menu.

What is an easy fix for this?

I thought about doing a complete new install of Mandriva 2009 without formatting to accomplish said repair.

Anyone offer a better solution or advice?

d-1

lurko 12-01-2008 05:16 AM

I use a GRUB boot cd for this kind of thing. Basically you boot the CD and get a GRUB prompt. then you run:
Code:

find /boot/grub/stage1
this should spit out the drive, or drives, where you have GRUB installations(in GRUB's device nomenclature). If there's more than one you'll have to know which is the correct one. Then you take the one you want and run:
Code:

root (hdx,x)
Where x,x is the drive with the GRUB installation you want to restore. Then:
Code:

setup (hd0)
to restore the installation you pointed to with the root command onto the MBR.

Then run "reboot" on the GRUB prompt, eject the CD, and you should be greeted with GRUB after the POST.

dolphans1 12-01-2008 11:12 AM

I am a bit confused, here is what I see when I go to MCC and enter into boot-loader and pull down on the arrow scroll down.

when I pull the scroll arrow down in MCC in grub, here is what I see in exact order.....

/dev/sda (ATA Maxtor STM332062)
/dev/sdg/ (samsung HDSOMUJ1MP729155
/dev/sda1
/dev/sda5
/dev/sdg6
/dev/sdg1
/dev/sdg2
/dev/Fdo (H1440)

ronlau9 12-01-2008 12:24 PM

Which boot loader did you use mandriva or Opensuse ?
Tell us which one
Open a terminal as su run the command fdisk -l(L lower case) and give the output

dolphans1 12-01-2008 10:53 PM

Sorry I did not post sooner, I got in late......I appreciate the help:
OpenSuse is on the sdg drive....


Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3d7bd5ad

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1019 8185086 83 Linux
/dev/sda2 1020 38913 304383555 5 Extended
/dev/sda5 1020 1528 4088511 82 Linux swap / Solaris
/dev/sda6 1529 38913 300294981 83 Linux

Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d156c

Device Boot Start End Blocks Id System
/dev/sdg1 1 2611 20972826 83 Linux
/dev/sdg2 2612 60801 467411175 83 Linux

Mandriva 2009 is on sda drive, OpenSuse is on sdg drive










Quote:

Originally Posted by ronlau9 (Post 3360739)
Which boot loader did you use mandriva or Opensuse ?
Tell us which one
Open a terminal as su run the command fdisk -l(L lower case) and give the output


dolphans1 12-05-2008 02:20 PM

Solution to broken dual-boot boot loader:

This is what I did to resolve my broken dual boot-loader for mandriva and Suse.

1) Use Mandriva 2009 Installation DVD
2) Choose New Installation, but do not format any of the drives
3) name the 2nd drive /whatevernameyouchoose /whatevernameyouchooseHOME
4) Choose 1st sector of sda for MBR
5) Configure Items such as Timezone and Internet connection and proceed with obvious rest of the steps

Viola.....dual boot with Mandriva and Suse......

d-1

Xalorous 12-08-2008 03:23 PM

attempting triple boot with xp, ubuntu, suse
 
1. Installed XP. Works fine.
2. Installed Ubuntu. Can boot to either without problem.
3. Installed SUSE 11 x64. Can boot to XP or SUSE, BUT NOT TO UBUNTU.
4. Followed instructions on: https://help.ubuntu.com/community/Re...tallingWindows. Specifically step 4 on the first section. After this, the configuration is returned to basically that of step 2 above. Except SUSE still exists.
5. Used SUPER GRUB DISK and restored Grub from SUSE partition. Configuration returned to step 3 above.
Code:

hostname:/home/username # fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x25f325f3

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1      13054  104856223+  7  HPFS/NTFS
/dev/sda2          13055      20349    58597087+  5  Extended
/dev/sda3          20350      27361    56323890  83  Linux
/dev/sda5          13055      19133    48829536  83  Linux
/dev/sda6          19134      20349    9767488+  82  Linux swap / Solaris
hostname:/home/username #

I want to be able to boot to XP, Ubuntu or SUSE at will. Any ideas on how to merge the two bootloaders?

ronlau9 12-09-2008 12:12 AM

What is the outcome of the command cat /boot/grub/menu.lst

Xalorous 12-10-2008 02:16 PM

Code:

# Modified by YaST2. Last modification on Sat Dec  6 18:00:12 CET 2008
default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,2)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.0 - 2.6.25.18-0.2
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.25.18-0.2-default root=/dev/disk/by-id/scsi-SATA_ST3500320AS_9QM20WB4-part3 resume=/dev/sda6 splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.25.18-0.2-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.0 - 2.6.25.18-0.2
    root (hd0,2)
    kernel /boot/vmlinuz-2.6.25.18-0.2-default root=/dev/disk/by-id/scsi-SATA_ST3500320AS_9QM20WB4-part3 showopts ide=nodma apm=off acpi=off noresume edd=off x11failsafe vga=0x31a
    initrd /boot/initrd-2.6.25.18-0.2-default

###Don't change this comment - YaST2 identifier: Original name:  Ubuntu 8.10, kernel 2.6.27-9-generic (/dev/sda5)###
title Ubuntu 8.10, kernel 2.6.27-9-generic (/dev/sda5)
    root (hd0,4)
    configfile /boot/grub/menu.lst

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


yancek 12-10-2008 04:39 PM

Booting from the Opensuse Grub with this entry in the menu.lst in Opensuse:

title Ubuntu 8.10, kernel 2.6.27-9-generic (/dev/sda5)
root (hd0,4)
configfile /boot/grub/menu.lst

will first give you the Opensuse menu options which should include Opensuse, xp, Ubuntu. With the entry above, you will then get a second menu which contains the menu.lst from Ubuntu giving you options to boot. If you don't want the second menu to come up, you will need to change the entry above, the "configfile...part". Easiest thing to do would be to copy the entry for Ubuntu from the Ubuntu menu.lst to the Opensuse menu.lst.

In your last post with the menu.lst entries, the entry for Opensuse is looking for the kernel and the entry for Ubuntu is looking for its menu.lst and after finding that will look for the appropriate kernel.

unSpawn 01-06-2009 03:43 PM

//moderator.note: cleanup time. These posts got pruned from their original one (threadid=687428) after a certain member hijacked that thread.


All times are GMT -5. The time now is 04:20 AM.