[RESOLVED]Help me - Windows does not appear at startup dual boot

Issues related to applications and software problems
Patosan88
Posts: 8
Joined: 2020/09/24 04:00:00

[RESOLVED]Help me - Windows does not appear at startup dual boot

Post by Patosan88 » 2020/09/24 05:10:33

Hello friends

I installed centos on a windows 10 partition hoping that after following a youtube tutorial I could have both operating systems with double boot, but now only Centos appears to me. I installed centos to do some exercises.

What is happening? how can i fix the problem?
I don't have much experience with Centos, but I can execute commands in the terminal, I don't have a backup of windows either, and I don't have important data to lose in case I have to perform a maneuver that involves restoring, I just want to recover the windows with its license or if it is possible to dual boot.

Here are some commands that I saw in other forums that I suppose are important to find the problem:

Code: Select all

[claudia@localhost ~]$ cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)

Code: Select all

[root@localhost claudia]# fdisk -l                                                                                                                                      
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.                                                        
                                                                                                                                                                        
Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors                                                                                                          
Units = sectors of 1 * 512 = 512 bytes                                                                                                                                  
Sector size (logical/physical): 512 bytes / 4096 bytes                                                                                                                  
I/O size (minimum/optimal): 4096 bytes / 4096 bytes                                                                                                                     
Disk label type: gpt                                                                                                                                                    
Disk identifier: 7295D654-6AA5-4BCE-B49B-841CB88029FF                                                                                                                   
                                                                                                                                                                        
                                                                                                                                                                        
#         Start          End    Size  Type            Name                                                                                                              
 1         2048       264191    128M  EFI System      EFI System Partition                                                                                              
 2       264192      1083391    400M  Windows recover                                                                                                                   
 3    741435392    743532543      1G  Microsoft basic                                                                                                                   
 4      1697792    741435263  352,8G  Microsoft basic                                                                                                                   
 5    743532544    848390143     50G  Microsoft basic                                                                                                                   
 6    848390144    947259391   47,1G  Microsoft basic                                                                                                                   
 7    947259392    949223423    959M  Windows recover                                                                                                                   
 8    949223424    950145023    450M  Windows recover                                                                                                                   
 9    950145024    954050559    1,9G  Linux swap                                                                                                                        
10    954050560    975788031   10,4G  Microsoft basic

Code: Select all

[root@localhost claudia]# blkid                                                                                                                                         
/dev/sda1: SEC_TYPE="msdos" UUID="E676-A866" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="8ee71d04-6bb9-49d2-8502-22e3074b91ea"                               
/dev/sda2: LABEL="Recovery" UUID="5406828C06826EB4" TYPE="ntfs" PARTUUID="bcec44de-2b57-4bb7-9edd-811bfde5e8dd"                                                         
/dev/sda3: UUID="b90a1a57-d454-4ee3-91bb-82838ed7a053" TYPE="ext4" PARTUUID="c08dc711-c735-4c7b-b925-77c480d70e67"                                                      
/dev/sda4: LABEL="ACER" UUID="1A6AF06E6AF047D1" TYPE="ntfs" PARTUUID="405e3eb9-1f37-4bb6-9188-1c6ddc82b8ce"                                                             
/dev/sda5: UUID="5b866a5b-272c-467c-b0b0-c18a207532f6" TYPE="ext4" PARTUUID="fa547af0-79bc-45b9-a176-13ed70b16a23"                                                      
/dev/sda6: UUID="11438a3e-39d0-4b7b-9081-e306b2a39ea2" TYPE="ext4" PARTUUID="10fed1b5-4598-4269-ac9b-8dd6ec36629c"                                                      
/dev/sda7: UUID="04D0C857D0C8511A" TYPE="ntfs" PARTUUID="f83aa6a0-37f2-434f-be22-6bad6f1b9be4" 
/dev/sda8: UUID="CC4212A242129176" TYPE="ntfs" PARTUUID="fe65d777-9a95-44f9-b139-c466d9265eb1" 
/dev/sda9: UUID="9d3fa916-ea30-436d-8d3b-ec2066797013" TYPE="swap" PARTUUID="3f5c4167-bea4-428e-89ed-a93ebaf3ad59" 
/dev/sda10: UUID="a05f7d7a-ad0a-430c-a70c-6f282f4202b4" TYPE="ext4" PARTUUID="4ade032e-b01c-4eb0-ab04-343344b0b5f4" 

Code: Select all

[root@localhost claudia]# efibootmgr
BootCurrent: 000E
Timeout: 0 seconds
BootOrder: 000B,000E,000D,0009,0006,0008,0004,0005,0007,000C
Boot0000  Setup
Boot0001  Boot Menu
Boot0002  Diagnostic Splash
Boot0003  Acer D2D:
Boot0004* HDD 0: TOSHIBA MQ01ABF050                      
Boot0005* ATAPI CD/DVD: MATSHITADVD-RAM UJ8D2Q                  
Boot0006* USB FDD:
Boot0007* Network Boot:
Boot0008* USB HDD: Generic Flash Disk
Boot0009* USB CD/DVD:
Boot000A* Internal Shell:
Boot000B* Windows Boot Manager
Boot000C* CentOS Linux
Boot000D* CentOS
Boot000E* CentOS Linux

Code: Select all

[root@localhost claudia]# efibootmgr -v
BootCurrent: 000E
Timeout: 0 seconds
BootOrder: 000B,000E,000D,0009,0006,0008,0004,0005,0007,000C
Boot0000  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu     FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002  Diagnostic Splash     FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0003  Acer D2D:     FvFile(bcc93540-7ea9-11df-8c4a-0800200c9a66)
Boot0004* HDD 0: TOSHIBA MQ01ABF050                             /Pci(0x1f,0x2)/Sata(0,0,0)..bYVD.A...O.*..
Boot0005* ATAPI CD/DVD: MATSHITADVD-RAM UJ8D2Q                          /Pci(0x1f,0x2)/Sata(4,0,0)......!N.:^G.V.T
Boot0006* USB FDD:      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0007* Network Boot: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0008* USB HDD: Generic Flash Disk   /Pci(0x1d,0x0)/USB(0,0)/USB(0,0)3.!..3.G..A.....
Boot0009* USB CD/DVD:   VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot000A* Internal Shell:       FvFile(c57ad6b7-0515-40a8-9d21-551652854e37)
Boot000B* Windows Boot Manager  HD(1,MBR,0x6b8b4567,0x1658,0x4400)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...I................
Boot000C* CentOS Linux  HD(3,GPT,14f7aee3-9d99-4632-b118-0647ac7f84ab,0x108800,0x96000)/File(\EFI\centos\shimx64.efi)
Boot000D* CentOS        HD(1,GPT,8ee71d04-6bb9-49d2-8502-22e3074b91ea,0x800,0x40000)/File(\EFI\centos\shimx64.efi)
Boot000E* CentOS Linux  HD(1,GPT,8ee71d04-6bb9-49d2-8502-22e3074b91ea,0x800,0x40000)/File(\EFI\centos\shimx64.efi)

Code: Select all

[root@localhost claudia]# ls -lR /boot/efi
/boot/efi:
total 2
drwx------. 4 root root 2048 jun 27 18:45 EFI

/boot/efi/EFI:
total 4
drwx------. 2 root root 2048 jun 27 18:45 BOOT
drwx------. 3 root root 2048 jun 27 19:07 centos

/boot/efi/EFI/BOOT:
total 1878
-rwx------. 1 root root 1205248 feb 22  2019 BOOTX64.EFI
-rwx------. 1 root root  357792 feb 22  2019 fallback.efi
-rwx------. 1 root root  357792 feb 22  2019 fbx64.efi

/boot/efi/EFI/centos:
total 6860
-rwx------. 1 root root     134 feb 22  2019 BOOT.CSV
-rwx------. 1 root root     134 feb 22  2019 BOOTX64.CSV
drwx------. 2 root root    2048 jun 27 18:45 fonts
-rwx------. 1 root root    4151 jun 27 19:07 grub.cfg
-rwx------. 1 root root    1024 jun 27 19:07 grubenv
-rwx------. 1 root root 1090976 abr  3 17:24 grubx64.efi
-rwx------. 1 root root 1151864 feb 22  2019 mmx64.efi
-rwx------. 1 root root 1151864 feb 22  2019 MokManager.efi
-rwx------. 1 root root 1205248 feb 22  2019 shim.efi
-rwx------. 1 root root 1198984 feb 22  2019 shimx64-centos.efi
-rwx------. 1 root root 1205248 feb 22  2019 shimx64.efi

/boot/efi/EFI/centos/fonts:
total 2502
-rwx------. 1 root root 2560080 abr  3 17:24 unicode.pf2
Thank you very much for the help
Last edited by Patosan88 on 2020/10/05 05:47:45, edited 1 time in total.

tunk
Posts: 832
Joined: 2017/02/22 15:08:17

Re: Help me - Windows does not appear at startup dual boot

Post by tunk » 2020/09/24 09:50:49

I don't know how to fix your problem, but next time
you may consider running CentOS as a virtual machine.
Then you will not have problems like this, and you
can run both in parallel.

lightman47
Posts: 1224
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Help me - Windows does not appear at startup dual boot

Post by lightman47 » 2020/09/24 10:03:15

just throwing this out there - have you installed ntfs-3g ? grub2-mkconfig can't find drives it can't read.
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

Patosan88
Posts: 8
Joined: 2020/09/24 04:00:00

Re: Help me - Windows does not appear at startup dual boot

Post by Patosan88 » 2020/09/24 15:55:13

lightman47 wrote:
2020/09/24 10:03:15
just throwing this out there - have you installed ntfs-3g ? grub2-mkconfig can't find drives it can't read.
I haven't installed it, how do I do it?
Let's see if this will remedy the problem

Patosan88
Posts: 8
Joined: 2020/09/24 04:00:00

Re: Help me - Windows does not appear at startup dual boot

Post by Patosan88 » 2020/09/24 15:59:50

tunk wrote:
2020/09/24 09:50:49
I don't know how to fix your problem, but next time
you may consider running CentOS as a virtual machine.
Then you will not have problems like this, and you
can run both in parallel.
Thanks for your recommendation

Patosan88
Posts: 8
Joined: 2020/09/24 04:00:00

Re: Help me - Windows does not appear at startup dual boot

Post by Patosan88 » 2020/09/25 03:15:36

lightman47 wrote:
2020/09/24 10:03:15
just throwing this out there - have you installed ntfs-3g ? grub2-mkconfig can't find drives it can't read.
I did this:

Code: Select all

[root@localhost claudia]# yum install ntfs-3g fuse
Complementos cargados:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.epn.edu.ec
 * epel: mirror.uta.edu.ec
 * extras: mirror.epn.edu.ec
 * updates: mirror.epn.edu.ec
El paquete fuse-2.9.2-11.el7.x86_64 ya se encuentra instalado con su versión más reciente
Resolviendo dependencias
--> Ejecutando prueba de transacción
---> Paquete ntfs-3g.x86_64 2:2017.3.23-11.el7 debe ser instalado
--> Resolución de dependencias finalizada

Dependencias resueltas

=============================================================================================================================================================
 Package                            Arquitectura                      Versión                                          Repositorio                     Tamaño
=============================================================================================================================================================
Instalando:
 ntfs-3g                            x86_64                            2:2017.3.23-11.el7                               epel                            265 k

Resumen de la transacción
=============================================================================================================================================================
Instalar  1 Paquete

Tamaño total de la descarga: 265 k
Tamaño instalado: 612 k
Is this ok [y/d/N]: y
Downloading packages:
advertencia:/var/cache/yum/x86_64/7/epel/packages/ntfs-3g-2017.3.23-11.el7.x86_64.rpm: EncabezadoV3 RSA/SHA256 Signature, ID de clave 352c64e5: NOKEY:-- ETA 
No se ha instalado la llave pública de ntfs-3g-2017.3.23-11.el7.x86_64.rpm 
ntfs-3g-2017.3.23-11.el7.x86_64.rpm                                                                                                   | 265 kB  00:00:02     
Obteniendo clave desde file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importando llave GPG 0x352C64E5:
 Usuarioid  : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Huella       : 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Paquete    : epel-release-7-11.noarch (@extras)
 Desde      : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Está de acuerdo [s/N]:s
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Instalando    : 2:ntfs-3g-2017.3.23-11.el7.x86_64                                                                                                      1/1 
  Comprobando   : 2:ntfs-3g-2017.3.23-11.el7.x86_64                                                                                                      1/1 

Instalado:
  ntfs-3g.x86_64 2:2017.3.23-11.el7                                                                                                                          

¡Listo!

Code: Select all

[root@localhost claudia]# yum install ntfsprogs ntfsprogs-gnomevfs
Complementos cargados:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.epn.edu.ec
 * epel: mirror.uta.edu.ec
 * extras: mirror.epn.edu.ec
 * updates: mirror.epn.edu.ec
Resolviendo dependencias
--> Ejecutando prueba de transacción
---> Paquete ntfsprogs.x86_64 2:2017.3.23-11.el7 debe ser instalado
--> Resolución de dependencias finalizada

Dependencias resueltas

=============================================================================================================================================================
 Package                              Arquitectura                      Versión                                        Repositorio                     Tamaño
=============================================================================================================================================================
Instalando:
 ntfsprogs                            x86_64                            2:2017.3.23-11.el7                             epel                            364 k

Resumen de la transacción
=============================================================================================================================================================
Instalar  1 Paquete

Tamaño total de la descarga: 364 k
Tamaño instalado: 1.1 M
Is this ok [y/d/N]: y
Downloading packages:
ntfsprogs-2017.3.23-11.el7.x86_64.rpm                                                                                                 | 364 kB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Instalando    : 2:ntfsprogs-2017.3.23-11.el7.x86_64                                                                                                    1/1 
  Comprobando   : 2:ntfsprogs-2017.3.23-11.el7.x86_64                                                                                                    1/1 

Instalado:
  ntfsprogs.x86_64 2:2017.3.23-11.el7                                                                                                                        

¡Listo!
But that didnt not solve the problem
What other options do I have?

owl102
Posts: 386
Joined: 2014/06/10 19:13:41

Re: Help me - Windows does not appear at startup dual boot

Post by owl102 » 2020/09/25 07:21:45

Patosan88 wrote:
2020/09/25 03:15:36
But that didnt not solve the problem
Installing the ntfs support is only a prerequisite to fix the problem. The next steps are to check if os-prober is now able to find the Windows installation, and if yes, to regenerate the CentOS boot menu:

1. What does

Code: Select all

os-prober
say? Does it find the Windows installation? If yes, continue with step 2:

2.

Code: Select all

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
(as root) [1]

Now you should have an "MS-Windows" boot entry in your CentOS boot menu.

[1] https://wiki.centos.org/HowTos/Grub2
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

owl102
Posts: 386
Joined: 2014/06/10 19:13:41

Re: Help me - Windows does not appear at startup dual boot

Post by owl102 » 2020/09/25 07:29:51

I just see that this is doomed to fail since you have nuked the MS-Windows boot loader during installation of CentOS:
Patosan88 wrote:
2020/09/24 05:10:33
/boot/efi/EFI:
total 4
drwx------. 2 root root 2048 jun 27 18:45 BOOT
drwx------. 3 root root 2048 jun 27 19:07 centos
(The folder "Microsoft" is missing.)

It seems that you have formatted the ESP (EFI System Partition) during the installation of CentOS. For dual booting it is very important to use the already existing ESP without formatting.

To fix this you need to repair your MS-Windows installation. Since only the EFI boot loader for MS-Windows is missing, the MS-Windows installation media should be able to do this without any data loss.

Do you have a backup of your system? If yes it should be sufficient to restore the "Microsoft" directory on the ESP.
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

Patosan88
Posts: 8
Joined: 2020/09/24 04:00:00

Re: Help me - Windows does not appear at startup dual boot

Post by Patosan88 » 2020/09/25 18:19:46

owl102 wrote:
2020/09/25 07:29:51
I just see that this is doomed to fail since you have nuked the MS-Windows boot loader during installation of CentOS:
Patosan88 wrote:
2020/09/24 05:10:33
/boot/efi/EFI:
total 4
drwx------. 2 root root 2048 jun 27 18:45 BOOT
drwx------. 3 root root 2048 jun 27 19:07 centos
(The folder "Microsoft" is missing.)

It seems that you have formatted the ESP (EFI System Partition) during the installation of CentOS. For dual booting it is very important to use the already existing ESP without formatting.

To fix this you need to repair your MS-Windows installation. Since only the EFI boot loader for MS-Windows is missing, the MS-Windows installation media should be able to do this without any data loss.

Do you have a backup of your system? If yes it should be sufficient to restore the "Microsoft" directory on the ESP.
I don't have system backups
I plan to fix booting via usb with windows installation - troubleshooting.
The problem is that it does not allow me to load the usb memory in the boot order, as soon as I turn on the pc it does not let me consider loading from the usb, it goes directly to Centos.
I press f11, f10 etc and it doesn't load the memory

Code: Select all

[root@localhost claudia]# efibootmgr
BootCurrent: 000E
Timeout: 0 seconds
BootOrder: 000B,000E,000D,0009,0006,0008,0004,0005,0007,000C
Boot0000  Setup
Boot0001  Boot Menu
Boot0002  Diagnostic Splash
Boot0003  Acer D2D:
Boot0004* HDD 0: TOSHIBA MQ01ABF050                      
Boot0005* ATAPI CD/DVD: MATSHITADVD-RAM UJ8D2Q                  
Boot0006* USB FDD:
Boot0007* Network Boot:
Boot0008* USB HDD: Generic Flash Disk
Boot0009* USB CD/DVD:
Boot000A* Internal Shell:
Boot000B* Windows Boot Manager
Boot000C* CentOS Linux
Boot000D* CentOS
Boot000E* CentOS Linux

owl102
Posts: 386
Joined: 2014/06/10 19:13:41

Re: Help me - Windows does not appear at startup dual boot

Post by owl102 » 2020/09/26 12:29:02

AFAIK the key to enter the BIOS/UEFI boot menu on an Acer computer is F12 during POST.
German speaking forum for Fedora and CentOS: https://www.fedoraforum.de/

Post Reply

Return to “CentOS 7 - Software Support”