Article 5C9HF win7 no longer appears on grub menu, also error while generating grub config

win7 no longer appears on grub menu, also error while generating grub config

by
andrewysk
from LinuxQuestions.org on (#5C9HF)
I am using arch based linux, xfce. using legacy mode, MBR hdd.
This is my hdd partition:
sda1 windows7 reserve
sda2 win7 ntfs
sda3 / ext4
sda4 extended
sda6 logical ext4 /home
sda5 /swap

I have win7 install, and i also have eos linux installed

Issue1:
------------
Previously when i execute Code:grub-mkconfig -o /boot/grub/grub.cfg it always creates 2 lines for windows7:
1. windows7 sda1
2. windows7 sda2
While windows7 sda2 should not be listed.. I think it is generated when grub-mkconfig is because something have being created in sda2, which grub thought it is also and os of itself.

Q1.
What does grub look in every partitions when grub-mkconfig (so that it know to create a menu for a os that it detected or don't create when it see a partition that has got no os in it )?

Why in this case it mistaken SDA2 as an os loader when it is not ?


Scenario2:
------
So, i entered found a webpage said Code:disable os-prober in /etc.. but i lost the article now.. can't remember where was the /etc file that i have modified. I did however made bak copy of the file beside it before i made the change.
This "os-prober disable" fix the dual line win7 in grub menu. (i think i also went to grub config to mask out the "win7 sda2 boot menu".
*which now i come to think of it, it is not the right thing to do, because everytime when a kernel update or installed, it will be over written.

Today, i used the Kernel manager of EOS to install several kernels, lts , zen , hardened.. (just to have more kernel to try out). the Kernel manager did the grub config generating in background by itself.

Issue2:
--------
Booted the computer, it shows the whole list of kernels, but the original rolling release kernel is not in the grub menu.
Also Win7 is not in the grub menu.
I suspect it was due to the "os-prober disable" line that i have added in (i can't remember where is the file i added the line)

Q2.
What skeleton files that refers to byCode: grub-mkconfig -oI believe it looks for Code:/etc/default/grub as "template" to create grub config file.
I want to undo my previous *mistake* so, grub will able to show win7 and rolling release kernel.
Or is there way to grab and replace those files in /etc/default from liveusb ?

Thxlatest?d=yIl2AUoC8zA latest?i=JHB5izY9QQM:1955vGo3QH8:F7zBnMy latest?i=JHB5izY9QQM:1955vGo3QH8:V_sGLiP latest?d=qj6IDK7rITs latest?i=JHB5izY9QQM:1955vGo3QH8:gIN9vFwJHB5izY9QQM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments