can not login to ubuntu after windows installation

Asked by shiakos

hi , i had installed on my laptop windows vista and ubuntu. when i boot up my system it asked me whitch o/s i wanted to use .. all was fine but after some time i formated the partition that had vista on ,and installed windows xp, and now i doesnt ask me whitch o/s i want to use. Is there a way to fix? thank you and sorry about my English!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1
Revision history for this message
Tom (tom6) said :
#2

Hi :)

If you have an Ubuntu Cd then bootup from the Cd and choose the option "Try Ubuntu without change to my computer", it's usually the top option. Here's a guide if you have trouble with this
https://help.ubuntu.com/community/BootFromCD

On the top taskbar click on
Applications - Accessories - Terminal

and into the terminal window enter

sudo grub

find /boot/grub/stage1

this should give an answer like (hd0,2). This tells where your grub-boot-loader needs to be installed so assuming my numbers are right, but swap your numbers for mine if they are different, now enter

root (hd0.2)

setup (hd0)

quit

reboot

and this should now reboot your machine and give you an option for booting into Windows and a few options for booting into Ubuntu above that :)
Good luck and regards from
Tom :)

Revision history for this message
S.Vikash Koushik (vikashkoushik) said :
#3

Hi Shiakos

         You can either follow Tom's answer or just go to Synaptic Package Manager and install a package called as grub which will surely resolve your problem.

Good Luck.

Revision history for this message
Tom (tom6) said :
#4

Interesting, if that Synaptic route works then please let us know as it would make this answer a lot easier for a lot of people! I think it would be great to try Vikash's method and then, if it doesn't work, try mine :)
Thanks and regards from
Tom :)

Revision history for this message
shiakos (shiakosc) said :
#5

hi tom i tried what you told me to do , but after entering setup (hd0) i get this msg...

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,5)/boot/grub/stage2
/boot/grub/menu.lst"... failed

Error 12: Invalid device requested

Revision history for this message
Tom (tom6) said :
#6

Hmmm, that's odd. What were the results of the commands

sudo grub

find /boot/grub/stage1

?
Sorry for the delay in my answer. Just had a few problems here too
Good luck and regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask shiakos for more information if necessary.

To post a message you must log in.