Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

After Installing Windows 7, I lost Grub and was unable to boot Ubuntu. After booting Puppy Linux using live CD by mistake I also deleted the boot/grub folder on the Ubuntu partition. How can I boot into Ubuntu(10.10, Grub2) now?

share|improve this question
    
You may want to pop this over to askubuntu.com... –  Rory Alsop Apr 18 '11 at 10:09
2  
@Rory, the question is perfectly on-topic here on Super User. –  DMA57361 Apr 18 '11 at 10:22
    
@DMA57361 - okay. It was just that askubuntu has a whole section on exactly this issue: askubuntu.com/q/18566/7163 –  Rory Alsop Apr 18 '11 at 10:24
    
@Rory in which case migration is even less desirable, as it will create a duplicate on the target site (although frankly the quality of the linked post is a bit low in my opinion - link-only answers with no real info, etc). But I'm sure there's likely to be multiple duplicates on both sites (and probably Unix/Linux as well). –  DMA57361 Apr 18 '11 at 10:35
    
@DMA57361 - no worries, I have popped up an answer. :-) –  Rory Alsop Apr 18 '11 at 10:39
show 1 more comment

1 Answer

Two how-to's I found from http://askubuntu.com/q/18566/7163:

That first one seems most useful. Key steps:

  1. boot from a CD
  2. use sudo fdisk -l to find the device name of your Ubuntu drive, something like “/dev/sda5″
  3. sudo mkdir /media/sda5
  4. sudo mount /dev/sda5 /media/sda5
  5. sudo grub-install --root-directory=/media/sda5 /dev/sda
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.