Ask Your Question

Difficulties setting up dual-boot of F16 and Win7

asked 2011-12-18 17:52:41 -0500

Cesium gravatar image

Hello all,

I'm a (very) new Linux user trying to install Fedora 16 alongside Windows 7 on an HP laptop. This is my story so far:

I successfully installed fedora on my laptop without any errors or warnings, but Windows 7 stopped booting. It was an option in the grub menu, but when I tried to boot win7 I got a loading screen that hung around indefinitely. I tried to fix this by updating grub, but that didn't help.

I was able to get win7 working again by running "bootrec.exe /fixmbr" from a recovery disc, but now grub is gone and fedora is inaccessible.

My plan now is to try and reinstall grub using a live USB, but I'm too inept a Linux user to follow the one how-to guide I could find on doing this with fedora 16. If someone could be kind enough to walk me through the grub re-installation process, and help me with any further difficulties I might have, you would have the gratitude of a fellow internet user.

Thanks for your help!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-12-18 18:46:33 -0500

boot your live USB

Mount your root partition at /mnt. Assuming sda5

mount /dev/sda5 /mnt

If you have a separate boot partition, mount it at /mnt/boot

mount /dev/sda2 /mnt/boot

It will be similar, but a little more complicated if you use LVM.

Then re-install grub

grub2-install --root-directory=/mnt /dev/sda
grub2-mkconfig -o /mnt/boot/grub2/grub.cfg

You will have to adjust for your actual lay out.

edit flag offensive delete link more

answered 2011-12-18 20:28:46 -0500

Cesium gravatar image

updated 2011-12-18 20:35:05 -0500

Sorry for making this comment an answer, but comments are way too short to post a response to your answer, bodhi.zazen... perhaps I should have chosen a forum to ask this on.

On the last comamnd, I get the following error:

[root@localhost liveuser]# grub2-mkconfig -o
Generating grub.cfg ...
cat: /boot/grub2/video.lst: No such file or directory
Found linux image: /boot/vmlinuz-3.1.0-7.fc16.x86_64
/sbin/grub2-probe: error: cannot find a GRUB drive for
/dev/mapper/live-rw.  Check your
/sbin/grub2-probe: error: cannot find a GRUB drive for
/dev/mapper/live-rw.  Check your
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda2
Found Fedora release 16 (Verne) on /dev/mapper/VolGroup-lv_root

I'm fairly certain that /dev/sda5 is the location of my root partition, but how do I make sure?

anyway, after I followed your instructions and restarted, grub was back, but windows still wouldn't boot and neither would fedora. Same problem as before with Windows, in fedora a wall of information about its boot processes (loading drivers and such) was generated, then I got an error and a debug shell of sorts. Where to go from here?

edit flag offensive delete link more

Question Tools


Asked: 2011-12-18 17:52:41 -0500

Seen: 2,959 times

Last updated: Dec 18 '11