PDA

View Full Version : [ubuntu] Get Ubuntu back after Win7 instalation



aneslin85
November 23rd, 2009, 05:02 PM
guys, in my laptop I used Vista, and I installed Ubuntu with wubi.
and yesterday I did a win7 clean instalation.
so its overwrite my old bootloader / grub

so, how can I get my ubuntu back ? without instaling it again.
thank you.

ptn107
November 23rd, 2009, 05:20 PM
If 'sda' is the hard-disk both operating systems are on (verify with 'sudo fdisk -l') you can restore GRUB to the mbr using a live CD terminal:

sudo grub-install /dev/sda

presence1960
November 23rd, 2009, 05:25 PM
guys, in my laptop I used Vista, and I installed Ubuntu with wubi.
and yesterday I did a win7 clean instalation.
so its overwrite my old bootloader / grub

so, how can I get my ubuntu back ? without instaling it again.
thank you.

You did a clean install so your Ubuntu wubi install is formatted with the rest of your Vista install. Wubi is a file inside the windows filesystem, when windows 7 formatted Vista's partition wubi went with it!

presence1960
November 23rd, 2009, 05:26 PM
If 'sda' is the hard-disk both operating systems are on (verify with 'sudo fdisk -l') you can restore GRUB to the mbr using a live CD terminal:

sudo grub-install /dev/sda

Ubuntu was installed via wubi, so when the OP did a clean install of windows 7 the Ubuntu wubi install was formatted with the rest of Vista.

aneslin85
November 23rd, 2009, 09:44 PM
thanks for the replies guys.

my ubuntu partition is in safe.

I just lost my OS selection menu.

i cant fix it via a live CD, because I installed it via wubi.

so how can i fix it?
thanks

phillw
November 23rd, 2009, 09:50 PM
As mentioned - if u used wubi - that was installed WITHIN the windows area, it's gone.

post the output of
sudo fdisk -l

Phill.