Solved

Centos 7/Windows 7 Dual Boot Problem

Posted on 2014-09-13
6
3,522 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
  • 3
  • 2
6 Comments
 
LVL 61

Expert Comment

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

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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 61

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now