Fedora Linux Support Community & Resources Center
  #1  
Old 5th July 2011, 07:06 PM
aristotelix Offline
Registered User
 
Join Date: May 2011
Posts: 23
linuxfedorakonqueror
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?
Reply With Quote
  #2  
Old 5th July 2011, 07:15 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
windows_xp_2003chrome
Re: Grub Error 17 - FC15 and Win7 dual boot

Looks like the grub menu needs to read root (hd1,0) for Fedora and rootnoverify (hd0,0) for Windows (Other). Just the reverse of what it shows now.

/dev/sda1 and /dev/sda2 are Windows partitions. /dev/sdb1 and /dev/sdb2 are Linux partitions.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 5th July 2011, 07:26 PM
aristotelix Offline
Registered User
 
Join Date: May 2011
Posts: 23
linuxfirefox
Re: Grub Error 17 - FC15 and Win7 dual boot

Quote:
Originally Posted by glennzo View Post
Looks like the grub menu needs to read root (hd1,0) for Fedora and rootnoverify (hd0,0) for Windows (Other). Just the reverse of what it shows now.

/dev/sda1 and /dev/sda2 are Windows partitions. /dev/sdb1 and /dev/sdb2 are Linux partitions.
thanks for replying glennzo
I edit my grub.conf file while in rescue mode with 'vi', rebooted, and I got the same problem..
maybe I did something wrong while editing the grub.conf file? I just replace the values you told me.

the new grub.conf ffile looks like this

Code:
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

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

Last edited by aristotelix; 6th July 2011 at 10:26 AM.
Reply With Quote
  #4  
Old 6th July 2011, 05:37 AM
JamesNZ's Avatar
JamesNZ Offline
Registered User
 
Join Date: Aug 2010
Location: Wellington, New Zealand
Age: 16
Posts: 889
windows_7chrome
Re: Grub Error 17 - FC15 and Win7 dual boot

In the output of fdisk there were 2 NTFS partitions, one was /dev/sda1, the other /dev/sda2. Maybe windows is on /dev/sda2? Try changing (hd0,0) to (hd0,1).

EDIT: And maybe try changing the linux partition in Grub to (hd1,1).
__________________
"For what is a man profited if he gains the whole world, but loses his own soul?"

- Jesus

Last edited by JamesNZ; 6th July 2011 at 05:40 AM.
Reply With Quote
  #5  
Old 6th July 2011, 05:47 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,620
linuxfirefox
Re: Grub Error 17 - FC15 and Win7 dual boot

I agree, JamesNZ.. /dev/sda1 is a small NTFS partition (100 mb), probably the small system partition that Windows 7 creates if you just throw an unpartitioned disk in and install.

The correct boot partition for Windows is as JamesNZ said. /dev/sda2 which would be hd0,1 in your grub.conf file.

Assuming that you have your BIOS set to boot from your windows drive, and you had fedora install the bootlader into the boot sector of sda, then changing the windows entry to (hd0,1) should fix up your problems.
Reply With Quote
  #6  
Old 6th July 2011, 11:06 AM
aristotelix Offline
Registered User
 
Join Date: May 2011
Posts: 23
linuxfirefox
Re: Grub Error 17 - FC15 and Win7 dual boot

Quote:
Originally Posted by DBelton View Post
I agree, JamesNZ.. /dev/sda1 is a small NTFS partition (100 mb), probably the small system partition that Windows 7 creates if you just throw an unpartitioned disk in and install.

The correct boot partition for Windows is as JamesNZ said. /dev/sda2 which would be hd0,1 in your grub.conf file.

Assuming that you have your BIOS set to boot from your windows drive, and you had fedora install the bootlader into the boot sector of sda, then changing the windows entry to (hd0,1) should fix up your problems.
hi DBelton
this what I have changed so far and everything had the same Error 17

1st try
splashimage=(hd1,0)
root(hd1,0)
rootnoverify(hd0,1)


2nd try
splashimage=(hd1,1)
root(hd1,1)
rootnoverify(hd0,1)


3rd try
splashimage=(hd1,0)
root(hd1,0)
rootnoverify(hd0,1)
map (hd0) (hd1)
map (hd1) (hd0)


4th try
splashimage=(hd1,1)
root(hd1,1)
rootnoverify(hd0,1)
map (hd0) (hd1)
map (hd1) (hd0)


how can I find out on which boot sector had fedora installed the bootloader? Should I boot fedora into the 'update GUI mode' and create a new bootloader with the options you mentioned?

---------- Post added at 10:17 AM ---------- Previous post was at 10:14 AM ----------

Quote:
Originally Posted by JamesNZ View Post
In the output of fdisk there were 2 NTFS partitions, one was /dev/sda1, the other /dev/sda2. Maybe windows is on /dev/sda2? Try changing (hd0,0) to (hd0,1).

EDIT: And maybe try changing the linux partition in Grub to (hd1,1).
indeed, when I had Opensuse the bootloader read
Linux Kernel
Windows 1
Windows 2

and if I remember well it was 'windows 2' that had the Windows OS

---------- Post added at 11:06 AM ---------- Previous post was at 10:17 AM ----------

I just managed to make the boot screen appear. After numerous tries and guidance from people in this forum and linuxquestions. 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
I logged in to my system and WOW... i have been using fedora since it first came out and I can say that it is getting better and better..

Last edited by aristotelix; 6th July 2011 at 11:10 AM.
Reply With Quote
Reply

Tags
grub 17 problem dual boot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual boot win7 and F15 Hewjr100 Installation and Live Media 2 12th June 2011 06:06 PM
[SOLVED] grub issue in F13 x86_64 with dual boot from two hard drive (Win7 in control) longsi Installation and Live Media 15 27th September 2010 05:27 PM
HELP! WIn7 and Fedora 12 dual-boot OceanRain Installation and Live Media 24 3rd March 2010 01:53 PM
Installing F12 as a dual boot with win7 guitarguy83 Installation and Live Media 7 12th February 2010 02:43 AM
Problems with dual boot w\ win7 cgelici Installation and Live Media 1 1st February 2010 11:00 AM


Current GMT-time: 09:09 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat