[SOLVED] How to add windows 8.1 to linux boot menu.
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
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.
Already had windows installed but after installing centos the grub boot menu doesn't show the windows8 which is on the same HDD.now i have used the paragon rescue tool to boot to windows How do i add windows to the grub bootmenu?
You will have to change the "(hd0,1)" bit to reflect your installation -- GRUB2 counts drives from "0" and partitions from "1" so a Windows main partition on (for example) /dev/sda3 would need "(hd0,3)" in that section.
i opened /etc/grub.d/40_custom: in vi editor but it doesn't show any content only this ~
~
~in blue along the left side is it okay to add the entry at the top as no content is seen.
how do i navigate the file in vi editor? or should i use any other editor?
i opened /etc/grub.d/40_custom: in vi editor but it doesn't show any content only this ~
~
~in blue along the left side is it okay to add the entry at the top as no content is seen.
how do i navigate the file in vi editor? or should i use any other editor?
Did the file exist before you tried to open it in vi?
I've never used CentOS so I'm not sure how their GRUB implementation is structured.
My /etc/grub.d/40_custom looks like this:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
You could just add the stanza directly into /boot/grub/grub.cfg under your other menu entries (before the final "}") and it should work but it will get over-written the next time your GRUB menu is updated (ie, after the next kernel upgrade).
I think you might be better waiting for advice from someone who has actually used CentOS (sorry).
If you decide to add the menu entry you would be better using nano (or an editor you are familiar with) if you don't know how to use vi or vim.
you can use any editor, for example nano too (or mc as midnight commander and its editor, mcedit). (and obviously you can easily install them if they were not available.
If you have a /boot/efi/EFI/<some centos directory with a grub.cfg file> add the windows entry at some point near the end of this file. If you have a /boot/grub/menu.lst file or one in the efi directory let us know for the windows entry will be a different.
Last edited by colorpurple21859; 03-23-2015 at 05:36 AM.
but it didn't help.
it gave four lines of output each line had some thing like "I/O error" in the middle may be it doesn't work because there is no unallocated space on my hdd.i couldn't copy that output as there is no GUI i am doing it in command line.
I have added the menuentry to the grub2.cfg file and it works fine though not sure if its the right way to do it.now i am able to select windows from the grub2 boot menu.
Have you installed ntfs-3g yet?
I'm not sure that is sufficient to get a subsequent run of grub-mkconfig to work correctly for Windows 8.1 (as it was for earlier Windows versions). But I would expect it to be sufficient and also I would expect anyone with a dual boot Centos/Windows system to need ntfs-3g anyway (even if you got dual boot to work right without ntfs-3g).
You can get all this to work by editing the config files for grub. But the exact edits are both harder than many of those suggesting that approach imply and more specific to details of your system that we don't know well enough for advising you. A better approach is installing the relevant package (ntfs-3g) that is supposed to enable grub-mkconfig to do its job automatically (without such edits).
That will work until your first software update that updates your grub menu, then your edit of grub.cfg will be over written. Need to figure out why os-prober isn't working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.