Pessoal,<br><br>esta semana tive que reinstalar o windows no meu computador e obviamente acabei <br>perdendo o MBR (Master Boot Record). Sendo assim, não conseguia mais bootar meu linux.<br>Em muitas outras situações eu acabei reinstalando todo o linux. Agora descobri uma forma
<br>muito fácil de restaurar o grub sem a necessidade de um disquete de recuperação.<br><br>Talvez esta dica não servi para todos, de qualquer forma, acho que pode ajudar alguns da lista.<br>A internet está cheia de &quot;formas e maneiras&quot; de se restaurar o grub, o problema é que a maioria
<br>não funciona ou não é de fácil entendimento.<br><br>No site <a href="http://johnny.chadda.se/2007/02/17/restore-grub-in-ubuntu-after-installing-windows/">http://johnny.chadda.se/2007/02/17/restore-grub-in-ubuntu-after-installing-windows/
</a><br clear="all">tem uma descrição bem simples e fácil de se fazer esta recuperação. Segue a dica:<br><br>8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt;&nbsp; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 8-&lt; 
<div class="entry-content">
                                                                        
                <p>When you install some
operating systems such as Windows or Mac OS X, they will overwrite your
master boot record. If you have Linux installed you will be unable to
access it, until you restore Grub on the MBR.</p>
<p>The easiest way is to find your Ubuntu or other Linux
rescue/live/installation CD and boot it. Pop open a terminal and first
find which partition is your root using fdisk.</p>
<p class="code">$ sudo fdisk -l<br>
   Device Boot      Start         End      Blocks   Id  System<br>
/dev/hda1   *           1        2550    20482843+  af  Unknown<br>
/dev/hda2            2551        3825    10241437+  83  Linux<br>
/dev/hda3            3826        3890      522112+  82  Linux swap / Solaris<br>
/dev/hda4            3891       12161    66436807+   7  HPFS/NTFS</p>
<p>Here we see that /dev/hda2 is our Linux partition, so we will want to mount it in order to read the Grub configuration.</p>
<p class="code">sudo mount /dev/hda2 /mnt</p>
<p>If your don't get any errors now your root partition should be
mounted under /mnt. You can check for the grub configuration by listing
the contents of the directory /mnt/boot/grub.</p>
<p>Now to restore the configuration just write the following.</p>
<p class="code">$ sudo grub-install --root-directory=/mnt /dev/hda</p>
<p>This will install Grub to MBR and use the configuration files in
/mnt/boot/grub. Now just reboot your computer and you will hopefully be
greeted with the ever friendly Grub menu once again.</p>

                                                                        
                        </div><br>-- <br>Robinson Pizzio<br>Ph.D. Candidate<br>LPDS - Digital Signal Processing Research Lab<br>Department of Electrical Engineering<br>Federal University of Santa Catarina - Florianópolis - BRAZIL<br>E-mail: 
<a href="mailto:rpizzio@ieee.org">rpizzio@ieee.org</a><br>URL: <a href="http://eel.ufsc.br/~lpds/students/robinson.html">http://eel.ufsc.br/~lpds/students/robinson.html</a>