Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dualboot with Windows 10, repair Windows 10 bootloader
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
antoniovalos
n00b
n00b


Joined: 24 Mar 2023
Posts: 47

PostPosted: Sun Jun 23, 2024 5:02 pm    Post subject: Dualboot with Windows 10, repair Windows 10 bootloader Reply with quote

I had 5 partitions in my drive, 1-3 I installed gentoo, and the 4,5 later created installing windows. everything was working fine, but I deleted the three fist partitions and recreated three partitions and installed gentoo without changing the 4 and 5 partitions.
After installing gentoo, without changing the windows partitions, Windows bootloader is broken. I can mount it and veryfy what is in it. How can I repair my windows 10 bootloader UEFI or adding it on grub bootloader option

*The 1-3 partitions were creating with different sizes in the new gentoo installation, but the sum of the sizes kept the same

The fdisk output now:
Code:

Disk /dev/sdb: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: ADATA SU650     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 062826F2-437F-464E-AD58-F3EA3287FBC2

Device         Start       End   Sectors   Size Type
/dev/sdb1       2048   2099199   2097152     1G EFI System
/dev/sdb2    2099200  10487807   8388608     4G Linux swap
/dev/sdb3   10487808 234440703 223952896 106.8G Linux root (x86-64)
/dev/sdb4  234440704 234473471     32768    16M Microsoft reserved
/dev/sdb5  234473472 468860927 234387456 111.8G Microsoft basic data


Code:

tux /home/antonio # fdisk -l /dev/sdb
Disk /dev/sdb: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: ADATA SU650     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 062826F2-437F-464E-AD58-F3EA3287FBC2

Device         Start       End   Sectors   Size Type
/dev/sdb1       2048   2099199   2097152     1G EFI System
/dev/sdb2    2099200  10487807   8388608     4G Linux swap
/dev/sdb3   10487808 234440703 223952896 106.8G Linux root (x86-64)
/dev/sdb4  234440704 234473471     32768    16M Microsoft reserved
/dev/sdb5  234473472 468860927 234387456 111.8G Microsoft basic data
tux /home/antonio # lsblk /dev/sdb -f
NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdb                                                                           
├─sdb1 vfat   FAT32       1879-6EE3                            1021.8M     0% /efi
├─sdb2 swap   1           9d621836-6ead-4ee7-8b76-49e51eb59d95                [SWAP]
├─sdb3 xfs                68386427-4cb3-4e72-80eb-4dc844d422c6   86.9G    19% /
├─sdb4                                                                       
└─sdb5 ntfs               C60E1CF30E1CDDED                               


My gentoo installation is working fine now, how can I repair windows bootloader without reinstalling Windows?
Back to top
View user's profile Send private message
Child_of_Sun_24
l33t
l33t


Joined: 28 Jul 2004
Posts: 602

PostPosted: Sun Jun 23, 2024 6:05 pm    Post subject: Reply with quote

The problem is that you deleted the esp partiton (Efi System Partiton) which contains the Windows Bootloader.

You should repair it with booting from the Windows Installation Medium, then pressing Shift+F10 on the first screen to get a command prompt. Then you have to use the "bcdboot X:\windows" command to recreate the Windows Bootloader (X:\Windows should be the drive where Windows is mounted, can be any other drive letter).

After this Windows should boot again (Maybe you must change your bootloader back to grub in the Uefi-Firmware).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum