Grub dual boot error

Asked by Alessio

Hi everyone I've just messed up my pc!

Once upon a time a friend of mine asked me to install Ubuntu 11.04 on his portable hard disk, I've booted my pen drive with Ubuntu 11.04 and installed Ubuntu, I've put ext4 for filesystem and the installation finished with no problem, but when I tried to boot the pc gave me an error and on a black screen says

grub rescue >

I've looked on Internet but when I tried to restore grub with the Pen Drive it gave me errors

For example when I started grub and tried: "find /boot/grub/stage1" it gave me error 15

Could you help me?!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :
#1

Sounds like the grub boot block got installed to the internal hard disk instead of the external hd. I'm guessing you'd like the PC without the external hd simply boot windows, and when the external hd is attached, you get the choice of Ubuntu (default) or windows. To fix things, you need to do two things: 1)fix the Maser Boot Record (MBR) on the internal hd, and 2)install grub with all its files to the external hd. For 1) you can either use the windows install media to run a recovery and run fixmbr from a command shell. Alternatively, if you don't have the media (vendor recovery media may not work for this) and cannot borrow it, you can install grub properly to the internal hd IF you have a place for the grub files (NOT an NTFS format partition). Such a place is typically a small FAT partition used for recovery, and there is usually enough space for the grub files. On such a FAT partition, make a directory named boot, and you can then use your usb install media to install grub to the hd, specifying the location of the boot dir you made.
For 2), you should be able to just run the live usb, and install to the external hd. Do this before 1), since it is easy, and you will be able to boot Windows if you need to from the fixed external hd. Then you can fix the internal hd at your leisure (or decide you don't need to ; ).

Can you help with this problem?

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

To post a message you must log in.