Skip to content

Grub Not seeing boot partition.

I have installed Arch to a USB for use on a work laptop using the Wiki. I have already done this several times before successfully.

I made a fundamental mistake this time. I forgot to mount the boot partition within my root partition before installing and configuring grub.

Since I have removed the boot directory and recreate, mounted the boot partition, regenerated fstab, reinstalled grub, ran grub-install to the MBR again, and generated the main configuration file again.

I have also marked the boot partition as bootable.

Before and after attempting this fix, my USB would boot to a grub CLI.

grub>

I am missing something here that I must have done wrong. Here is a little more of the setup when i have been installing.

/dev/sdb1 mounts to /mnt/boot /dev/sdb2 is swap /dev/sdb3 mounts to /mnt

sdb1 and sdb3 are both ext4 sdb1 is marked as bootable.

Not looking for a full blown answer, but perhaps a nudge in the right direction would be great.

0 points12 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
7030do

Author

39
posts
244
comments
0
media
View profile

12 comments

Did you reinstall the kernel packages, as well as generate the grub config? The kernel, (ramfs?), and Intel ucode are stored in /boot. You shouldn't have deleted /boot without mounting your boot partition somewhere else and copying everything over.

2 points

OK so since getting home I have cleared out both sdb1 and sdb3 with rm -rf and started from pacstrap in the wiki. I done all packages I wanted here and checked my boot partition and there is now more than before

The best part is it makes more sense to me that this was all here now. I had assumed (I know slap my wrist) that /boot was purely for grub as I had seen not other reference to this between mounting and installing grub.

All being well I have set all up ok now and when I plug it in tomorrow for its first boot I shall be presented with the lxdm login screen.

Thanks for the help.

2 points

Right lol, I did the same thing once.. you were probably thinking of what a /boot/EFI partition would look like, which would just be EFI stubs and maybe a grub config.

1 points

Well I am a few steps forward. When I boot I get an initial error:

Platform wdat_wdt: failed to claim resource 4

Then it is saying it cannot find the root directory by its UUID. I can boot using fallback initramfs and see this partition is there.

I am very confused now by this as how can it be saying that the UUID is not there yet it is?

Edit: still get the first error but after updating via pacman -Syu now booting.

1 points

Did I reinstall the kernel packages, no. Would I be right to say these are installed as part of base?

Every days a school day I guess.

1 points

fs on /mnt/boot ?

Uefi or not?

1 points

When I booted the live image on the destination laptop, I used the method from the wiki to determine it was not uefi but bios instead. I am a little surprised tho as it is a fairly new laptop. About a year old.

1 points

Check if disabled in bios. Sounds crazy, I don't think you can buy computers without uefi anymore.

1 points

If you want EFI, You have to boot the USB stick in EFI mode from your boot device selector, F12 type menu.

For EFI you want a gpt partition table, a /boot/EFI 500mb partition, and a / partition + swap partition. Follow the wikis instruction for grub install using the x86_64-efi type argument. If you NEED an archiso iso with a gui and gparted, pm.

1 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.