Ubuntu 9.10 beta + WinXP + GRUB2 = Error

Chat about Linux in general

Ubuntu 9.10 beta + WinXP + GRUB2 = Error

Postby eco2geek on Thu Oct 15, 2009 9:31 pm

After installing the Ubuntu 9.10 beta and trying to start Windows XP from GRUB2, an interesting error message (from Windows) popped up:

Windows could not start because the following file is missing or corrupt:
<Windows root>\system32\ntoskrnl.exe
Please re-install a copy of the above file.


I can assure you that c:\windows\system32\ntoskrnl.exe was definitely neither missing nor corrupt. Fortunately, I had a boot floppy with "legacy GRUB" on it to boot from and had no problem booting into Windows that way.

I tried following recommended procedures, such as using the "os-prober" utility, to try to get GRUB2 to boot into Windows, but all I got was the same error message as above. When I tried booting into Windows from the GRUB2 command line, I got the same error message.

Although I could have installed legacy GRUB on Karmic, I installed Mint 7 instead. I hope Mint keeps legacy GRUB around for a while.
User avatar
eco2geek
Level 1
Level 1
 
Posts: 24
Joined: Mon Sep 28, 2009 3:22 pm
Location: Portland, Oregon

Linux Mint is funded by ads and donations.
 

Re: Ubuntu 9.10 beta + WinXP + GRUB2 = Error

Postby w8wca on Fri Oct 16, 2009 11:06 am

You might check your grub's menu.lst file and see if the windows area has:

rootnoverify (hd0,0)
chainloader +1


That is if your windows xp is on the firsh partition of the first HD
cheers charlie - w8wca
Eeepc 900 XP, Debian & Mint 7
Eeepc 1000H Windows 7 Ultimate, Debian, OpenSolaris, (Ext), common Swap, Eeebuntu
Granular, Mint, CentOS, Fedora 10, OpenSUSE, Back|Track 4b, & Mandriva
User avatar
w8wca
Level 1
Level 1
 
Posts: 15
Joined: Sun Oct 11, 2009 7:30 pm
Location: Columbus, OH U.S.A.

Re: Ubuntu 9.10 beta + WinXP + GRUB2 = Error

Postby AK Dave on Fri Oct 16, 2009 3:12 pm

I'm a creature of habit. By habit, I put linux swap on the first partition of EACH hard drive that I install into a linux system. A bootable partition comes second. Looks like I'm covered, since this GRUB2/XP error seems to be prevalent when XP is on the first partition. Not a problem for me! :D
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1043
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Ubuntu 9.10 beta + WinXP + GRUB2 = Error

Postby eco2geek on Fri Oct 16, 2009 5:09 pm

w8wca wrote:You might check your grub's menu.lst file and see if the windows area has:

rootnoverify (hd0,0)
chainloader +1


That is if your windows xp is on the firsh partition of the first HD

Since it's GRUB2 rather than legacy GRUB, there's no menu.lst any more. However, the GRUB2 commands

set root=(hd0,1) (Note: rather than legacy GRUB's (hd0,0) )
chainloader +1

in /boot/grub/grub.cfg still ought to boot into XP, Vista, or Win7 if it's on the first partition of the first ATA hard drive. Only it doesn't, on this particular computer.

<edit> With Ubuntu updated to current (which included at least one update to the "grub-pc" package) on another computer, GRUB2 gives this startling warning message when installed to a partition (rather than the MBR):

grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.


After chainloading into GRUB2 and choosing WinXP, it boots fine on this computer.
User avatar
eco2geek
Level 1
Level 1
 
Posts: 24
Joined: Mon Sep 28, 2009 3:22 pm
Location: Portland, Oregon


Return to Chat about Linux

Who is online

Users browsing this forum: No registered users and 4 guests