Leia em Português - Brasil.
"Recover Grub" is a Python script that allows the recovery of Grub Linux in a more automatic way, not needing the user remember and enter complicated commands.
Python 3.+
Linux systems.
A - Insert the CD / DVD (or Bootable Pendrive) from a Linux distribution on the machine and boot.
B - With the internet active, download the "Recover Grub". To do this, execute the command below:
# curl -L git.io/recover_grub -o recover_grub.py
ou
# wget git.io/recover_grub
C - With "Recover Grub" in hand, the next step is to give permission for the file "recover_grub.py" and choose the device on the machine where the distribution Linux is installed.
# chmod +x recover_grub.py
# python recover_grub.py device
D - After choosing, the "Recover Grub" will enter the chroot section for you to run the Grub recovery command. The command is:
# python recover_grub.py start
E - The "Recover Grub" is very intuitive, after finishing, it will say to quit the chroot with the "exit" command and then restart the machine.
Run the commands:
# exit
# reboot
Preparing machine for development:
A - Create a virtual machine:
git clone https://github.com/williamcanin/recover-grub.git; cd recover-grub
python -m venv venv
B - Enable virtual machine:
. venv/bin/activate
Tests:
To run the Recover Grub tests, do:
$ make tests
The Python module used for testing is the unittest.
MIT License MIT
Since 2016 © Recover Grub. William C. Canin. All rights reserved. ®*