How to Fix Grub Rescue
[et_pb_section bb_built=”1″][et_pb_row][et_pb_column type=”4_4″][et_pb_code _builder_version=”3.10.1″]<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><!– [et_pb_line_break_holder] –><ins class=”adsbygoogle”<!– [et_pb_line_break_holder] –> style=”display:block; text-align:center;”<!– [et_pb_line_break_holder] –> data-ad-layout=”in-article”<!– [et_pb_line_break_holder] –> data-ad-format=”fluid”<!– [et_pb_line_break_holder] –> data-ad-client=”ca-pub-1750980986506231″<!– [et_pb_line_break_holder] –> data-ad-slot=”3802595016″></ins><!– [et_pb_line_break_holder] –><script><!– [et_pb_line_break_holder] –> (adsbygoogle = window.adsbygoogle || []).push({});<!– [et_pb_line_break_holder] –></script>[/et_pb_code][et_pb_text _builder_version=”3.0.100″ background_layout=”light”]
How to fix Grub Rescue –
From within rescue mode.
- Command: ls
It will list all your drives and partitions, just like:
(hd0) (hd0,msdos2) (hd0,msdos1)
- If you don’t know your Ubuntu boot partition, check them one by one:
ls (hd0,msdos2)/
ls (hd0,msdos1)/
[/et_pb_text][et_pb_code _builder_version=”3.10.1″]<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><!– [et_pb_line_break_holder] –><ins class=”adsbygoogle”<!– [et_pb_line_break_holder] –> style=”display:block; text-align:center;”<!– [et_pb_line_break_holder] –> data-ad-layout=”in-article”<!– [et_pb_line_break_holder] –> data-ad-format=”fluid”<!– [et_pb_line_break_holder] –> data-ad-client=”ca-pub-1750980986506231″<!– [et_pb_line_break_holder] –> data-ad-slot=”4841320570″></ins><!– [et_pb_line_break_holder] –><script><!– [et_pb_line_break_holder] –> (adsbygoogle = window.adsbygoogle || []).push({});<!– [et_pb_line_break_holder] –></script>[/et_pb_code][et_pb_text _builder_version=”3.0.100″ background_layout=”light”]
When you hit the right one, you’ll get a line mentioning ‘ lost + found ‘, & more importantly ‘boot’, and so on.
- Assuming (hd0,msdos2) is the Ubuntu partition:
set prefix=(hd0,2)/boot/grub
set root=(hd0,2)
insmod normal
normal
- Now you’ll be able to boot into Ubuntu. Once you do, execute the following commands on a terminal (ctrl+alt+t):
sudo update-grub
sudo grub-install /dev/sda
[/et_pb_text][et_pb_code _builder_version=”3.10.1″]<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><!– [et_pb_line_break_holder] –><ins class=”adsbygoogle”<!– [et_pb_line_break_holder] –> style=”display:block; text-align:center;”<!– [et_pb_line_break_holder] –> data-ad-layout=”in-article”<!– [et_pb_line_break_holder] –> data-ad-format=”fluid”<!– [et_pb_line_break_holder] –> data-ad-client=”ca-pub-1750980986506231″<!– [et_pb_line_break_holder] –> data-ad-slot=”5472675697″></ins><!– [et_pb_line_break_holder] –><script><!– [et_pb_line_break_holder] –> (adsbygoogle = window.adsbygoogle || []).push({});<!– [et_pb_line_break_holder] –></script>[/et_pb_code][et_pb_text _builder_version=”3.0.100″ background_layout=”light”]
or you can simply boot from your windows cd/USB and after booting press ctrl/alt + F10..
enter
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
[/et_pb_text][et_pb_post_nav _builder_version=”3.0.100″ in_same_term=”off” show_prev=”on” show_next=”on” /][/et_pb_column][/et_pb_row][/et_pb_section]