#Grub doesn't detect arch linux installation

262 messages · Page 1 of 1 (latest)

brisk glade
#

I have installed arch using this guide: https://www.linuxandubuntu.com/home/dual-boot-ubuntu-and-arch-linux?expand_article=1
When I run

sudo update-grub

Grub doesn't detect my arch install.
The only weird thing that deviated from the guide during my install is that I didn't have to choose whether my new partition is primary or not (although that is expected, because I have GPT, not MBR, right?).
I have tried going back to arch installer, chrooting into my installation, and running

pacman -S linux

and then

pacman -S linux-firmware

Because the guide apparently didn't mention that you need those.
Should I run

pacman -S base-devel

also? People in comments seem to run it also.
And I know, I should've looked at the comments to see that people's installations don't work either. I guess that is a lesson for the future

​Dual booting Ubuntu and Arch Linux is not as easy as it sounds, however, I’ll make the process as easy as possible with much clarity. First, we will need to

#

my /boot looks like I have the kernel, so that isn't the problem

modest spruce
#

.aw installation guide

dire sageBOT
brisk glade
#

I don't know what happened, just ran grub setup one more time and it did something different

#

And now this shit happens

#

I have looked through the guide, is there anything interesting?

#

The file vmlinuz-linux clearly exists

stiff talon
#

have you mounted your boot partition?

brisk glade
#

During the firstry try I did not.
Then I went throught the arch wiki guide (which is miles better btw) and have seen the section about UEFI

#

so I did

mount --mkdir /dev/nvme0n1p1 /mnt/boot
#

because running

fdisk -l

informs me that that this partition's type is "EFI System"

#

Just to be clear, I installed arch again from scratch using the guide

#

now running

sudo update-grub

yields the same result as when it didn't detect anything

stiff talon
#

are you on ubuntu or arch?

brisk glade
#

I am currently running ubuntu

#

Inside ubuntu I run commands to make grub detect arch

stiff talon
#

allright, make sure when you install the kernel on arch, that same boot parititon ubuntu uses is mounted

brisk glade
#

Isn't that what I did earlier on?
Ubuntu uses

/dev/nvme0n1p1

(I assume that because after mounting it, the folder ubuntu is in there. Should I check it any other way?)

stiff talon
#

ah, i see the problem now

#

where is the mount point of the boot partition in ubuntu?

brisk glade
#

lsblk suggests it's /boot/efi

#

or am I checking the wrong thing? I don't quite know what you mean

stiff talon
#

okay, so this'll take quite a bit of work

#

i see now why they say systemd-boot is simpler

brisk glade
dusk python
#

From usb mount arch linux partition

#

Get into it

#

mount efi partition in /boot/efi

#

Then run: grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=ArchLinux

brisk glade
#

Do I need to be chrooted?

dusk python
#

Yep

#

arch-chroot /mnt

#

Did it work or you haven't tried?

brisk glade
#

Grub-install not found

dusk python
#

install grub

brisk glade
#

Pacman -S grub?

#

Or something else

dusk python
#

pacman -S grub efibootmgr

brisk glade
#

I did mount --mkdir /dev/nvme0n1p /boot/efi

#

And I have an error

#

Should I change --efi-directory in grub-install to /boot/efi?

#

Instead of /boot

dusk python
#

can you cd /boot then ls?

brisk glade
dusk python
#

where's you efi partition?

#

nvme0n1p1?

#

if yes, then

brisk glade
#

Yes

dusk python
#

mount --mkdir /dev/nvme0n1p1 /boot/efi

#

then try the command again

brisk glade
#

Outside chroot yes?

dusk python
#

Inside chroot

brisk glade
#

Oh

dusk python
#

If you wanna outside chroot just change /boot/efi to /mnt/boot/efi

#

I just recommend you to do it inside chroot

brisk glade
#

Same thing

dusk python
#

Can i see boot directory again?

brisk glade
dusk python
#

Ok

#

Btw, nvm, you can delete --efi-directory=/boot

dusk python
brisk glade
#

Seems to work

#

Should I reboot now to see if it works properly?

dusk python
#

No

#

You need now to do this: grub-mkconfig -o /boot/grub/grub.cfg

brisk glade
dusk python
#

reboot now, then disable os prober

#

Direct command: sudo vim /etc/default/grub

#

Remove # / Add GRUB_DISABLE_OS_PROBER=false entry

dusk python
brisk glade
#

It doesn't show even arch

#

Only UEFI firmware settings

dusk python
#

Did you mount efi partition while installing arch?

brisk glade
#

Not to /boot/efi

dusk python
#

Let me guess

#

There's no vmlinuz-linux file in /boot, right?

brisk glade
#

You are right

dusk python
#

oof

#

Then

#

pacman -S base base-devel linux linux-firmware linux-headers sudo nano vim git neofetch networkmanager dhcpcd pulseaudio (or pipewire, which one you like) bluez wpa_supplicant

#

It's really on you if you want to use pulseaudio or pipewire

#

Personally i recommend pipewire

#

But many select to use pulseaudio

#

Btw, on ubuntu is pulseaudio

#

after installation is complete, type: systemctl enable NetworkManager.service systemctl enable dhcpcd.service

#

all that inside chroot 😅

#

When it's all done, type sudo grub-mkconfig -o /boot/grub/grub.cfg (again(again))

#

Btw, did you add user?

brisk glade
#

It booted from grub!!!

#

Still no windows and Ubuntu

#

But wait

#

Did that again, just to be sure

#

And still no windows or ubuntu

dusk python
#

Can i see /boot ?

brisk glade
dusk python
#

oh

#

you're in usb, right?

brisk glade
#

Yes

dusk python
#

It can't detect them from usb

#

You need to do it from arch linux on your pc

#

If you don't have user, then add it then reboot

#

If you wanna know how to add user, i'll help

brisk glade
#

Sure

#

I did useradd just now but I can't use sudo that way

dusk python
#

did you give him password?

brisk glade
#

Yes

dusk python
#

Added to wheel?

brisk glade
#

Just did

#

useradd user

#

Passwd user

#

Nothing more

dusk python
#

Then add him to wheel

#

usermod -aG wheel,storage,power username

#

change username with your newly created user name

#

You done?

brisk glade
#

Yes

dusk python
#

Ok, now you need to edit sudo, wait i'll send command

#

EDITOR=nano visudo

brisk glade
#

Ok

#

I have the file opened

dusk python
#

Go way down and find smth like "Uncomment to allow wheel members to use sudo"

#

And uncomment # under it

#

Smth like #%wheel ALL=(ALL) to %wheel ALL=(ALL)

brisk glade
#

This one?

dusk python
#

Yup

#

Done?

brisk glade
#

Yes

#

Did Ctrl+x

#

Saved the buffer

dusk python
#

Ctrl+x y enter

#

Anyway, now you can reboot

brisk glade
#

Ok

dusk python
#

Oh

brisk glade
#

I have no need to mount boot manually now right?

#

Or should I do mount --mkdir /dev/nvme0n1p1 /boot/efi

dusk python
dusk python
#

mount /dev/nvme0n1p1 /boot/efi

brisk glade
#

Same thing

dusk python
#

hmm

#

is there no /boot/grub directory?

brisk glade
#

There is not

dusk python
#

lol

brisk glade
#

Seems weird

dusk python
#

Wait, i'll send you the command

#

sudo pacman -Rcnssu grub efibootmgr

#

sudo pacman -S grub efibootmgr dosfstools mtools

#

Don't reboot!!!

brisk glade
#

Ok

#

Now wifi through iwctl doesn't work so I can't run pacman

dusk python
#

Ofc it doesn't work

brisk glade
#

Ok, plugged eth for now

dusk python
#

Ok

brisk glade
#

It installed successfuly

dusk python
#

Cool

#

sudo grub-install --target=x86_64-efi --bootloader-id=ArchLinux

#

sudo grub-mkconfig -o /boot/grub/grub.cfg

#

Check for os-prober

#

Config file should be reinstalled

#

Btw sudo grub-mkconfig -o /boot/grub/grub.cfg works as sudo grub-update on ubuntu

#

or update-grub, i don't remember

brisk glade
brisk glade
#

Then mkconfig

#

Then edited config file

#

Then ran mkconfig again

dusk python
#

What it showed?

brisk glade
brisk glade
dusk python
#

From what i can tell, it still didn't found ubuntu and windows

#

Can you send mkconfig output again?

#

I can't really understand what's on photo 😄

brisk glade
#

Ran the command again

dusk python
#

can you send ls -lR /boot output?

brisk glade
#

Doesn't fit on one screen

dusk python
#

i suppose that's /boot/grub/x86_64-efi/ folder

#

can you ls -lR /boot/efi?

brisk glade
dusk python
#

I'm really confused

#

Can you send ls /boot/efi?

brisk glade
dusk python
#

It seems like windows and all are there, but i can't find what's wrong

#

Anyway, you can try to sudo grub-update ( or update-grub, i don't remember) to see if ubuntu can see arch

brisk glade
#

But I can't access Ubuntu now

#

You mean from a live usb?

#

I am assuming you want me to run sudo grub-update from Ubuntu, not arch

dusk python
#

Ooooh

#

I'm dumb

#

I forgot about os-prober

dusk python
#

Anyway, before going into ubuntu

#

sudo pacman -S os-prober

#

I really forgot about os-prober 😅

brisk glade
dusk python
dusk python
brisk glade
#

You are right

#

Old grub just ran there

#

It seems Ubuntu doesn't see it

dusk python
#

Yeah, i see

#

You can add it manually, but idk if you wanna do it

brisk glade
#

Sure

#

If that is what it takes

dusk python
#

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

#

sudo apt install grub-customizer

#

sudo add-apt-repository -r ppa:danielrichter2007/grub-customizer (for ppa category not to be mess)

#

Run grub customizer

#

Click on this

#

Then send what appears

brisk glade
dusk python
#

Name: what you want (E.:Arch Linux)

#

Type: Linux smth

#

Send again

brisk glade
dusk python
#

If you want type too, if there's many of them

#

Linux

brisk glade
dusk python
#

Partition: Arch partition

brisk glade
#

Ok

dusk python
#

Initial image:Take initramfs-linux.img from arch linux partition in /boot

#

Linux image:Take vmlinuz-linux from arch linux partition in /boot

#

You can just click on arrows on right to show path to them

#

Send image

brisk glade
#

Clicking on arrows doesn't seem to do anything

dusk python
#

oh, ok

#

then just

#

/boot/initramfs-linux.img

#

/boot/vmlinuz-linux

brisk glade
dusk python
#

Seems like it doesn't autofill params

#

Yeah, i have no clue

#

I'm giving up

#

You can find someone who can help you in #tech-general , or just find "Windows doesn't appear in grub arch linux"

#

Anyway, good luck and bye

brisk glade
#

Thanks anyways for giving me 2,5 hours of your time