Difference between revisions of "Grub 2 recovery"
(Created page with " Back to Grub == Procedure 1 == Boot into Live CD Open Terminal (CTRL+ALT+T) Enter the following commands: sudo fdisk -l And find your Ubuntu partition sudo mount /de...") |
(No difference)
|
Revision as of 23:06, 11 October 2014
Back to Grub
Procedure 1
Boot into Live CD Open Terminal (CTRL+ALT+T) Enter the following commands: sudo fdisk -l And find your Ubuntu partition sudo mount /dev/sda2 /mnt
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo mount --bind /dev /mnt/dev
sudo chroot /mnt Now reinstall Grub2 grub-install --recheck /dev/sda apt-get install --reinstall grub2
Seguido, desde el nodo como root ejecute: update-grub2 ya que en los pasos anteriores se creaba en la lista de grub una opcion con /dev/sda4
Procedure 2
Estos son los comandos para la gestión de grub2
Archivo de configuración general
/etc/default/grub
Instalar grub2 en el MBR
grub-install /dev/sda
Generar automáticamente el archivo del menú de inicio del grub2
grub-mkconfig -o /boot/grub/grub.cfg
Actualizar el archivo del menú de configuración
update-grub
Para recuperar un guane se utiliza
grub-mkconfig -o /boot/grub/grub.cfg grub-install /dev/sda