stuck on grub command prompt, dual boot windows/ubuntu

Asked by Ben Seiker

Hello,

I have dual booted Ubuntu and Windows 7 on my laptop. After an update on 10.04LTS, ubuntu boot screen faded out to a white screen, and after a reboot wouldn't even give the option to boot ubuntu, just booted straight to windows.

after some research, I tried following instructions on ubuntuforums to copy grub2 files from a live cd. However, now my laptop won't even boot windows, it just goes straight to the grub command prompt.

Need help ASAP!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu totem Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cyprian Guerra (cyprian-guerra) said :
#1

1. Well, first of all you have to set the root of your file system (partition on which vmlinuz file is located). Put in grub prompt:
        grub> root (hd0,
(press tab twice to see the list of available partitions and choose one)
        grub> root (hd0,2)
(equals to /dev/hda3)

2. Then you need to set which kernel to use:
        grub> kernel /boot/
(press tab twice and choose a kernel, there should be vmlinuz - if there isn't try different partition in step 1)
        grub> kernel /boot/vmlinuz root=/dev/hda3

3. Set initrd in the same manner:
        grub> initrd /boot/initrd

4. Then boot it:
        grub> boot

That's it. After this just rescue your system so it would boot properly the next time you restart or you're back in square one.

Can you help with this problem?

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

To post a message you must log in.