LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2012, 06:17 AM   #1
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Rep: Reputation: 15
Problem installing fedora 17 in dual booting with windows 7


I have been using fedora 16 in my laptop which has a dual booting option with windows 7. Now when I wanted to switch over to fedora 17 I am having the following problems:
I was installing fresh copy of fedora 17, not upgrading of fedora 16. I used /dev/sda, where the windows 7 exists, as bootloader drive. At the end of the installation of packages, a window is coming which says "
Quote:
There was an error installing the bootloader. The system may not be bootable
"
When I pressed OK, the last screen comes saying that the installation is done successfully and asking to reboot the system. When I reboot the computer, the grub screen is not coming. The screen says:
Code:
GRUB loading
Welcome to Grub
error: file not found
Entering rescue mode..
grub rescue>
I tried different things but could not solve the problem. In fact, I was not even getting my windows partition. So I took the pain to reinstall Fedora 16 again. There the grub is loading nicely and got my windows back.
I guess that this is because of Grub2, but could not get the way out.
I have three partitions in my Linux installation. 15 GB /, 8GB swap and around 27 GB /home.
Please help to get around this problem
 
Old 06-21-2012, 12:26 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
How did you install F17? If it was from a DVD iso image, you should have an option to "rescue" an existing installation (IIRC, it in the menu displayed when you select "Troubleshoot" from the first menu.)

So, re-install F17 (after verifying that your DVD image was correctly burned - i.e., select "Verify and install, not just "Install.") Then, if you still have the problem, go to the "rescue" mode, do the suggested "chroot," and run grub2-mkconfig -o /boot/grub2/grub.cfg (You'll be running as "root" in rescue mode, so do be careful.)

Note that the problem you have appears to be that the grub.cfg file is not in its expected location. grub2 can be installed in either /boot/grub or /boot/grub2.

From the grub rescue> prompt, you could do a set command to see what parameters grub had defined when it entered "rescue" mode. (Of special interest is the value of the prefix parameter, which tells you where grub is looking for its files.) You could then do a ls $prefix to see what's actually there.

There are detailed discussions of grub2 and its rescue mode on the Web. Just "google" for them.

 
Old 06-21-2012, 01:13 PM   #3
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
* I ran grub2-mkconfig -o /boot/grub2/grub.cfg from rescue mode of the DVD as root like you have mentioned. But the problem still persisted.

* How I would choose the option "verify & install" while installing F17 (I have installed by burning iso image from DVD)

* I found grub.cfg in /boot/grub2

I will try the set commands from grub rescue as you have suggested. But the problem is if it does not work then it becomes difficult to get back even my windows installation. I had to reinstall f16 and only then I got my window 7 back.

- SKD
 
Old 06-21-2012, 06:32 PM   #4
whysoserious
Member
 
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61

Rep: Reputation: Disabled
Are you replacing the old fedora you have on there? If so why do you choose the windows partition as bootloader?
 
Old 06-22-2012, 07:08 AM   #5
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
I was installing fresh copy of f17 after deleting f16 since earlier I faced few problems while updating to a newer version of fedora. Since so far I had no problem at all by keeping bootloader in /dev/sda, this time also i opted for that. Later, when I was facing this problem I tried to first install f16(minimal for just a trial) and then update to f17. It asks whether I should be going to change bootloader or skip it. If I skip it, then normal grub menu is coming with only one entry that of Windows 7 and if I go for change the same remark "There was an error installing the bootloader. The system may not be bootable" coming before saying that it has successfully updated to f17 and asking to rebbot. And after rebooting same problem is coming.

Another reason of installing bootloader in windows partition is that I have never used softwares like EasyBCD to write the windows bootloader although when I had windows Xp as my window partition, once or twice I installed bootloader in the / partion and then copied a patch of it in windows drive and then edited boot.ini and the system worked nicely. But I am not much familar in editing windows 7 bootloader. Also perhaps I have to download EasyBCD.

Last edited by dnskdas; 06-22-2012 at 07:15 AM.
 
Old 06-22-2012, 07:20 AM   #6
arifur
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
I had this same problem installing Fedora 17
Quote:

# grub2-install
/sbin/grub2-setup: warn: Your embedding area is unusually small. core.img won't fit in it..
/sbin/grub2-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/sbin/grub2-setup: error: will not proceed with blocklists.
Even if I force intalled grub I got a blank screen.

What I did was create 100 mb of unallocated space on /dev/sda (First Harddisk), before any partation.
My configuration:
/dev/sda
100MB - Unalocated
54 GB - Win 7
Then all the linux partitaions and some NTFS partations.


You can give it a try. Just create atleast 10 MB of unalocated space on your boot hard drive. Then boot fedora rescue

Quote:

chroot /mnt/sysimage
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
Then just reboot and grub should boot. Hope this helps

Arifur Rahman
 
1 members found this post helpful.
Old 06-22-2012, 08:34 AM   #7
whysoserious
Member
 
Registered: May 2012
Location: London
Distribution: Debian and slackware for uni
Posts: 61

Rep: Reputation: Disabled
Maybe you can boot into fedora, then install grub. So skip it at the fedora stage but install afterwards. After that run update-grub. I had a problem with grub. Mine was opposite though, it showed debain but didn't show windows.
 
Old 06-22-2012, 11:12 AM   #8
arifur
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by whysoserious View Post
Maybe you can boot into fedora, then install grub. So skip it at the fedora stage but install afterwards. After that run update-grub. I had a problem with grub. Mine was opposite though, it showed debain but didn't show windows.
Install windows boot loader using Win7/XP dvd/cd

Boot from linux cd/dvd in rescue mode
Code:
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg
Now you should have windows and linux both added on grub.

Or you can also add linux to win7 boot loader by using EasyBCD.

Hope this helps.

Arifur Rahman
 
1 members found this post helpful.
Old 06-23-2012, 03:01 AM   #9
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you Mr. Arifur. I will give it a try. But only thing is that is it possible to create unallocated space in /dev/sda keeping my existing windows intact ? If it is disturbed then perhaps I have to reinstall windows again. Also what I found is that message coming in your case is different from mine. In my case it is saying that the files are not found which is because the bootloader could not be installed as shown by the previous window during installation of f17.

Also I found in some post that the option of installing bootloader in 1st sector of linux / partition and then editing windows 7 bootloader by EasyBCD is not working in case of f17.
 
Old 06-23-2012, 07:16 AM   #10
arifur
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by dnskdas View Post
Thank you Mr. Arifur. I will give it a try. But only thing is that is it possible to create unallocated space in /dev/sda keeping my existing windows intact ? If it is disturbed then perhaps I have to reinstall windows again. Also what I found is that message coming in your case is different from mine. In my case it is saying that the files are not found which is because the bootloader could not be installed as shown by the previous window during installation of f17.

Also I found in some post that the option of installing bootloader in 1st sector of linux / partition and then editing windows 7 bootloader by EasyBCD is not working in case of f17.

Ya thats right. It can messup your windows partition. But if you have a second hard disk you install grub on that hard disk. If you only have one hard disk then you can install grub on the 1st sector of fedora partition and add it to win bootloader using easy bcd.
 
Old 06-23-2012, 10:29 AM   #11
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by dnskdas View Post
. . .But only thing is that is it possible to create unallocated space in /dev/sda keeping my existing windows intact ? . . .
If you have any bootable CD that contains grarted (and almost any LiveCD distribution will) you can move the Windows partition further down the drive, although you may need to to run the "recovery" procedure to adjust the Windows boot file for the changed position.

But you shouldn't need to do any of that since GRUB (Fedora 17's latest is grub2.0-0.25-beta4) doesn't need more than the standard 256Kb boot sector. (It does need a lot of memory since the boot sector just loads a kernel image info memory, which then loads additional modules as needed into memory to do the actual boot.)

The grub2-install /dev/sda and grub2-mkconfig -o /etc/grub.cfg suggested above should fix everything. But you need to be running your F17 installation for that to work. To get there, consider downloading and burning the Super Grub Disk (which will bit in a small USB stick) and using that to boot your system.

I suspect that your problem is that you didn't want to replace the old Windows boot loader with GRUB for fear that you wouldn't be able to boot your Windows, but that fear is, I think, unfounded.

Last edited by PTrenholme; 06-23-2012 at 10:30 AM.
 
Old 06-23-2012, 01:35 PM   #12
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
I suspect that your problem is that you didn't want to replace the old Windows boot loader with GRUB for fear that you wouldn't be able to boot your Windows, but that fear is, I think, unfounded.
Not exactly. While installing I tried to write bootloader in /dev/sda which would have replaced the old bootloader had it worked normally. But unfortunately it didn't. I tried grub2-install and grub2-mkconfig after booting into f17 by rescue mode of the installation DVD, but somehow it didn't work. Anyway I will give it a try again. Actually I am still not very sure why the bootloader of f17 could not be installed in /dev/sda when that of f16 is still installing fine at the same drive.

About the suggestion of editing windows 7 bootloader with EasyBCD, I already have mentioned that some people have had difficulty in adding f17 in that method. So I am a bit skeptic for that and also am not very confident.

Thanks for your suggestions.
 
Old 06-23-2012, 01:45 PM   #13
arifur
LQ Newbie
 
Registered: Jun 2012
Posts: 13

Rep: Reputation: Disabled
Quote:
Actually I am still not very sure why the bootloader of f17 could not be installed in /dev/sda
I am using F17 bootloader on /dev/sda. And yes I did face some problem adding f17 on win 7 boot loader using easy bcd.

Can you post the error message that you received while uisng fedora rescue, i mean when you tried to install grub.
 
Old 06-26-2012, 04:36 AM   #14
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Can you post the error message that you received while uisng fedora rescue, i mean when you tried to install grub
I can't properly recall them now. But perhaps the "grub-install" command itself was not working that time. I was giving the commands from shell prompt after getting root authority by "chroot /mnt/sysimage". Shall I have to give it from "grub>" prompt. But then how to get it since grub command itself was not working. I have gone through few articles about grub2, but little confused about reinstalling f17 in my system. This is because I still could not fathom out why grub2 of f16 is installed witthout any hazzle, but f17 could not.
 
Old 06-27-2012, 01:14 AM   #15
dnskdas
Member
 
Registered: Nov 2008
Posts: 56

Original Poster
Rep: Reputation: 15
I tried to install f17 again and this time, since earlier there was problem in installing bootloader in /dev/sda (i.e., MBR), I installed the bootloader in / partition and everything was installed fine without any error message. But still after rebooting I didn't get my windows 7 and the same initial dialogue came, i.e.,
Quote:
GRUB loading
Welcome to Grub
error: file not found
Entering rescue mode..
grub rescue>
Then with the installation disk I entered the linux partition in shell prompt and tried to install grub2 in /dev/sda
I first ran
Code:
# chroot /mnt/sysimage
Then,
Code:
# grub2-mkconfig -o /boot/grub2/grub.cfg
It worked fine and also found Windows 7 (loader) on /dev/sda1. Then I ran
Code:
# grub2-install /dev/sda
But the following message came:
Quote:
/usr/sbin/grub2-bios-setup: warning: this LDM has no Embedding partition; embedding won't be possible
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub2-bios-setup: error: will not proceed with blocklists.
which is almost similar to what Mr. Arifur had encountered. Mr. Arifur, you have suggested me to create unallocated space in /dev/sda, but I don't exactly know how to do that. Please write me about this how to.
Also I am requesting other experts to suggest explanation and also way out to this problem.
Thanks.
-SKD

Last edited by dnskdas; 06-27-2012 at 01:17 AM.
 
  


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
Dual-booting Fedora 15 and Windows 7 sudeepkulkarni Fedora 7 10-20-2011 09:34 AM
[SOLVED] problem in booting windows 7 after installing fedora 11 while try to make dual boot crayxmp Linux - Newbie 16 02-23-2010 01:10 AM
Dual Booting Fedora 7 with windows xp???? Antoin Linux - Newbie 15 11-05-2007 05:35 PM
Dual boot -fedora core 4 and windows xp- problem booting from windows xp cd r_desu Linux - Newbie 4 06-17-2007 04:33 PM
Dual booting Windows XP + Fedora 4 kcpaige89 Linux - Hardware 9 01-11-2006 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 AM.

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