How Do I Reinstall Grub Arch Linux?

How Do I Reinstall Grub Arch Linux?
Contents

How do I restore grub Arch?

This is what I usually do:

  1. Boot from a Arch ISO (CD/USB).
  2. mount the partition.
  3. arch-chroot into the partition.
  4. configure network (if necessary)
  5. make sure the packages grub and os-prober are installed: pacman -Sy grub os-prober (will need network)
  6. go to the /boot/grub directory.
  7. grub-mkconfig > grub.

How do I reinstall grub bootloader?

Reinstall the GRUB boot loader by following these steps:

  1. Place your SLES/SLED 10 CD 1 or DVD in the drive and boot up to the CD or DVD. …
  2. Enter the command “fdisk -l”. …
  3. Enter the command “mount /dev/sda2 /mnt”. …
  4. Enter the command “grub-install –root-directory=/mnt /dev/sda”.
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.