Resore GRUB 2.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 19 Apr 2015 18:39:09 +0300
changeset 1713 f948320f5bf3
parent 1712 4ef5429a99ad
child 1714 eed8cfffa44e
Resore GRUB 2.
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.
 =====================================