Advertisement
Guest User

Untitled

a guest
Jan 30th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. Boot into the Ubuntu Live CD and run a few commands.
  2.  
  3. First, identify which is the Ubuntu partition:
  4.  
  5. sudo fdisk -l
  6.  
  7. Next, mount it (replacing sda2 with the appropriate partition number):
  8.  
  9. sudo mount /dev/sda2 /mnt
  10.  
  11. And finally, reinstall Grub (replacing sda with the appropriate hard drive):
  12.  
  13. sudo grub-install --root-directory=/mnt /dev/sda
  14.  
  15. Now, run this:
  16.  
  17. sudo update-grub
  18.  
  19. This should detect your Ubuntu installation and add it to the Grub menu.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement