LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-01-2008, 04:54 AM   #1
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,040

Rep: Reputation: 34
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
 
Old 12-01-2008, 05:16 AM   #2
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
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.
 
Old 12-01-2008, 11:12 AM   #3
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 34
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)
 
Old 12-01-2008, 12:24 PM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
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
 
Old 12-01-2008, 10:53 PM   #5
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 34
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 View Post
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
 
Old 12-05-2008, 02:20 PM   #6
dolphans1
Senior Member
 
Registered: Jun 2003
Location: LoneStar
Distribution: Mandriva & Ubuntu
Posts: 1,040

Original Poster
Rep: Reputation: 34
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
 
Old 12-08-2008, 03:23 PM   #7
Xalorous
LQ Newbie
 
Registered: Sep 2006
Distribution: CENTOS/RHEL 6, 7
Posts: 10

Rep: Reputation: 1
Question 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?
 
Old 12-09-2008, 12:12 AM   #8
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
What is the outcome of the command cat /boot/grub/menu.lst
 
Old 12-10-2008, 02:16 PM   #9
Xalorous
LQ Newbie
 
Registered: Sep 2006
Distribution: CENTOS/RHEL 6, 7
Posts: 10

Rep: Reputation: 1
Question

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
 
Old 12-10-2008, 04:39 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,468

Rep: Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728Reputation: 1728
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.
 
Old 01-06-2009, 03:43 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,397
Blog Entries: 55

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restore boot loader on Mandriva 09 dual boot ... pruned parts 1 dolphans1 Mandriva 66 02-24-2009 10:04 AM
How to restore the boot loader for SuSE 9.2 Pro. Please help sourav SUSE / openSUSE 2 07-09-2005 10:07 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Cannot restore boot loader lyllo Fedora 4 01-29-2005 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration