separate /efi (for bootx64.efi and what not) and /boot (for GRUB, Kernel, and initramfs)?
Hello,
Soon I plan to dual boot Windows onto my PC with Arch Linux. I have this weird problem with GRUB currently, where no matter how many times I regenerate my GRUB config, it will always boot me into the GRUB shell (Not the rescue shell, it just boots into the GRUB shell immediately). I've put up with this for a while now, because I don't find it very hard to specify my kernel and initramfs image and boot, but I would like to find a solution before I install windows (I know that Windows will install its own boot loader, DONT ASK ME HOW I KNOW THIS). I know my current question is off-topic, so now I will present my real question. The Windows installer will only make the Windows boot partition 100M, and I'm already having space issues on my current boot partition (which is 100M) trying to cram in my Kernel, my initramfs, grub, and my .efi files. Is there a way I can use the first partition (100M) for my EFI files, and maybe grub, and then store my kernel and initramfs on my root drive (in /boot, perhaps?). Or even better, somehow resize my /boot partition after installing Windows? I also have no reason to use GRUB, and I only use it because I've used it before, so if there are any boot loaders that do this better, please tell me. All help will be greatly appreciated!
About this post
- Posted
- Archived
- Score
- 1 · 66% up
- Kind
- Text
- ID
- jvasid
4 comments
I think you can use the partition. Simply mount it under /boot/efi and leave the rest of the files on your root partition (assuming it's ext4). Then, install it using
grub-install --target=x86_64-efi --efi-directory=/boot/efi --boot-directory=/bootTo add to this, you may have to update your
/etc/fstabfile and might have to regenerate kernel and initramfs after unmounting the current EFI partition from/boot. After you have verified that the kernel and initramfs are present at/boot, you can remove the corresponding files from your EFI partition. I think this should be done before running thegrub-installcommand (not a GRUB user here, so I'm not completely sure).In fact, it is not really important whether he runs it before or after the kernel and initramfs have been removed from the efi partition. What matters is that he should run
grub-mkconfigafterwards, which then creates the relevant config file for grub. Because grub on it's own doesn't care what resides where. The only thing it cares about is where it is installed and where it should search for the config file by default.