LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-05-2011, 04:25 PM   #1
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Rep: Reputation: Disabled
Grub Error 17 - FC15 and Win7 dual boot


Hello
I just installed Fedora15 on my laptop. When the installation completed, the system rebooted and gave me a Grub Error 17. I logged in the rescue mode and got the following output from

Code:
fdisk -ls
Code:
 
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0d8b0d8a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   488394751   244093952    7  HPFS/NTFS/exFAT

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ea52b

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048     1026047      512000   83  Linux
/dev/sdb2         1026048   488396799   243685376   8e  Linux LVM

Disk /dev/sdc: 8011 MB, 8011120640 bytes
41 heads, 41 sectors/track, 9307 cylinders, total 15646720 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        8064    15646719     7819328    7  HPFS/NTFS/exFAT

Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_home: 190.6 GB, 190555619328 bytes
255 heads, 63 sectors/track, 23167 cylinders, total 372178944 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/VolGroup-lv_swap: 5268 MB, 5268045824 bytes
255 heads, 63 sectors/track, 640 cylinders, total 10289152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

and grub.conf

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sdb
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-26.rc1.fc15.i686.PAE)
	root (hd0,0)
	kernel /vmlinuz-2.6.38.6-26.rc1.fc15.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
	initrd /initramfs-2.6.38.6-26.rc1.fc15.i686.PAE.img
title Other
	rootnoverify (hd1,0)
	chainloader +1
can anyone help?
 
Old 07-05-2011, 06:39 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Is sdb listed first in your boot priority in BIOS?

It should be.

If it is, you may have to make your windows entry look like this
Code:
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
To trick windows into thinking that it is on the first drive.
 
Old 07-05-2011, 07:10 PM   #3
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
Is sdb listed first in your boot priority in BIOS?

It should be.

If it is, you may have to make your windows entry look like this
Code:
title Windows
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
To trick windows into thinking that it is on the first drive.
hi andrewthomas and thanks for replying
I think that the first drive that my laptop's BIOS recognize is the Windows one. There is no info about that in the BIOS but I checked my disks before I install FC15 with the Sisoftware Sandra tool and the first one given was the windows. Also, when I was configuring the installation of FC15, after the step where I chose to "Remove all Linux systems" only, I tried both of the given disks because their description was the same and it let me move to the next step only when I chose the second drive because it was the disk with my previous Linux distro. It would be nice if there is a way to find the order of the disks in the BIOS through the command line.

I change my grub.conf as you suggested but it still gives me the same error.... I had this problem since FC14 and because of that I had to use Opensuse which had no problem whatsoever.
 
Old 07-05-2011, 07:17 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
If you have now changed the grub entry for windows, then just switch the order of the drives in BIOS and see if it works.
 
Old 07-05-2011, 07:25 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
the system rebooted and gave me a Grub Error 17
Do you get the above error when you select Fedora from the Grub boot menu? The error indicates Grub sees the partition but doesn't recognize the filesystem. This usually means a windows filesystem.
If so, reverse the grub.conf entries for Fedora and windows:
Fedora root (hd1,0), windows rootnoverify (hd0,0)
I expect you have installed Grub to the mbr of sda. If this is the problem, I'm not sure why it would have happened if you had both drives attached during the installation?

You can find out how Grub sees your drives with the geometry command to verify this. Boot into rescue mode, log in as root, enter grub at the prompt and you will see a grub prompt: grub> From here just enter: geometry (hd0), geometry (hd1) and geometry (hd2). You need to hit the Enter key after each command to get output. You should then be able to compare this output to the fdisk output as each drive has different partition types.
 
Old 07-05-2011, 07:32 PM   #6
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
If you have now changed the grub entry for windows, then just switch the order of the drives in BIOS and see if it works.
how can I do that? In the BIOS there is no such option (my laptop: hp pavillion dv7-1199ev). Should I try and change the numbers in the grub.conf file?
 
Old 07-05-2011, 07:37 PM   #7
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by aristotelix View Post
how can I do that? In the BIOS there is no such option (my laptop: hp pavillion dv7-1199ev). Should I try and change the numbers in the grub.conf file?
If you can't switch the order in BIOS, do as yancek suggested and switch the drives in grub and remove the modification that I gave you for the windows drive
 
Old 07-05-2011, 07:48 PM   #8
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Do you get the above error when you select Fedora from the Grub boot menu? The error indicates Grub sees the partition but doesn't recognize the filesystem. This usually means a windows filesystem.
If so, reverse the grub.conf entries for Fedora and windows:
Fedora root (hd1,0), windows rootnoverify (hd0,0)
I expect you have installed Grub to the mbr of sda. If this is the problem, I'm not sure why it would have happened if you had both drives attached during the installation?

You can find out how Grub sees your drives with the geometry command to verify this. Boot into rescue mode, log in as root, enter grub at the prompt and you will see a grub prompt: grub> From here just enter: geometry (hd0), geometry (hd1) and geometry (hd2). You need to hit the Enter key after each command to get output. You should then be able to compare this output to the fdisk output as each drive has different partition types.
hi yancek
I get the error just after BIOS initialization - I don't see any grub GUI or text, just the error.
I just tried reversing the entries for FC15 and win7 in the grub.conf with and without the 'map' entries and it didn't work. Why is it so difficult to configure grub?? I don't get it..


the output from the grub gives the
Code:
geometry (hd0)
to be
Code:
/dev/sda
which is the windows and
Code:
geometry (hd1)
for
Code:
/dev/sdb
 
Old 07-05-2011, 07:52 PM   #9
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
If you can't switch the order in BIOS, do as yancek suggested and switch the drives in grub and remove the modification that I gave you for the windows drive
on which drive should the splashimage be directed if I reverse the order of the disks in the grub.conf? or it doesn't matter? do I have to change anything else that points to the disks or just the two number for linux and windows hd?
 
Old 07-05-2011, 08:05 PM   #10
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by aristotelix View Post
on which drive should the splashimage be directed if I reverse the order of the disks in the grub.conf? or it doesn't matter? do I have to change anything else that points to the disks or just the two number for linux and windows hd?
including the splashimage

All hd0 to hd1

all hd1 to hd0
 
Old 07-06-2011, 05:04 AM   #11
aristotelix
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
I just managed to make the boot screen appear. After numerous tries and guidance from people in this forum and fedoraforum. Thank you.

So, what I did was to boot in the update mode with the help of the dvd and reinstalled the bootloader with the following options:

1) Install bootloader on /dev/sda
1.1) Master Boot Record (MBR) - /dev/sda
2) Boot loader operating system list = Fedora /dev/mapper/VolGroup-lv_root


This is the new grub.conf file

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd1,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/VolGroup-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.6-26.rc1.fc15.i686.PAE)
	root (hd1,0)
	kernel /vmlinuz-2.6.38.6-26.rc1.fc15.i686.PAE ro root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root rd_LVM_LV=VolGroup/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rhgb quiet
	initrd /initramfs-2.6.38.6-26.rc1.fc15.i686.PAE.img
title Other
	rootnoverify (hd0,0)
	chainloader +1
 
1 members found this post helpful.
  


Reply



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
not able to boot into Win7, dual boot with Fedora, getting error BOOTMGR missing.. mrprassad Linux - Newbie 3 05-09-2011 10:29 AM
Dual boot, now upgrading WinXP to Win7. GRUB problems? kebabbert Solaris / OpenSolaris 2 03-13-2011 11:42 AM
Install Win7 HP upgrade to Win XP on dual boot - GRUB problem? RealGomer Linux - Software 2 12-23-2010 02:22 AM
Grub 22 error using dual boot of Win7 and Linux Mint brianste Linux - Newbie 12 12-30-2009 08:31 PM
Lenny Dual Boot w/ Win7 - GRUB problems! Leon W. Malinofsky Debian 3 02-25-2009 09:35 PM

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

All times are GMT -5. The time now is 10:03 PM.

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
Open Source Consulting | Domain Registration