Fedora Linux Support Community & Resources Center
  #1  
Old 19th June 2011, 01:07 PM
epsonik Offline
Registered User
 
Join Date: Jun 2011
Posts: 3
linuxfirefox
grub error 18.

Hi, after installing FC15 on my computer, I cannot boot on my windows7 due to an error 18.

I installed FC on 2 new partitions I created during the installation, so I guess they moved before my window's...

Is there a solution to fix this without erasing my windows partition? (at worse, I'm ok with deleting my linux partitions for I haven't done anything with it yet)

at worse, will just deleting my newly created linux partitions help recover things?

thx.

Last edited by epsonik; 19th June 2011 at 01:11 PM.
Reply With Quote
  #2  
Old 19th June 2011, 02:05 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: grub error 18.

I don't know if there is a solution or not. But a good and usual place to start is to post something for people to look at and think about. Open a terminal window in Fedora and run the following commands. Then copy it here. Maybe somebody will see something to adjust....
Code:
su
fdisk -l
cat /boot/grub/grub.conf
If you never get anywhere with GRUB, you can consider restoring the Windows boot loader so it boots again directly from BIOS. Then use the free and popular software known as EasyBCD to configure the Windows boot loader to boot Fedora.
Reply With Quote
  #3  
Old 19th June 2011, 02:14 PM
epsonik Offline
Registered User
 
Join Date: Jun 2011
Posts: 3
linuxfirefox
Re: grub error 18.

ok

here's my fdisk result:
Code:
Disque /dev/sda*: 1500.3*Go, 1500301910016 octets
255 têtes, 63 secteurs/piste, 182401 cylindres, total 2930277168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique)*: 512*octets / 512*octets
taille d'E/S (minimale / optimale)*: 512*octets / 512*octets
Identifiant de disque*: 0x29d73382

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1           16065  2848356629  1424170282+   f  Étendue W95 (LBA)
/dev/sda2   *  2848356630  2930255999    40949685    7  HPFS/NTFS/exFAT
/dev/sda5       102430503  1516359284   706964391    7  HPFS/NTFS/exFAT
/dev/sda6      1516359348  2848356629   665998641    7  HPFS/NTFS/exFAT
/dev/sda7           18432    92178431    46080000   83  Linux
/dev/sda8        92180480   102428671     5124096   82  partition d'échange Linux / Solaris

Les entrées de la table de partitions ne sont pas dans l'ordre du disque

Disque /dev/sdb*: 500.1*Go, 500107862016 octets
255 têtes, 63 secteurs/piste, 60801 cylindres, total 976773168 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique)*: 512*octets / 512*octets
taille d'E/S (minimale / optimale)*: 512*octets / 512*octets
Identifiant de disque*: 0x059a059a

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sdb1              63    30716279    15358108+   7  HPFS/NTFS/exFAT
/dev/sdb2        30716280   976751999   473017860    f  Étendue W95 (LBA)
/dev/sdb5        30716343   935786249   452534953+   7  HPFS/NTFS/exFAT
/dev/sdb6       935788544   976750591    20481024   83  Linux
and here's my grub file (I didn't edit this one yet):
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,6)
#          kernel /boot/vmlinuz-version ro root=/dev/sda7
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.38.8-32.fc15.x86_64)
	root (hd0,6)
	kernel /boot/vmlinuz-2.6.38.8-32.fc15.x86_64 ro root=UUID=c876718f-e5ed-4042-a68d-cc288fe69714 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=fr_FR.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=fr-latin9 rhgb quiet
	initrd /boot/initramfs-2.6.38.8-32.fc15.x86_64.img
title Windows 7
	rootnoverify (hd0,1)
	chainloader +1
Reply With Quote
  #4  
Old 19th June 2011, 02:51 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: grub error 18.

Looking at the first drive in sector order, after some empty sectors at the front end of the drive, a large extended partition begins. The first logical partition in the extended partition is the Fedora root partition. Next is a swap partition. Then two more NTFS logical partitions follow and finish filling the extended partition. Then following the extended partition, at the very back end of the hard drive, is the active NTFS partition which apparently is the Windows partition. So you may have some trouble booting that with GRUB because of the distant (from the beginning) sectors it occupies. The grub.conf file looks okay to me. I don't have a suggestion for it. Sorry. Maybe somebody else knows of something to try.

You can consider the EasyBCD idea as already mentioned.

You can try restoring the Windows boot loader if for no other reason than to confirm that Windows stills works. After all, there are some empty sectors at the beginning of the drive. Could a Windows 7 boot partition have been there?
Reply With Quote
  #5  
Old 19th June 2011, 04:34 PM
epsonik Offline
Registered User
 
Join Date: Jun 2011
Posts: 3
linuxfirefox
Re: grub error 18.

yup, that's a win7.

I'll look into EasyBCD then, thx, I'll come back if I have more questions for you guys

[edit]
Hmm, seems fairly complicated to get that working under fedora, so I guess I'll just restore the windows bootloader for the moment, I'll pass by later if I have any problem with EasyBCD, thx [/edit]

---------- Post added at 05:34 PM ---------- Previous post was at 04:50 PM ----------

tiens d'ailleur dans ce cas, il faut que j'utilise l'option /FixMBR ou /FixBoot ??

Last edited by epsonik; 19th June 2011 at 04:19 PM.
Reply With Quote
  #6  
Old 19th June 2011, 04:44 PM
stoat Offline
Registered User
 
Join Date: Jun 2006
Posts: 7,551
linuxfedorafirefox
Re: grub error 18.

Try Bootrec.exe /FixMbr first and reboot. See if Windows boots again. That removes GRUB from the master boot record and replaces it with MS boot code which works by finding the active partition and executing its boot sector code. The boot sector of the Windows partition should remain in good condition. If the Windows boot loader files are in that partition's filesystem, then Windows should boot again after the FixMbr option. The FixBoot option of the command rewrites boot sector code in the partition with the Windows boot loader files. I don't think it's necessary for this situation, but it shouldn't hurt to run that even when it's not necessary.
Reply With Quote
Reply

Tags
error, grub

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
Fedora 9 Grub error Error 15 File not found QuantumKnot Installation and Live Media 1 14th May 2008 07:35 AM
Grub won't chainload to grub: Error 13 nyjetshead Using Fedora 3 25th January 2008 05:29 PM
Boot-up error --- GRUB Loading stage2Read Error xboomerx Installation and Live Media 2 19th November 2006 04:42 PM
Grub boot CD gives only Error 25 Disk Read Error electron1948 Installation and Live Media 2 15th October 2005 07:30 PM


Current GMT-time: 20:08 (Thursday, 23-05-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