LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 12-12-2010, 02:57 PM   #1
newuser98
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Thumbs down Dual boot problem: GRUB to MBR doesn't seem to work


Hello,

I have a PC with Windows 7 (OEM) installed. I would like to install Fedora 14 on a different partition of the same HDD (I have only one hard disk installed). I installed Fedora, but it still boots to Windows.

Prior to Fedora installation I shrank the last available partition by 64 GB to make space for Fedora. I downloaded the ISO image of the installation DVD, checked the SHA-256 checksum and proceeded to install the system. The installation went fine; it used the unallocated space to create additional Linux partitions (one for /boot and the other for LVM that, in turn, contains partitions for swap, / and /home).

I did make sure that GRUB is written to the MBR of the hard disk (and not to the /boot partition) during the installation.

The installation process completed successfully, the computer ejected the DVD and asked me to reboot. I rebooted the system and... nothing happened! It still boots Windows. No GRUB activity whatsoever. No menu, no reaction to pressing the SHIFT key.

I booted from the installation DVD again and selected the "Rescue..." option and then chroot'ed to /mnt/sysimage as suggested. Here is what I saw (I am omitting some bits for simplicity):

fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * ... ... 100 MB 7 HPFS/NTFS
/dev/sda2 ... ... 100 GB 7 HPFS/NTFS
/dev/sda3 ... ... 1,2 TB 7 HPFS/NTFS
/dev/sda4 ... ... 5 Extended
/dev/sda5 ... ... 8e Linux LVM
/dev/sda6 ... ... 83 Linux

100 MB is the active partition which is reported System Reserved in Windows. The 100 GB is the partition where Windows is installed. The remaining 1,2 TB partition is the third Windows partition.

cat /boot/grub/grub.conf (or menu.lst - the contents are basically the same):

default=0
timeout=0
splashimage=...
hiddenmenu
title Fedora (2.6.35...)
root (hd0,5)
kernel /vmlinuz-2.6.35...
initrc /initramfs-2.6.35...
title Other
rootnoverify (hd0, 0)
chainloader+1

AFAIK, the above indicates that GRUB should not display the menu, but it should start booting the default system which is 0, i.e. Fedora. None of this happens and SHIFT doesn't bring up the menu either.

df
Filesystem ..... Mounted on
/dev/sda6 /boot
/dev/mapper/VolGroup-lv_home /home
/dev/mapper/VolGroup-lv_root /root

The installation DVD does detect my Fedora installation, but the bootloader does not. I doubt that the MBR has been updated at all, even though Fedora installation did not report any problems.

Could anyone help me with this problem? I am new to GRUB (I have used other distros and LILO until now).
 
Old 12-12-2010, 03:21 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
I would use Super Grub Disk to repair grub.

http://www.supergrubdisk.org/super-grub-disk/
 
Old 12-12-2010, 04:09 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,126

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
That all looks sane - maybe the MBR isn't being updated (check the BIOS settings), or you have some OEM software that "restores" it. Like Dell "data safe" or whatever it's called. That should only restore it once Win7 is booted though - if you go straight to Fedora you should be o.k.
Try SGD - make sure you get the legacy grub one, not the grub2 one.
 
Old 12-13-2010, 01:29 PM   #4
newuser98
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I tried to install GRUB manually by while in rescue mode (from the installation DVD). I wanted to point grub to look for it's 1_5/2 stages in my /boot partition ("root (hd0, 5)" and then update the MBR on the disk with "setup (hd0)". But I ran into problems with the first command.

"root (hd0, 5)" returns the following error:

Error 18: Selected cylinder exceeds maximum supported by BIOS

Is it because I am exceeding the LBA limit? My /boot partition is indeed at the very end of a big disk (1,5 TB)? I don't suspect BIOS; it is a brand new computer and BIOS software seems to be fairly recent.

Would it help to move the /boot partition below the first 137 MB of the disk space? Or maybe it is a better idea to put GRUB in the first sector of my /boot partition and make that partition active?
 
Old 12-13-2010, 05:17 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,126

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
I thought the LBA problem was closer to 2 Gig, but I don't have any big disks to test on. One assumes legacy grub will fade from the scene soon.
I always put the boot partition near (at preferably) the beginning of the disk if possible. Shrinking a NTFS data partition works as well - depends how you want to construct things. I might make sda3 as small as sensibly usable (say 600 Gig) and allocate the /boot as first logical (sda5). Then add your F14 root, and another NTFS (logical) in need.
Grub ignores the boot/active flag, and it is invalid for a logical partition even in the M$oft world.
 
Old 12-14-2010, 02:40 AM   #6
newuser98
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
The reason I wrote about the active partition is that I had an idea of putting GRUB to the first sector of the /boot partition. I know that GRUB doesn't need the /boot partition to be active, but that is only the case when GRUB is in charge (i.e. is located in the MBR)... am I right?

By the way, it turned out that my SATA HDD's mode had been set to IDE in BIOS. Switched it to AHCI in BIOS, tried the same steps again... to no avail. I am considering moving the /boot partition closer to the beginning of the drive (ideally, after the first two Windows partitions which take only 100 GB).
 
  


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
Re-installing Linux on a dual-boot system: what happens with Grub and the MBR? jem Linux - Newbie 5 11-26-2008 02:47 PM
Dual-booting: GRUB on the /boot partition instead of the MBR doesn't work for me jem Linux - Newbie 3 11-26-2008 09:38 AM
dual boot (RHEL3 and RHEL4) problem: need guidance to edit grub.conf in MBR lgpage Linux - Software 1 02-16-2007 12:05 PM
dual boot mbr grub problems Xris718 Linux - General 4 08-09-2006 06:52 PM
MBR and/or 1st Sector of HDA1 kaputt after attemting dual boot (win/suse9.1) w/ grub Nathanael Linux - General 2 05-29-2004 07:08 AM


All times are GMT -5. The time now is 11:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration