LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-15-2022, 12:29 PM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334

Quote:
Originally Posted by walterbyrd View Post
Maybe I would do better with something more recent? Rocky Linux, Oracle Linux, Fedora, or Stream CentOS?
No, you need to fix that grub error. I think it is just a typo:
Code:
grub2-mkconfig -o / boot/grub2/grub.cfg
                   ^ no space here, should be
grub2-mkconfig -o /boot/grub2/grub.cfg
 
1 members found this post helpful.
Old 02-15-2022, 12:38 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
I fixed the typo, sorry about that.
 
Old 02-15-2022, 03:16 PM   #18
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by pan64 View Post
No, you need to fix that grub error. I think it is just a typo:
Code:
grub2-mkconfig -o / boot/grub2/grub.cfg
                   ^ no space here, should be
grub2-mkconfig -o /boot/grub2/grub.cfg
Code:
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-1495fd8baa4e4037ace10e1effc2d33a
Found initrd image: /boot/initramfs-0-rescue-1495fd8baa4e4037ace10e1effc2d33a.img
Found linux image: /boot/vmlinuz-0-rescue-f88f9bcae7074473912b27834c137add
Found initrd image: /boot/initramfs-0-rescue-f88f9bcae7074473912b27834c137add.img
done
Did that. Then I did a full shutdown. Then restarted. Sadly, still will not dual boot.

Last edited by walterbyrd; 02-15-2022 at 03:27 PM.
 
Old 02-15-2022, 03:55 PM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Did you add the osprober line to /etc/default/grub
 
Old 02-15-2022, 04:26 PM   #20
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by colorpurple21859 View Post
Did you add the osprober line to /etc/default/grub
Yes.

Code:
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_DISABLE_OS_PROBER=false
Maybe I should re-install grub?
 
Old 02-15-2022, 07:31 PM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
add this to /etc/grub.d/40_custom

Code:
menuentry 'Windows' --class windows {
set root=(hd0,1)
ntldr /bootmgr
boot
}
rerun
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
 
1 members found this post helpful.
Old 02-16-2022, 12:06 PM   #22
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
That seemed to do it. Thank you. I will mark this solved.
 
Old 02-16-2022, 12:49 PM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
You're Welcome
 
Old 02-16-2022, 01:44 PM   #24
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,970

Rep: Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334Reputation: 7334
Quote:
Originally Posted by colorpurple21859 View Post
add this to /etc/grub.d/40_custom

Code:
menuentry 'Windows' --class windows {
set root=(hd0,1)
ntldr /bootmgr
boot
}
What a magic. Interesting, for me grub works without this.
 
Old 02-16-2022, 03:01 PM   #25
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Works for me too, however, every so often there is a thread about grub not finding windows.
 
Old 02-19-2022, 08:43 PM   #26
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
I have only had this problem with RHEL and CentOS. Grub seems to work in other distros.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(Centos 7) Unable to boot or Dual boot with Windows 10. Missing SSD. & os-prober doesn't find windows 10 lowell2753@gmail.com Linux - Newbie 5 03-14-2019 07:01 PM
Tried centos 7 dual boot with windows 10 not went will as could not boot windows 10...help needed rajeshm79 LinuxQuestions.org Member Intro 0 10-29-2018 01:11 PM
[SOLVED] Dual boot without windows - Windows 10 UEFI dual boot with Metamorphose Panther(Debian/KDE) mithidieri Linux - Newbie 7 11-03-2017 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration