Skip to content

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!

1 points4 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 66% up
Kind
Text
ID
jvasid

Author

11
posts
23
comments
0
media
View profile

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=/boot

4 points

To add to this, you may have to update your /etc/fstab file 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 the grub-install command (not a GRUB user here, so I'm not completely sure).

1 points

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-mkconfig afterwards, 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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.