You are not logged in.

#1 2022-10-08 03:59:20

godpraisearch
Member
Registered: 2022-04-21
Posts: 52

GRUB doesn't boot after directory is empty

So I messed up my boot folder, as there is nothing in it after running the command “sudo grub-mkconfig-o /boot/grub/grub.cfg”. Every time I reboot it sends me into the grub command line, from there I boot into an ubuntu live usb. I unencrypt my root partition nvme0n1p2 (that mounts it to /media/ubuntu/2c829835...). I chroot into it (chroot /media/ubuntu/2c829835...), created the grub directory in boot, and attempted to input the command "grub-mkconfig -o /boot/grub/grub.cfg", but get the error "/usr/bin/grub-probe: error: cannot find a device for / (is /dev mounted?)"

After that I'm guessing its just "cd /boot/grub/" and "grub-install /media/ubuntu/2c829835..."

Following this tutorial: https://www.youtube.com/watch?v=r7meKJsjqfY

Offline

#2 2022-10-08 05:16:45

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 339
Website

Re: GRUB doesn't boot after directory is empty

You would need to follow this guide https://wiki.archlinux.org/title/GRUB


Rlu: 222126

Offline

Board footer

Powered by FluxBB