Skip to content

Instantly share code, notes, and snippets.

@fsblemos
Last active October 31, 2020 21:59
Show Gist options
  • Save fsblemos/1a344d9330add74e309a4f232d61d751 to your computer and use it in GitHub Desktop.
Save fsblemos/1a344d9330add74e309a4f232d61d751 to your computer and use it in GitHub Desktop.
Recuperar grub no ArchLinux

https://wiki.manjaro.org/index.php?title=GRUB/Restore_the_GRUB_Bootloader

  1. Faça boot em um linux por um pendrive

  2. Descubra quais partições estão o linux e o EFI:

lsblk -f
  1. Monte a partição linux (sdaX):
mount /dev/sdaX /mnt
  1. Monte a partição EFI (sdaY):
sudo mkdir /boot/efi
sudo mount /dev/sdaY /mnt/boot/efi
  1. Entre na partição linux montada via chroot (de preferência o arch-chroot):
sudo pacman -Sy arch-install-scripts 
arch-chroot /mnt
  1. Reinstale o grub:
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
  1. Atualize o arquivo de configuração do grub:
sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment