LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   How to add windows 8.1 to linux boot menu. (https://www.linuxquestions.org/questions/centos-111/how-to-add-windows-8-1-to-linux-boot-menu-4175537521/)

vinay45 03-23-2015 10:55 AM

ntfs-3g is installed now the grub2-mkconfig command is working.should i add the menuentry to:
Code:

/etc/grub.d/40_custom
i removed the entry i made in 40_custom after installing
Code:

yum install epel-release
yum install ntfs-3g

should i add the menu entry to '40_custom' or run grub2-mkconfig command.

colorpurple21859 03-23-2015 10:58 AM

run grub2-mkconfig and see if it picks up windows, if not then make the 40-custom entry then rerun grub2-mkconfig

vinay45 03-23-2015 11:28 AM

i ran
Code:

grub2-mkconfig
and it pick up windows 8 but it doesn't show up in the boot menu.
then i ran the command
Code:

grub2-mkconfig -o /boot/grub/grub.cfg
,then too the boot sreen wouldn't show windows eight.
should i copy the menu entry for windows8 as it appears after the grub2-mkconfig command is run.

johnsfine 03-23-2015 11:37 AM

Quote:

Originally Posted by vinay45 (Post 5336435)
i ran
Code:

grub2-mkconfig
and it pick up windows 8 but it doesn't show up in the boot menu.
then i ran the command
Code:

grub2-mkconfig -o /boot/grub/grub.cfg
,then too the boot sreen wouldn't show windows eight.
should i copy the menu entry for windows8 as it appears after the grub2-mkconfig command is run.

I don't understand what went wrong with the second attempt you just described. (I assume you already understand what went wrong when you didn't have grub2-mkconfig store its output in the right place).

Whatever went wrong, won't be fixed by copying that menu entry. If I understand your intent, you would be copying it from the output of grub2-mkconfig back to the input of grub2-mkconfig (which would not be at all helpful).

What do you mean by "boot screen wouldn't show windows"? (How experienced are you with grub?)

The default for grub may not be showing any menu at all. You might need to press a key at the appropriate moment during startup to even see the menu (or you could change some other setting to make displaying the menu be automatic).

Mainly I'm saying that before someone helps you understand why you don't see the Windows line of the grub menu, it would help to be sure you are seeing a grub menu at all.

vinay45 03-24-2015 02:29 AM

Quote:

Originally Posted by johnsfine (Post 5336440)

What do you mean by "boot screen wouldn't show windows"? (How experienced are you with grub?)

.

I meant the after running the 'grub2-mkconfig" command the grub menu list was supposed to be updated right?(i am only sparingly experienced with grub)

vinay45 03-24-2015 03:07 AM

Quote:

Originally Posted by johnsfine (Post 5336440)
I don't understand what went wrong with the second attempt you just described. (I assume you already understand what went wrong when you didn't have grub2-mkconfig store its output in the right place).

would this command store the output in the right place that is in '/etc/grub2.cfg':
Code:

grub2-mkconfig -o /etc/grub2.cfg

colorpurple21859 03-24-2015 05:22 AM

should be
Code:

grub2-mkconfig -o /boot/grub2/grub.cfg
If I'm not mistaken.

vinay45 03-24-2015 07:57 AM

no your not mistaken it worked.thanks everyone.

vinay45 03-24-2015 08:34 AM

how do i make the windows8 entry in the grub list first so that it boot up after the countdown.

colorpurple21859 03-24-2015 09:22 AM

edit the GRUB_DEFAULT line /etc/default/grub I don't remember if it counts from zero or one to the menu entry you want for the default. I think you can set it to menuentry name also.

vinay45 03-24-2015 10:43 AM

i opened the file and here whats set GRUB_DEFAULT=saved.should i replace the saved with the windows8 menu entry name?

colorpurple21859 03-24-2015 12:10 PM

Yes, will be something like this
Code:

GRUB_DEFAULT=Windows 8 (loader) on /dev/sda1
What the menuentry for windows is label in your grub.cfg
then rerun
Code:

grub2-mkconfig -o /boot/grub2/grub.cfg

vinay45 03-24-2015 11:56 PM

i changed it to,
Code:

GRUB_DEFAULT="Windows 8 (loader) (on dev/sda1)"
as
Code:

GRUB_DEFAULT=Windows 8 (loader) (on dev/sda1)
gave me a syntax error.
should i specify the number of the entry?

colorpurple21859 03-25-2015 05:08 AM

Quote:

should i specify the number of the entry?
If the
Quote:

i changed it to,
Code:

GRUB_DEFAULT="Windows 8 (loader) (on dev/sda1)"
doesn't work

vinay45 03-26-2015 04:28 AM

It worked when
Quote:

GRUB_DEFAULT="2"


All times are GMT -5. The time now is 04:45 PM.