You are not logged in.
Hello. I have just downloaded sources of liquorix kernel, built it, then installed. I did some command, i do not very remember it, something like "grub-makeconfig -o <some directory here>", and then rebooted the laptop. After showing my motherboard logo, it says "grub/locale/C.gmo was not found" and starts BIOS. The thing is that i did this kind of installation a few times before, i did literally the same steps and everything worked.
I have also default linux kernel and lts linux kernel installed.
How can I repair my grub?
I have a usb stick with arch linux, but I don't want to reinstall it. I will lose all my data
((
Last edited by Hedgegod (2022-08-27 17:26:01)
Offline
My laptop is down too. I didn't build anything from source. Mine was just a pacman update. I ran an update and saw the kernel upgrade. I thought nothing of it, because we see them all the time. At the end it gave me back the command line and I typed reboot. UFEI bios error. I can't try a previous timeshift image, because it never gets to GRUB.
Looks like reinstall time, unless someone has an idea. I do have all of my files backed up, so I won't lose anything but some time.
Standard linux kernel. I think the only module I have loading from mkinitcpio is btrfs.
Last edited by Wilson Phillips (2022-08-27 23:10:01)
Guarantee does not cover shark bite, bear attack, or children under 5.
Offline
I can't try a previous timeshift image, because it never gets to GRUB.
The latest grub update is likely the culprit here. If you can use live install media, chroot in, reinstall grub, you may be able to recover everything.
Offline
Wilson Phillips wrote:I can't try a previous timeshift image, because it never gets to GRUB.
The latest grub update is likely the culprit here. If you can use live install media, chroot in, reinstall grub, you may be able to recover everything.
Thanks, but I already did a quick re-install, since I was testing out my files that I use with archinstall. It killed two birds with one stone.
Guarantee does not cover shark bite, bear attack, or children under 5.
Offline
Wilson Phillips wrote:I can't try a previous timeshift image, because it never gets to GRUB.
The latest grub update is likely the culprit here. If you can use live install media, chroot in, reinstall grub, you may be able to recover everything.
Ok, i will try
Last edited by Hedgegod (2022-08-28 09:50:26)
Offline
UPD: i have just booted from live cd media, mounted the root partition. Now I am trying to execute "arch-chroot /mnt" and i recieve an error
mount: /mnt/proc: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
==> ERROR: failed to setup chroot /mnt
I did "arch-chroot /mnt/@" it seems it worked
What should I do next?
Last edited by Hedgegod (2022-08-28 10:26:21)
Offline
https://wiki.archlinux.org/title/Chroot … rch-chroot and section "Chrooting into an existing installation" (from live medium). Did you mount your partition(s)? Also boot partition? Maybe you will need mount with parameter -t and specify file system type, for example ext4. Do you have encrypted partition(s)?
If you successfully chroot into your system then you may try to update it (but boot partition have to be mounted!), OR do 'mkinitcpio -P' and 'grub-mkconfig -o /boot/grub/grub.cfg' .
Don't blindly copy this commands! Check if you have similar configuration and eventually adjust them.
Last edited by xerxes_ (2022-08-28 10:30:10)
Offline
https://wiki.archlinux.org/title/Chroot … rch-chroot and section "Chrooting into an existing installation" (from live medium). Did you mount your partition(s)? Also boot partition? Maybe you will need mount with parameter -t and specify file system type, for example ext4. Do you have encrypted partition(s)?
If you successfully chroot into your system then you may try to update it (but boot partition have to be mounted!), OR do 'mkinitcpio -P' and 'grub-mkconfig -o /boot/grub/grub.cfg' .
Don't blindly copy this commands! Check if you have similar configuration and eventually adjust them.
I do not blindly copying. I have just rebooted, mounted root to /mnt, specifying btrfs(my root is btrfs) with -t parameter. Then, mounted EFIBOOT partition to /mnt/@. Now I am trying to perform "arch-chroot /mnt", it says:
mount: /mnt/proc: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
==> ERROR: failed to setup chroot/mnt
I also tried to do "arch-chroot /mnt/@", recieved the same error
Offline
Where should I mount boot? I now understand that when I mount it to @, which is / in installation, it replaces it in /mnt
Offline
Understood. I need to mount boot to @/boot. When i am trying to do "grub-mkconfig -o /boot/grub/grub.cfg" the error is:
error: cannot find a device for / (is /dev mounted?)
I think yes, it is mounted, i have the output from cd /dev && ls
Last edited by Hedgegod (2022-08-28 11:45:20)
Offline
Post output of 'lsblk' and you may also post 'cat /etc/fstab' from system partition.
Offline
Post output of 'lsblk' and you may also post 'cat /etc/fstab' from system partition.
Here is the link to photo of the screen with output.
https://ibb.co/dcDfr5t
Should I type it with my phone's keyboard to here?
Offline
Ok, i rebooted, mounted root, then mounted boot partition, chroot'ed, and performed these commands:
grub-install --efi=/boot
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot
And now, everything works. Thank you all for help. [SOLVED].
Offline