Solved

Centos 7/Windows 7 Dual Boot Problem

Posted on 2014-09-13
6
3,668 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 81

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
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

 
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

Turn Insights Into Action

You’ve already invested in ITSM tools, chat applications, automation utilities, and more. Fortify these solutions with intelligent communications so you can drive business processes forward.

With xMatters, you'll never miss a beat.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

695 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