<div class="gmail_quote">On 8 August 2011 14:38, Craig Huff <span dir="ltr"><<a href="mailto:huffcslists@gmail.com">huffcslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p></p><div class="im"> <br></div>
The trick is getting that done. As I said earlier (at least I think I did), the grub install command (grub-install?) refuses, saying something about no partition found. However, I can mount and read files in the partition, so that's not exactly true.<p>
</p><br></blockquote></div><br>I have restored grub in the past after restoring filesystem backups to new HDDs, always found this works:<br><br><a href="http://www.robertbeal.com/562/rebuilding-grub2-grub-cfg-from-ubuntu-live-cd">http://www.robertbeal.com/562/rebuilding-grub2-grub-cfg-from-ubuntu-live-cd</a><br>
<br>Combined with info from elsewhere (the Ubuntu docs are quite useful: <a href="https://help.ubuntu.com/community/Grub2">https://help.ubuntu.com/community/Grub2</a>), I have used these commands from a live CD:<br><br>sudo mount /dev/sda1 /mnt<br>
sudo grub-install --root-directory=/mnt/ /dev/sda<br>mkdir /mnt<br>mount /dev/sda1 /mnt<br>mount -o bind /dev /mnt/dev<br>mount -o bind /proc /mnt/proc<br>chroot /mnt bash<br>sudo update-grub<br><br>Hope I got that write, just quickly copied from my notes while at work, something to look at anyway<br>