项目作者: williamcanin

项目描述 :
:bug: :snake: Recover Grub is a Python script to recover the grub on Linux.
高级语言: Python
项目地址: git://github.com/williamcanin/recover-grub.git
创建时间: 2015-12-08T04:26:48Z
项目社区:https://github.com/williamcanin/recover-grub

开源协议:MIT License

下载


" class="reference-link">Recover Grub An image

Python application GitHub release (latest SemVer) Build Status

Leia em Português - Brasil.

[ ABOUT ]

“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.

[ REQUIREMENTS ]

Python 3.+

[ COMPATIBILITY ]

Linux systems.

[ USAGE ]

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:

  1. # curl -L git.io/recover_grub -o recover_grub.py

ou

  1. # 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.

  1. # chmod +x recover_grub.py
  1. # 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:

  1. # 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:

  1. # exit
  1. # reboot

[ DEVELOPER ]

Preparing machine for development:

A - Create a virtual machine:

  1. git clone https://github.com/williamcanin/recover-grub.git; cd recover-grub
  2. python -m venv venv

B - Enable virtual machine:

  1. . venv/bin/activate

Tests:

To run the Recover Grub tests, do:

  1. $ make tests

The Python module used for testing is the unittest.

[ LICENSE ]

MIT License MIT

Since 2016 © Recover Grub. William C. Canin. All rights reserved. ®*