grub.rst
changeset 1713 f948320f5bf3
parent 1334 9bf0d5a1f0cf
child 1905 fba288d59662
equal deleted inserted replaced
1712:4ef5429a99ad 1713:f948320f5bf3
     3 
     3 
     4 =======
     4 =======
     5  GRUB.
     5  GRUB.
     6 =======
     6 =======
     7 .. contents::
     7 .. contents::
       
     8 
       
     9 Resore GRUB 2.
       
    10 ==============
       
    11 
       
    12 If you boot to same bit-width kernel (32/64) that have installed you can chroot
       
    13 to main system and recover by your Linux discto commans::
       
    14 
       
    15   mount /dev/sdX /mnt
       
    16   sudo mount --bind /dev /mnt/dev &&
       
    17   sudo mount --bind /dev/pts /mnt/dev/pts &&
       
    18   sudo mount --bind /proc /mnt/proc &&
       
    19   sudo mount --bind /sys /mnt/sys
       
    20   sudo chroot /mnt
       
    21   grub-install /dev/sdX
       
    22   update-grub
       
    23 
       
    24 Check that partition with ``/boot`` directory::
       
    25 
       
    26   $ mount /dev/sdX /mnt
       
    27   $ ls -l /mnt/boot/grub
     8 
    28 
     9 Setting text mode resolution on boot.
    29 Setting text mode resolution on boot.
    10 =====================================
    30 =====================================
    11 
    31 
    12 vga=mode
    32 vga=mode