LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-13-2022, 11:26 AM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
Windows 10 / CentOS 7 will not dual boot


I installed Windows 10 first, then installed CentOS 7. I don't think CentOS overwrote the windows partition. But there is no option to boot windows. I have the option of booting centos, or centos.
I found no option to configure a bootloader during the centos installation.
 
Old 02-13-2022, 12:20 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
would be nice to give us more details, like your partition information.
 
Old 02-13-2022, 12:24 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
open a terminal and post the output of
Code:
sudo lsblk -f
cat /sys/firmware/efi
 
1 members found this post helpful.
Old 02-13-2022, 07:26 PM   #4
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs System Reserved 02A4B917A4B90DE3
├─sda2 ntfs A62E4BB92E4B8173
├─sda3 xfs 249a2634-0644-4bd9-9ab8-8d3c25ae2c48
├─sda4
├─sda5 xfs e26c7c3e-3e7d-43ec-b46b-8bfe86572ed4 /boot
├─sda6 swap dc0e7787-1b7c-4270-845a-38e2037e781b
├─sda7 xfs root 5b00eae9-156b-4de6-be30-f60f676eef87 /
└─sda8 xfs 3e810b28-1a01-4520-84ba-56d83352dc1e /home

I cannot find an efi file.

cat /sys/firmware/efi
cat: /sys/firmware/efi: No such file or directory

$ ls -l /sys/firmware
total 0
drwxr-xr-x. 5 root root 0 Feb 13 15:03 acpi
drwxr-xr-x. 4 root root 0 Feb 13 20:03 dmi
drwxr-xr-x. 12 root root 0 Feb 13 20:03 memmap
drwxr-xr-x. 2 root root 0 Feb 13 20:27 qemu_fw_cfg

Last edited by walterbyrd; 02-13-2022 at 07:31 PM.
 
Old 02-13-2022, 07:59 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
post
Code:
cat /etc/default/grub
 
Old 02-13-2022, 08:55 PM   #6
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
# cat /etc/default/grub
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"
 
Old 02-13-2022, 10:31 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That looks like a MBR (aka MS-DOS) partition table. So non-UEFI, non-gpt - I didn't think retail versions of Win10 allowed that.

Check your firmware (i.e. BIOS) screens and make sure EFI mode is selected - not CSM (legacy) mode. Then erase the disk and re-install every thing again from scratch.
 
Old 02-14-2022, 12:04 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by syg00 View Post
That looks like a MBR (aka MS-DOS) partition table. So non-UEFI, non-gpt - I didn't think retail versions of Win10 allowed that.

Check your firmware (i.e. BIOS) screens and make sure EFI mode is selected - not CSM (legacy) mode. Then erase the disk and re-install every thing again from scratch.
OP already installed windows that way (I think). So it worked first. But OP will explain it.
 
Old 02-14-2022, 06:27 AM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Try this first,
add this to etc/default/grub
Code:
GRUB_DISABLE_OS_PROBER=false
Then run
Code:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
If this doesn’t work then will try manually adding a windows menuentry

Last edited by colorpurple21859; 02-15-2022 at 12:38 PM.
 
1 members found this post helpful.
Old 02-15-2022, 09:15 AM   #10
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
> OP already installed windows that way (I think). So it worked first. But OP will explain it.

Yes, I originally installed windows, and windows booted and worked just fine.
 
Old 02-15-2022, 09:32 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
would be nice to see the detailed info about those partitions (like size). Windows needs an efi partition, probably that's why it cannot be booted. What is sda4?
 
Old 02-15-2022, 09:48 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
That looks like a MBR (aka MS-DOS) partition table. So non-UEFI, non-gpt - I didn't think retail versions of Win10 allowed that
Yes windows 10 will install to a mbr partition table in non-uefi mode.

post the output of
Code:
sudo parted -l

Last edited by colorpurple21859; 02-15-2022 at 09:50 AM.
 
Old 02-15-2022, 11:21 AM   #13
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
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
/usr/sbin/grub2-mkconfig: line 290: /: Is a directory
Line 290: cat ${grub_cfg}.new > ${grub_cfg}

In context: (lines 279 to 293 of /usr/sbin/grub2-mkconfig):

Code:
if test "x${grub_cfg}" != "x" ; then
  if ! ${grub_script_check} ${grub_cfg}.new; then
    # TRANSLATORS: %s is replaced by filename
    gettext_printf "Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
%s file attached." "${grub_cfg}.new" >&2
    echo >&2
    exit 1
  else
    # none of the children aborted with error, install the new grub.cfg
    cat ${grub_cfg}.new > ${grub_cfg}
    rm -f ${grub_cfg}.new
  fi
fi

Last edited by walterbyrd; 02-15-2022 at 11:22 AM.
 
Old 02-15-2022, 11:26 AM   #14
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by colorpurple21859 View Post
Yes windows 10 will install to a mbr partition table in non-uefi mode.

post the output of
Code:
sudo parted -l
Code:
# parted -l
Model: ATA WDC WD10EZEX-22B (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  525MB   524MB   primary   ntfs            boot
 2      525MB   105GB   104GB   primary   ntfs
 3      105GB   106GB   1074MB  primary   xfs
 4      106GB   1000GB  894GB   extended
 5      106GB   107GB   1074MB  logical   xfs
 6      107GB   113GB   6041MB  logical   linux-swap(v1)
 7      113GB   167GB   53.7GB  logical   xfs
 8      167GB   1000GB  833GB   logical   xfs
 
Old 02-15-2022, 11:29 AM   #15
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Maybe I would do better with something more recent? Rocky Linux, Oracle Linux, Fedora, or Stream CentOS?
 
  


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 08:14 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