GRUB Repair script
This script helps you reinstall or update the GRUB bootloader on Manjaro or Arch-based systems from a live USB environment.
Features
- Reinstall GRUB
- Update only
grub.cfg - Supports Btrfs and standard filesystems
- Works only in live USB environment
- Supports GUI (Zenity) and CLI modes
- English language support and For Turkish version, see README_TR.md
Usage
- Boot your system from a live USB and open a terminal.
- Run the script:
sudo bash grub-repair.sh
- Select “English” language if prompted.
- Choose the desired action (Reinstall or Update).
- Enter your root (/) and EFI partitions (examples provided).
- Specify if the root partition is Btrfs.
- The script will mount the partitions, chroot, and perform the selected action.
- Once done, reboot your system.
Notes
- Run this script only on a live USB environment.
- Use
lsblk -fto check partition information. - EFI partition is usually a small (~100-500 MB) FAT32 partition.
- Root partition can be ext4, btrfs, or other filesystem.
Requirements
bashzenity(for GUI; will fallback to terminal if not present)manjaro-chroot(for Manjaro/Arch)grub-installandgrub-mkconfigutilities
License
Distributed under the MIT License.
Contact
For bugs or suggestions, please open an issue on GitHub.