# HG changeset patch # User Oleksandr Gavenko # Date 1429457949 -10800 # Node ID f948320f5bf3cfcf13e24be8fb427c9d31f9ebcc # Parent 4ef5429a99adfd75da904d53de5022a5c8c9afae Resore GRUB 2. diff -r 4ef5429a99ad -r f948320f5bf3 grub.rst --- a/grub.rst Sun Apr 19 12:09:41 2015 +0300 +++ b/grub.rst Sun Apr 19 18:39:09 2015 +0300 @@ -6,6 +6,26 @@ ======= .. contents:: +Resore GRUB 2. +============== + +If you boot to same bit-width kernel (32/64) that have installed you can chroot +to main system and recover by your Linux discto commans:: + + mount /dev/sdX /mnt + sudo mount --bind /dev /mnt/dev && + sudo mount --bind /dev/pts /mnt/dev/pts && + sudo mount --bind /proc /mnt/proc && + sudo mount --bind /sys /mnt/sys + sudo chroot /mnt + grub-install /dev/sdX + update-grub + +Check that partition with ``/boot`` directory:: + + $ mount /dev/sdX /mnt + $ ls -l /mnt/boot/grub + Setting text mode resolution on boot. =====================================