EFI partition not present on C. Can I resize C: and move Boot Loader from Linux drive?


JohnFante

New member
Local time
9:45 AM
Posts
9
OS
Windows 11, MacOS, PopOS, Manjaro
I am running a multiple OS system. Hackintosh, Win11, PopOS and Manjaro Linux. I select OS via OpenCore.

When I installed Win11 the installer did not create an EFI partition on the Win11 drive. Instead it placed the Microsoft boot loader folder in the EFI folder on my PopOS install. From there I can fine boot Win11. However I would like to clean things up and get an dedicated EFI folder on the Win11 drive. Also to avoid issues with futre updates etc.

Can I just resize the C: drive with 200 mb and create and EFI folder in the beginning of the drive and copy the Microsoft boot loader folder from the EFI folder on the PopOS install? I was thinking of using Gparted to do the resize and to create the EFI folder and make it hidden. I can mount and copy paste the EFI folders in MacOP/Hackintosh.

Thank you in advance!
 

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro
You can create EFI system partition but because you are using Linux on same HDD after creating EFI partition Linux may not boot, probably.

In this video, i will show you how to create EFI partition from within Windows Recovery Environment.

 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Thank you for the reply :-)

Forgot to mention that all the OS'ses are on separate drives.

In that case creating an EFI partition on the Windows drive and then creating and EFI folder with the Microsoft boot loader folder in (in the EFI folder on the Windows drive) should do the trick. Or?
 

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro
In that case creating an EFI partition on the Windows drive and then creating and EFI folder with the Microsoft boot loader folder in (in the EFI folder on the Windows drive) should do the trick.
Yes, it should work without any issues.

I'll recommend reading up about the bcdboot command: BCDBoot Command-Line Options
 

My Computer

System One

  • OS
    Windows 11, Windows 10, Linux Fedora Cinnamon
Just create the empty EFI system partition and then use the bcdboot command to populate it.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
Please post a whole window Disk Manager image of ALL your drives. Don't forget to expand the columns so we can read them. How to Post a Screenshot of Disk Management
If you have a MiniTool or AOMEI Partition use it instead or Windows disk manager.

The commands Navy wrote are like below. (I would like to see the Disk Manager image before you apply the commands)
Boot from Windows and open a CMD window as administrator and type:

diskpart
list disk (take note of the windows drive number n)
select disk n (replace n with the drive number found above)
select vol c
shrink desired=100
create part EFI
format quick FS=fat32 label=EFI
assign letter=W
exit
bcdboot C:\Windows /s W: /f UEFI
diskpart
select vol W
remove letter=W
exit
 

My Computers

System One System Two

  • OS
    Windows 7 HP 64 - Windows 11 Pro - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 7 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    350 Mb/s
    Browser
    Firefox 64
Thank you for all the good advice :-D

I rezised my C: in Gparted on PopOS and created an EFI partition. Then I booted into windows recovery from a USB stick and followed this guide. [FIX] Windows 10 Master Boot Record Is Corrupted. I got the "bootrec /fixboot command gives Access is denied" but followed this to correct it: FIX: 'bootrec /fixboot' Access Is Denied In Windows 11/10. My system had allready assigned a drive letter to the EFI partition (D:) so I used that.

Only issue is that the the EFI partition now has a drive letter (G:). I had marked it hidden on Gparted but apparantly that did not do the trick. Wich also the assigned drive letter points to.

How do I fix this issue? I have attached a screenshot of diskmanagement.
 

Attachments

  • Disks.png
    Disks.png
    49.6 KB · Views: 1

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Only issue is that the the EFI partition now has a drive letter (G:). I had marked it hidden on Gparted but apparantly that did not do the trick. Wich also the assigned drive letter points to.

How do I fix this issue? I have attached a screenshot of diskmanagement.

Please detach other cables or drives to confirm the single disk drive boot.



To delete assigned drive letter G:

administrative command prompt:

mountvol G: /d






To view the final result please run disk par info > post a share link



 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
Are you sure it is the correct type?


View attachment 91505
I installed DiskGenious and got this. Can I "just" change the parameters or will that destroy the data on the EFI partition so I would have to run "bootrec /fixboot" again?

And something is wrong. I can not shut down the system from Windows now ....
 

Attachments

  • Parameters.png
    Parameters.png
    25.1 KB · Views: 1

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro
Had you considered Megahertz's approach in post#6?
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
Please detach other cables or drives to confirm the single disk drive boot.



To delete assigned drive letter G:

administrative command prompt:

mountvol G: /d






To view the final result please run disk par info > post a share link



I removed all the Linux drives so that I only have two
Please detach other cables or drives to confirm the single disk drive boot.



To delete assigned drive letter G:

administrative command prompt:

mountvol G: /d






To view the final result please run disk par info > post a share link



I have removed the linux drives so that I only have one Windows NVE and the Hackintosh NVE. They are just a hassle to remove because they are below big heatsinks so I would rather not. The linux drivers are just SSD's connected via SATA cables. I can see and load from the bootloader on the windows drive so it is installed there fine.

Think the problem is that the partition flags were defined wrong in Gparted. So maybe the trick is to use Disk Genious to change the flags etc.
 

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
Can I "just" change the parameters
yes it shouldnt damage the contents. Select EFi system partition in the dropdown, click OK. need to click Save All at top rt to confirm the changes.

I think I did it on the fly like that once.

Or create diskgenius boot media. If it can find the recovery sequence, because bcdedit might have trouble finding the bcd store without the correct partition guid.

If it can make the media, you could boot it up do whatever you want from there..

otherwise you could try creating a temporary esp partition anywhere you have space and see if bcdboot can populate that
 
Last edited:

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Please detach other cables or drives to confirm the single disk drive boot.



To delete assigned drive letter G:

administrative command prompt:

mountvol G: /d






To view the final result please run disk par info > post a share link



I removed all the Linux drives so that I only have two
yes it shouldnt damage the contents. Select EFi system partition in the dropdown, click OK. need to click Save All at top rt to confirm the changes.

I think I did it on the fly like that once.

Or create diskgenius boot media. If it can find the recovery sequence, because bcdedit might have trouble finding the bcd store without the correct partition guid.

If it can make the media, you could boot it up do whatever you want from there..

otherwise you could try creating a temporary esp partition anywhere you have space and see if bcdboot can populate that
Changing the partitions settings on the EFI partition to the settings you showed in post 8 helped. I can now shut down Windows as normal. However the drive G: still shows up in pathfinder but now I can not access the drive. It looks like the drive letter G: is stuck somehow. See attached:
 

Attachments

  • G.png
    G.png
    54.5 KB · Views: 1

My Computer

System One

  • OS
    Windows 11, MacOS, PopOS, Manjaro
However the drive G: still shows up in pathfinder but now I can not access the drive. It looks like the drive letter G: is stuck somehow.
Have you deleted the mount point as recommend by @zbook?

Code:
mountvol G: /d

The tutorial is here: Remove Drive Letter in Windows 11 Tutorial

If for some reason that doesn't work, then query the following registry key:

Code:
reg query HKLM\SYSTEM\MountedDevices
 

My Computer

System One

  • OS
    Windows 11, Windows 10, Linux Fedora Cinnamon
cant you remove it with diskgenius?
 

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
I gave you simple instructions. If you had followed you wouldn't have the issues you have now.
 

My Computers

System One System Two

  • OS
    Windows 7 HP 64 - Windows 11 Pro - Lubuntu
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom build
    CPU
    i5 6600K - 800MHz to 4400MHz
    Motherboard
    GA-Z170-HD3P
    Memory
    4+4G GSkill DDR4 3000
    Graphics Card(s)
    IG - Intel 530
    Monitor(s) Displays
    Samsung 226BW
    Screen Resolution
    1680x1050
    Hard Drives
    (1) -1 SM951 – 128GB M.2 AHCI PCIe SSD drive for Win 11
    (2) -1 WD SATA 3 - 1T for Data
    (3) -1 WD SATA 3 - 1T for backup
    (4) -1 BX500 SSD - 128G for Windows 7 and Lubuntu
    PSU
    Thermaltake 450W TR2 gold
    Keyboard
    Old and good Chicony mechanical keyboard
    Mouse
    Logitech mX performance - 9 buttons (had to disable some)
    Internet Speed
    500 Mb/s
    Browser
    Firefox 64
  • Operating System
    Windows 7 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Asus Q550LF
    CPU
    i7-4500U 800- 3000MHz
    Motherboard
    Asus Q550LF
    Memory
    (4+4)G DDR3 1600
    Graphics card(s)
    IG intel 4400 + NVIDIA GeForce GT 745M
    Sound Card
    Realtek
    Monitor(s) Displays
    LG Display LP156WF4-SPH1
    Screen Resolution
    1920 x 1080
    Hard Drives
    BX500 120G SSD for Windows and programs
    & 1T HDD for data
    Internet Speed
    350 Mb/s
    Browser
    Firefox 64
To remove the drive letter:
diskpart
select vol g
remove
exit
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!

Latest Support Threads

Back
Top Bottom