Solved

Centos 7/Windows 7 Dual Boot Problem

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

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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX, CPANEL & WHM 5 44
nagios remote hosts 9 46
How to mount an LVM partition that is part of a disk image. 3 51
AWS - HAProxy- KeepAlived 5 19
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

863 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

26 Experts available now in Live!

Get 1:1 Help Now