[SOLVED] Change Windows Boot Partition

Status
Not open for further replies.

Fredin

Honorable
Apr 5, 2019
47
2
10,545
I know there are a lot of similar questions, but I've read through a lot of guides and nothing seems so fix this.

Backstory :
I had windows and Manjaro installed on my HDD. Then I got a new SSD and I reinstalled windows, but I forgot to disconnect the HDD before installing, so windows used the old boot partition.
I want to change the boot partition to my SSD and really don't want to reinstall everything. It's GPT.
I recently upgraded to Windows 11 and that's why I'm posting this here.

Here's the current situation:
Partitions: View: https://imgur.com/a/Lw4AgVZ


Disk 0 Partition 1 is the old recovery partition
Disk 0 Partition 2 is the old boot partition (I'm not sure why C drive has the label 'boot')
Disk 1 Partition 4 is the new recovery partition (was automatically created with windows)

I created a new partition (Disk 1 Partition 3) and tried to set it as the boot partition with "bcdboot c:\Windows /s h: /f ALL /c" (h was the new partition)
Then I disconnected my HDD, and everything looked good in the BIOS (the new boot thingy showed up, and I was able to boot just fine), but when I ran bcdedit I got the error
"The boot configuration data store could not be opened. The requested system device cannot be found. "

I recreated and tried setting the new boot partition multiple times, but it's still the same.
If I run bcdedit while booted it actually shows the old boot partition View: https://imgur.com/wQBJuBJ

Also, if I run "reagentc /info" when booted using the old partition it shows the recovery stuff properly but if I run it when booted using the new partition, it shows that the recovery is disabled, and I cannot enable it.

So afaik it looks like windows is still holding on to the old bcd files. How do I rebuild it properly? Or is something else the problem?
 
Last edited:
I don't know what all the flags after the bcdboot command you ran did.
wait, nvm - https://docs.microsoft.com/en-us/wi...mmand-line-options-techref-di?view=windows-11
These are the steps I normally suggest:
https://www.tenforums.com/installation-upgrade/52837-moving-recreating-efi-partition.html#post698505

generally also helps to remove old drive info from BIOS so it doesn't mistakenly boot that randomly at another date and confuse you further.

C is labelled Boot on mine as well, that is normal. Efi should be marked as system which is also illogical as you would think C is where the system is :)
 
Last edited:
  • Like
Reactions: Fredin

That is exactly what I did. The BIOS detects the new boot partition, I can boot using it and all, it's just windows that won't change its BCD entries to the new one. This also somehow causes the Windows recovery to not work with the new boot partition, ie it doesn't show up when doing shift + restart (I only get an option to get into BIOS) and running "reagentc /info" shows that it is disabled.

Some guides I read said that I need to fix my boot entries first to fix recovery, which doesn't seem to change even after unplugging the HDD and running the bcdboot comand. At this point I just don't know what I'm doing.
I checked the help stuff in bdedit and ran "bcdedit /sysstore H:\EFI\Microsoft\Boot\BCD" but it shows View: https://imgur.com/a/EFHRtHl
 
Status
Not open for further replies.

TRENDING THREADS