After installing MX23.6 Windows is missing in the dual boot menu  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
FullScale4Me
Posts: 1084
Joined: Fri Jan 08, 2021 11:30 pm

Re: After installing MX23.6 Windows is missing in the dual boot menu

#21 Post by FullScale4Me »

linexer2016 wrote: Mon Jun 02, 2025 2:47 am noursle,
This may be of value (or not). At times I've had to reinstall and the Windows menu has disappeared. What I have found success in is boot into MX. Grab from mxpi if you haven't already got it installed, Grub Customizer. Run GC and you very well may find (as I've done) the errant Windows menu. Good luck if the later suggestions in this thread don't solve your problem.
Grub Customizer can't customize what isn't there. Just sayin.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

noursle
Posts: 13
Joined: Sat May 31, 2025 1:45 pm

Re: After installing MX23.6 Windows is missing in the dual boot menu

#22 Post by noursle »

So, after 2 hours I gave it up to reinstall WIN ESP.
I followed the instructions I found on the internet, but I fail at the last step:
1) Boot with Win USB-Stick
2) Repair your Computer
3) Troubleshoot
4) Command prompt
5) diskpart
6) list disk
7) sel disk 1
8) list part
9) sel part 1 (Fat partition SYSTEM)
10) assign letter=y
11) exit
12) format y: /fs:FAT32
13) bcdboot c:\windows /s y: /f UEFI
and here I get the error message: "Failure when attempting to copy boot files."

I restarted my PC with the MX Boot-USB Stick and recreated with the MX-BOOT-Reparatur the MX-LINUX BOOT menu.
And here I am again...long live MX LINUX!!

User avatar
FullScale4Me
Posts: 1084
Joined: Fri Jan 08, 2021 11:30 pm

Re: After installing MX23.6 Windows is missing in the dual boot menu  [Solved]

#23 Post by FullScale4Me »

noursle wrote: Mon Jun 02, 2025 4:06 pm ...
13) bcdboot c:\windows /s y: /f UEFI
and here I get the error message: "Failure when attempting to copy boot files."

I restarted my PC with the MX Boot-USB Stick and recreated with the MX-BOOT-Reparatur the MX-LINUX BOOT menu.
And here I am again...long live MX LINUX!!
This means your choice of the drive letter C:\Windows was incorrect. Yes, it is the main drive letter when Windows boots normally.

What was likely not clear in the directions you were following as to how to identify the Windows main 'drive' for bcdboot.

Look for a volume of 48 Gb to 62 Gb in size (or more) as that will be it. BTW you don't have to use C as the drive letter, it can be any letter other than y and will work fine.
Michael O'Toole
MX Linux facebook group moderator
Dell OptiPlex 7050 i7-7700, MX Linux 23 Xfce & Win 11 Pro
HP Pavilion P2-1394 i3-2120T, MX Linux 23 Xfce & Win 10 Home
Dell Inspiron N7010 Intel Core i5 M 460, MX Linux 23 Xfce & KDE, Win 10

User avatar
DukeComposed
Posts: 1413
Joined: Thu Mar 16, 2023 1:57 pm

Re: After installing MX23.6 Windows is missing in the dual boot menu

#24 Post by DukeComposed »

FullScale4Me wrote: Mon Jun 02, 2025 7:46 pm This means your choice of the drive letter C:\Windows was incorrect.

What was likely not clear in the directions you were following as to how to identify the Windows main 'drive' for bcdboot.
The diskpart utility can be really beneficial here. Not only does diskpart have the power to perform the format action directly ("format fs=fat32 quick") but after assigning a letter to the EFI partition one can also list all volumes on the disk ("list volume" or "list vol"). This is an easy way to figure out where things are in a Windows rescue session and pinpoint where common drives like C:, D:, and X: ended up being put.

It can take a little guesswork if you've partitioned the disk in a unique way ("I want a 50 GB Windows partition and a 50 GB data partition on the same disk") and has to be done for every disk in the machine because diskpart only inspects one disk at a time, but for most users who follow Windows setup best practices, you'll only have one OS Disk and only a couple of partitions on it. Giving your Windows volumes sensible labels ahead of time can also help identify them later.

noursle
Posts: 13
Joined: Sat May 31, 2025 1:45 pm

Re: After installing MX23.6 Windows is missing in the dual boot menu

#25 Post by noursle »

Dear all,

many thanks, I could reinstall a correct Windows-EFI Boot Partition after changing the letter to E: instead of C:.

I could find the correct partition name with the diskpart command: "list vol".
Then I have done an "exit" from the diskpart-tool, changed to E: and checked with "dir" if I could find the Windows directory.
And yes, there it was!
(y: is my empty boot partition, see step 10 from post #22)
Back to "X:\source" and then I entered the command: "bcdboot E:\windows /s y: /f UEFI"
and voilà, no error code and the EFI Boot Partition could be created.
I restarted my PC and I could boot to Windows (since end of january 2025).

After running the Windows updates, I made a Shortcut "Shutdown.bat" with the following code: "shutdown /s /t 0" and clicked on it.
Then I restarted my PC with the MX-Linux Boot stick, bootet my MX-Linux and opened a terminal and entered the following command:
"sudo update-grub"
Then I restarted my PC, clicking the F8-button (on my PC, on yours it could be F-12) to enter the UEFI bootmenu.
There I was able to select an entry to start WIN or MX-Linux.

I learned a lot of your all, many thanks!

This issue can now be closed.
Last edited by noursle on Tue Jun 03, 2025 2:47 pm, edited 1 time in total.

User avatar
Eadwine Rose
Administrator
Posts: 14674
Joined: Wed Jul 12, 2006 2:10 am

Re: After installing MX23.6 Windows is missing in the dual boot menu

#26 Post by Eadwine Rose »

Please click the checkmark in the top right of the post (to the left of the username/user image) that holds the solution to mark the topic solved, thanks :)
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Post Reply

Return to “MX Help”