Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have installed centos7 in my laptop but after installing i cannot boot into my windows OS .
Even there is no grub entry for it but my windows partitions are intake .
There should be some option you've missed out while installing Centos7. The options are i. Would you like Centos7 to find otherOSes on this computer? ii. Do you want to direct boot or wait for 10seconds?. Some distro like Puppy linux will only install Grub after finish the installation. sometimes it install auto magically but sometimes not. You have to go on to menu and click Install bootloader manually and edit grub of your /boot folder.
Fortunately your windows is still *INTACT* boot to your new Centos7 and reinstall the bootloader. Hope this help....
I installed CentOS a few months ago and it created a boot entry for windows 7 so I'm not sure what happened. You can open the /boot/grub/grub.conf file as root user and add a chainload entry such as the one below. You would need to know the partition on which the windows 7 system/boot files are:
Quote:
title windows
root (hd0,0)
makeactive
chainloader +1
You may need to change the root entry above as it points to the first partition, first drive.
@ Yancek
The grub file entry that you have mentioned exists for CentOs 5.5 or below while dual booting .
But for Centos 6 or Centos 7 , the grub file entries are quite different .
I would definitely post the grub.conf for my Centos 7 system to have a look .
I have a similar problem. I had Windows 7 and Centos 6.5 installed on same disk /dev/sda1 and /dev/sda2 and then I installed Centos 7 instead.
Since then I cant find Windows entry in the Grub.
I am pretty sure that my Windows partition is OK as I can boot there directly from GRUB.
But after trying to use all kind of solution found on the net I still cant see any entry.
Made it executable and again run grub2-mkconfig -o /boot/grub2/grub2.cfg .
Both of this solutions seem to add some entries to the Grub but they are not creating any real menu entry after booting the system.
"grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2" show only:
CentOS Linux, with Linux 3.10.0-123.el7.x86_64
CentOS Linux, with Linux 0-rescue-56a5525b6585421c9014090c1b0b09ac
Do you please have any idea how to fix this?
Thanks a lot!
Hi yancek, thanks for your reply.
I do not understand that much to be perfectly honest. Only found that the UUID solution is more reliable.
Never played much with grub and bootloaders. But it does not matter now the second option is not working either. Not adding any entry.
But still the problem remains the same. I cannot find any Windows entry at booting. It is not that it is not working it is not even offering the entry.
I would understand if I chose some Windows entry and then it did not boot or returned some error.
As I am able to boot Windows from Grub I would guess the solution is really easy but still cant find it
Did you install CentOS 7 to a separate partition? or did you install it over CentOS 6.5? Are you sure you did not install over windows? Did you check the partitions with GParted?
I installed it over the 6.5 version. Just deleted all its volumes during installation and created a new one.
100% positive Windows are ok. Can boot there from Grub using: insmod ntfs,set root (hd0,msdos1) etc.
grub2-mkconfig -o /boot/grub2/grub2.cfg seems to find Windows 7 loader but just cant see any other entry. apart from CentOS.
Running grub-mkconfig after creating your windows entry in 40_custom should put an entry in grub.cfg. Do you see any output when you run it relating to windows? Do you use the arrow keys at the boot menu to make sure you have seen all the entries?
Quote:
As I am able to boot Windows from Grub I would guess the solution is really easy but still cant find it
If that is the case, I'm not sure what the problem is?
The problem is I cant find a solution as you quoted
My main problem is that I did not manage to create an entry in GRUB. Lets just say I do not wanna use it for booting for now. Just want to have in my GRUB menu:
CentOS 7
CentOS 7 rescue
Windows 7 <--- this I cant get there
All solutions I found put Windows to grub2.cfg but NOT actually create any entry to menu in GRUB.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.