Vít Smolík
2024-04-06 07:50:16 UTC
Hello everyone,
Thanks for your help! I managed to get the EFI partition to my liking by
installing Windows first, but before starting the install, I created my EFI
partition manually by running these commands:
1. diskpart
2. list disk
3. sel disk 0
4. create partition efi size=1000
5. format quick fs=fat32 label=System
Then i continued as normal and Windows used my 1GB EFI partition.
Thanks for your help! I managed to get the EFI partition to my liking by
installing Windows first, but before starting the install, I created my EFI
partition manually by running these commands:
1. diskpart
2. list disk
3. sel disk 0
4. create partition efi size=1000
5. format quick fs=fat32 label=System
Then i continued as normal and Windows used my 1GB EFI partition.
Hi Vit
I presume you plan to have a single boot partition that will contain your
bootloader, kernel and initramfs. There are actually two kinds of boot
1. The EFI system partition (ESP) contains Linux and Windows's
bootloaders. It's formatted as FAT.
2. The extended boot (XBOOTLDR) partition contains kernels, initramfs's
and microcode. It's formatted as anything the bootloader supports (GRUB
supports FAT, ext4 and more).
If you have a single boot partition, you're actually just combining the
1. Shrink your Linux partition to create space for the extended boot
partition. You can GParted from another system or bootable USB.
2. Create and format the extended boot partition.
3. Modify /etc/fstab so the ESP gets mounted at /efi and the XBOOTLDR gets
mounted at /boot.
4. Mount these two partitions.
5. If this is an existing install, move the kernel, initramfs and
microcode from /efi to /boot. Otherwise, install the bootloader and the
kernel.
6. Re-configure your bootloader (e.g. `grub-mkconfig -o
/efi/grub/grub.cfg`).
Now the large kernel and initramfs files don't take up space on the ESP
that's being shared with Windows.
Alternatively, just resize the ESP. However, that breaks Windows's
bootloader since the starting point of the C:\ partition moved, so you need
to fix it from a Windows setup USB using bootrec. I can't help you with
that.
Waldo
I presume you plan to have a single boot partition that will contain your
bootloader, kernel and initramfs. There are actually two kinds of boot
1. The EFI system partition (ESP) contains Linux and Windows's
bootloaders. It's formatted as FAT.
2. The extended boot (XBOOTLDR) partition contains kernels, initramfs's
and microcode. It's formatted as anything the bootloader supports (GRUB
supports FAT, ext4 and more).
If you have a single boot partition, you're actually just combining the
1. Shrink your Linux partition to create space for the extended boot
partition. You can GParted from another system or bootable USB.
2. Create and format the extended boot partition.
3. Modify /etc/fstab so the ESP gets mounted at /efi and the XBOOTLDR gets
mounted at /boot.
4. Mount these two partitions.
5. If this is an existing install, move the kernel, initramfs and
microcode from /efi to /boot. Otherwise, install the bootloader and the
kernel.
6. Re-configure your bootloader (e.g. `grub-mkconfig -o
/efi/grub/grub.cfg`).
Now the large kernel and initramfs files don't take up space on the ESP
that's being shared with Windows.
Alternatively, just resize the ESP. However, that breaks Windows's
bootloader since the starting point of the C:\ partition moved, so you need
to fix it from a Windows setup USB using bootrec. I can't help you with
that.
Waldo
Do you store your initramfs on the 100mb partition? Or do you stire it
somewhere else?
May the Force be with you,
VÃt SmolÃk.
somewhere else?
May the Force be with you,
VÃt SmolÃk.
Hi Vit,
I have a dual boot with a 100Mb EFI partition. It works fine, except
there isnât enough place for both old and new kernels for upgrading. So I
moved the old kernel from /boot into a safe directory before upgrading.
Maybe not the best strategy but I didnât dare resize it.
Alexis
On Wednesday, April 3rd, 2024 at 17:10, VÃt SmolÃk <
Hello fellow Gentooers,
I want to dual-boot Gentoo and M$ Windows on my computer, but windows
only created a 100MB EFI partition. Is it necessary to resize it so my boot
files will fit? If so - how to resize it so I don't mess up my Windows EFI
files?
--
May the Force be with you,
VÃt SmolÃk.
I have a dual boot with a 100Mb EFI partition. It works fine, except
there isnât enough place for both old and new kernels for upgrading. So I
moved the old kernel from /boot into a safe directory before upgrading.
Maybe not the best strategy but I didnât dare resize it.
Alexis
On Wednesday, April 3rd, 2024 at 17:10, VÃt SmolÃk <
Hello fellow Gentooers,
I want to dual-boot Gentoo and M$ Windows on my computer, but windows
only created a 100MB EFI partition. Is it necessary to resize it so my boot
files will fit? If so - how to resize it so I don't mess up my Windows EFI
files?
--
May the Force be with you,
VÃt SmolÃk.
--
May the Force be with you,
VÃt SmolÃk.
May the Force be with you,
VÃt SmolÃk.