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:
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 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 |
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. :) |
* 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 |
Are you replacing the old fedora you have on there? If so why do you choose the windows partition as bootloader?
|
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. |
I had this same problem installing Fedora 17
Quote:
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:
Arifur Rahman |
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.
|
Quote:
Boot from linux cd/dvd in rescue mode Code:
grub2-install /dev/sda Or you can also add linux to win7 boot loader by using EasyBCD. Hope this helps. Arifur Rahman |
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. |
Quote:
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. |
Quote:
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. |
Quote:
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. |
Quote:
Can you post the error message that you received while uisng fedora rescue, i mean when you tried to install grub. |
Quote:
|
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:
I first ran Code:
# chroot /mnt/sysimage Code:
# grub2-mkconfig -o /boot/grub2/grub.cfg Code:
# grub2-install /dev/sda Quote:
Also I am requesting other experts to suggest explanation and also way out to this problem. Thanks. -SKD |
All times are GMT -5. The time now is 11:15 PM. |