How to add windows 8.1 to linux boot menu.
Hi
Recently installed centos on my system. 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? |
Add this to the end of the file at /etc/grub.d/40_custom:
Code:
menuentry "Windows" { Then run: Code:
# grub-mkconfig -o /boot/grub/grub.cfg |
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? |
Quote:
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 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.
|
would the content if /etc/grub.d/40_custom: be empty?
i am not sure if the file existed or was created when i ran the command Code:
vi /etc/grub.d/40_custom: Quote:
i haven't run : Quote:
|
Quote:
The file you must add the entry to is: /etc/grub.d/40_custom ...with no ":" at the end. |
okay i will try it
|
i added the entry to
Code:
/etc/grub.d/40_custom Quote:
but the entry doesn't show on boot menu. what shall i do next |
Did you run the `grub-mkconfig` command as root (or put `sudo` before it)?
Post any terminal output after the command is run. Try this instead (as root): Code:
# update-grub |
i ran it as root,the output was :
Code:
bash:grub-mkconfig:command not found Code:
bash:update-grub:command not found |
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.
|
There doesn't seem to be a director
Quote:
i ran the os prober Quote:
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). See post #4 in this thread http://www.linuxquestions.org/questi...5/#post5304406 and/or see post #29 in this thread http://www.linuxquestions.org/questi...2/#post5284444 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). |
Quote:
|
All times are GMT -5. The time now is 10:34 PM. |