grub.rst
changeset 1713 f948320f5bf3
parent 1334 9bf0d5a1f0cf
child 1905 fba288d59662
--- 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.
 =====================================