?
Solved

Centos 7/Windows 7 Dual Boot Problem

Posted on 2014-09-13
6
Medium Priority
?
3,715 Views
Last Modified: 2014-09-18
I have installed Centos 7 as a dual boot on my Windows 7 laptop.  Centos 7 installed successfully; however, when i reboot, I do not have an option to boot to my Windows 7 partition.  I instead get a list of various Centos systems to boot.  When i first installed Centos, the boot showed 3 flavors of Centos I could boot.  After I ran software update, the boot showed 4 options, with the main option have "(core) listed - but still no Windows 7.  The interface looks more like MBR vice grub
0
Comment
Question by:DCCoolBreeze
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40320870
You need to tweak grub2 configuration to detect other OS partitions.
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 40320888
did you select grub on the installation .. what steps did you use?
0
 
LVL 1

Author Comment

by:DCCoolBreeze
ID: 40321005
Thanks for commenting... the installation never asked about grub.  i now know that grub2 is the boot loader.  I still have not figured out how to get the windows option loaded in grub2.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Accepted Solution

by:
DCCoolBreeze earned 0 total points
ID: 40321020
I was able to solve the problem.  Centos loaded grub2 as the boot loader.  My windows 7 partition was intact, but not seen by grub2.  So I had to manually add windows 7.  To do this i did the following:

su -

#gedit /etc/grub.d/06_custom

#! /bin/sh -e
echo "Adding custom boot entry(s)" >&2
 cat << EOF
menuentry "Chainload Windows 7" {
    set root=(hd0,msdos1)
    chainloader +1  
}
EOF

#chmod 755 /etc/grub.d/06_custom

#grub2-mkconfig -o /boot/grub2/grub.cfg

i found this information on http://members.iinet.net/~herman546/p20/GRUB2%20Configuration%20File%20Commands.html

I just changed the last line to reflect grub2 (#grub2-mkconfig -o /boot/grub2/grub.cfg)
0
 
LVL 62

Expert Comment

by:gheist
ID: 40321022
You need to add something to /etc/sysconfig/grub, but i dont know what...
0
 
LVL 1

Author Closing Comment

by:DCCoolBreeze
ID: 40329901
it worked!
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question