Jump to content

GRUB does not detect Windows


Guest Gere1
 Share

Recommended Posts

I installed Mandriva One 2008.0 on a machine which already had XP installed in it (15GB out of 80 was allocated for Windows). While setting up boot loader I said yes to all default values and after booting I found that GRUB could not boot in to Windows. It boots in to Mandriva nicely but when I select Windows, it gives me this error

 

root (hd0,0)

File system ext2fs, partition type 0X83

Chainloader +1

Error13: Invalid or unsupported executable format

 

My bootloader window has the following options:

 

Bootloader to use: Grub with graphical menu

Boot device: /dev/sda (ATA toshiba MK8026GA)

Other options in boot device: /dev/sdb (DEF10D8A157)

/dev/sda1

/dev/sda5

/dev/sda6

/dev/sda7

 

ACPI is enabled (I do not know what that means though)

 

In the manage disk partitions window in MLCC this is what I have

diskpartitionsno5.th.jpg

 

Can anybody tell me how to edit GRUB so that it boots Windows properly?

 

Thanks

Edited by Gere1
Link to comment
Share on other sites

Normally I just have:

 

title Windows XP x64
	rootnoverify (hd0,1)
	chainloader +1

 

but sometimes it also needs:

 

makeactive

 

so it would look like this:

 

title Windows XP x64
	rootnoverify (hd0,1)
	makeactive
	chainloader +1

 

obviously, change hd0,1 to whatever your partition is and where it exists.

Link to comment
Share on other sites

Thanks...but well...I am a noob and I have just started playing around with Mandriva...so I know I have to edit the GRUB menu.lst..only thing is I do not know how to go about it. If you could please explain. Also how do I learn which partition Windows is in?

 

Thanks

Edited by Gere1
Link to comment
Share on other sites

What desktop environment are you using? KDE or Gnome? If kde, do this:

 

Press ALT-F2
type kdesu kwrite /boot/grub/menu.lst

 

edit the file, then save and exit. If Gnome:

 

Press ALT-F2
gksu gedit /boot/grub/menu.lst

 

edit and save. If menu.lst doesn't work, then replace menu.lst with grub.conf. I don't know if they changed the naming convention, but I would expect menu.lst to exist either as a file or symlink for compatibility.

Link to comment
Share on other sites

From the attached pic it seems Windows is on the first partition of the second harddisk (/dev/sdb). So, you must add to /boot/grub/menu.lst the following:

 

title WinXP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

 

For editing use "kdesu kwrite /boot/grub/menu.lst" as suggested above.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...