PDA

View Full Version : [ubuntu] Repair Ubuntu 10.10 after Windows & install



lmicu
October 10th, 2010, 09:33 PM
I had installed a Ubuntu 10.10 on /dev/sda1
I made another partition /dev/sda2 and I formated to ntfs
Extended partition is on /dev/sda3
The swap is on /dev/sda5

I installed Windows on /dev/sda2 and now I can't repair my grub (that would be grub2)

I booted with Live Cd (10.10) and I have no idea what to do.

lmicu
October 10th, 2010, 10:09 PM
Bump

oldfred
October 10th, 2010, 11:02 PM
If it is a new install of 10.10 you have grub2. Reinstall grub2 to the MBR.

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

While in the LiveCD, open terminal and run:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
If that returns any errors run:
sudo grub-install --recheck --root-directory=/mnt /dev/sda

sikander3786
October 10th, 2010, 11:02 PM
Please see here.

http://ubuntuforums.org/showthread.php?t=1014708

lmicu
October 11th, 2010, 04:18 AM
This worked!


Thank you, OLDFRED!

lmicu
October 11th, 2010, 04:19 AM
TKS, for the post!

Long live the Linux community!