Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-01-2007, 01:10 PM   #1
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
Grub won't install in MBR

Hello all and thanks.
So windoze had some problems and I reinstalled it. Of course it wrote over my MBR. I put my suse 10.2 disk in and did the reinstall grub. I ask it to read from the disk so that windoze is on the list and click ok. It says successful install of grub. But when I reboot I go straight to the xp logon no grub menu
I've attached my menu.lst . Any help would be greatly appreciated.

# Modified by YaST2. Last modification on Tue May  1 02:34:43 PDT 2007
default 0
timeout 8
gfxmenu (hd0,6)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
    root (hd0,6)
    kernel /boot/vmlinuz root=/dev/hda7 resume=/dev/hda6 splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
    root (hd0,6)
    kernel /boot/vmlinuz root=/dev/hda7 showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd

title Windows XP
    rootnoverify (hd0,0)
    chainloader (hd0,0)+1
Old 05-01-2007, 02:10 PM   #2
Registered: Apr 2007
Distribution: Gentoo
Posts: 337

Rep: Reputation: 30
Perhaps the installer is not installing it to MBR. Does the SuSE cd allow you to obtain a chroot shell of your installed system? If it does, chroot, and manually install GRUB to MBR.
Old 05-01-2007, 03:27 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
If you install GRUB from live CD, you need to be sure how it is seeing the drive(s) and you need to be sure that the correct partition is specified for GRUB's "home base".

This **should** work:
fdisk -l to confirm how the live Linux sees the disk(s)
(let's assume that the Linux partition containing /boot is actually hda7 as implied in your listing.)
grub opens the grub shell
root (hd0,6) tells grub installer where /boot is
setup (hd0) puts grub on the mbr of the first drive--ie hda
Old 05-01-2007, 03:36 PM   #4
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,287

Rep: Reputation: 126Reputation: 126
If all else fails and you don't want to become a grub expert, get a copy of Super Grub Disk.
Old 05-02-2007, 01:12 AM   #5
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Thanks. I did as you said and all works well now. The text size on the loading screen changed but everything works. Thank you


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 install Grub other than MBR? terryxela Ubuntu 1 04-08-2007 04:31 PM
Install GRUB in MBR or /boot? kmlinux12 Linux - Enterprise 7 09-25-2004 01:47 AM
I did fdisk/mbr, how to install GRUB again? yarnar Linux - Software 4 12-13-2003 02:15 AM
how do i install grub in the mbr? spyghost Linux - Newbie 2 11-07-2003 09:52 AM
GRUB Install on MBR JakeFarley Linux - Newbie 3 10-22-2002 07:16 AM

All times are GMT -5. The time now is 01:02 PM.

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