GRUB dual boot configuration: xmnt2002 and autochk not found **solution**

Over the weekend I attempted to set up a dual boot system on my mothers PC (SJDS & WinXP). Windows XP was already installed, and therefore the Windows bootloader (NTLDR) already occupied the Master Boot Record (MBR).

A Google search revealed a number of sites explaining how to set up a Linux/WinXP dual boot system. The advice of many of the authors was to allow Windows to continue to occupy the MBR. Install Linux, electing to install GRUB onto the first sector of the /boot partition - not the MBR. Then, make an image of the Linux boot sector and place this in C:\, and modify C:\boot.ini to recognise this image.

<a href="http&#58;&#47;&#47;www.geocities.com/epark/linux/grub-w2k-HOW TO.html" target="_blank">http://www.geocities.com/epark/linux/grub-w2k-HOWTO.html< /a>

Essentially, this means the process of booting Linux originates with the Windows boot loader. The chain of command in reaching Linux would go NTLDR->GRUB->Linux. This doesn't sit comfortably with me: relying on a Microsoft product to access Linux. MS Windows is a retarded bitch sucking demon's d*cks in hell. Instead (having already used PartitionMagic to resize the NTFS partition smaller, and having created Linux '/' and '/swap' partitions), I stuck with the Sun JDS/SuSE default installation boot option, which is to give MBR to GRUB.

This is where I ran into a few minor problems. Firstly, SJDS didn't bother itself with configuring an additional GRUB boot option for WinXP. In hindsight, this may be due to the fact that PartitionMagic BY DEFAULT HIDES THE NTFS PARTITION. This then required two actions on my part to remedy:

1) Add the Windows XP menu item to GRUB. This is simply done by adding the following lines to /boot/grub/menu.1st...

title Windows XP Professional

root (hd0,0)

makeactive

chainloader +1

2) Instruct GRUB to unhide the NTFS partition, by adding another line to the above...

title Windows XP Professional

<b>unhide (hd0,0)</b>

root (hd0,0)

makeactive

chainloader +1

Of course, I could have used PartitionMagic to unhide the NTFS partition, but by this stage I was unable to start WinXP (easily).

This brings me full circle: explaining the "xmnt2002 and autochk not found" error messages. This occurs if, given the above scenario, step one but not step two is performed. GRUB will attempt to start WinXP, the WinXP splash screen will display but, as the NTFS partition is hidden, the boot will fail (displaying the above error message). Typically the system will then reboot itself.

I wasted a few hours on this, and this forum brought up no search result for either of the above two missing items. My hope is that anyone else experiencing the same problem will be saved the wasted time should they choose to search this forum for 'xmnt2002' or 'autochk'.

Please anyone feel free to reply to this thread if you have any information to add, or if you believe that my <b><i>technical correctness</i></b> is not 100%.

Cheers,

Chris.

P.S. I hereby absolve Sun of all responsibility concerning my comments above describing the behaviour of MS Windows in the afterlife ;-).

[3681 byte] By [] at [2007-11-25 22:33:37]
# 1
Hello blondeMatrix: Nice post,good link.Very useful for all. Thanks. Regards.
at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 2

BlondeMatrix,

Thank you so much for your explanation. I was ready to erase my linux partition to install another XP to correct the registries entries. You saved me so much time.

Thank you so much.

Best regards.

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 3
Pleased to play a part in dispelling the myth that Windows boot loader must occupy the MBR (in a dual boot system). Chris.
at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 4

Hello,

I have a problem with the xmnt2002 and autochk. I 've tried the solution, but it doesn't seem to work for my situation. I have installed both Win 98 and win XP on separated partitions. (Even tried swapping the partitions of win 98 and XP)

Am I doing something wrong. I would like your advise...

Thanx in advance.

Marc

Some detail info:

The first partition is about 3,8 GB and contains Win XP (FAT-32) installed

The secon partition is about 3,3 GB and contains Win 98 (FAT-32) installed

The third partition is about 5 GB and contains Linux (SUSE 9.1) (native)

The rest of the disk (62 GB extended contains a 5 GB FAT-32 partition, and the rest is NTFS

the /etc/grub.conf looks like this:

root (hd0,2)

install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,2)/boot/grub/menu.lst

quit

The /boot/grub/Menu.lst file looks like this:

color white/blue black/light-gray

default 0

timeout 8

gfxmenu (hd0,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###

title Linux

kernel (hd0,2)/boot/vmlinuz root=/dev/hda3 vga=0x317 splash=silent desktop resume= showopts

initrd (hd0,2)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: Windows XP Professional###

title Windows XP Professional

unhide(hd0,0)

root (hd0,0)

makeactive

chainloader +1

###Don't change this comment - YaST2 identifier: Original name: Windows 98###

title Windows 98

root (hd0,1)

makeactive

chainloader +1

###Don't change this comment - YaST2 identifier: Original name: floppy###

title Floppy

root (fd0)

chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###

title Failsafe

kernel (hd0,2)/boot/vmlinuz root=/dev/hda3 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3

initrd (hd0,2)/boot/initrd

<font size="6"></font>

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 5

If it can be of any use, here is what I did to set up my multiboot of 5 OSs: Win98+2k, Redhat9, Suse9 and SJDS:

<a href="http://susefaq.sourceforge.net/howto/multi_os_grub.html" target="_blank">http://susefaq.sourceforge.net/howto/multi_os_grub.html</ a>

Terje J. Hanssen

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 6

I have exactly the same error messages coming up while trying to boot Windows XP but the solution does not work for me because I am using a version of Linux that does not use the GRUB file for booting. The version of LINUX that I am using is Linspire 4.5 and their boot file is LILO.conf. Linspire themselves have been no help so far in fixing this problem. Does anyone here know how to fix it?

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 7

One of my colleagues used Lilo with JDS2.

I am not sure if it is the same with Linspire, but what he did is : install WinXP first, then install JDS, when installing change the software selection and unselect grub, JDS will install Lilo, automatically generate the entry to boot XP besides JDS itself.

Opus, you might want to try JDS2 for its friendliness and the community support it has :)

Regards

Adrianus

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 8
Thanks Adri. Linspire did create the entry for Win XP, it just does not seem to work.
at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 9

I ran into the same issue. I used PQMagic to resize a partition for a Fedora installation on the same drive as xp sp2. I got the XMNT2002 error and everything. I went to <a href="http://www.ultimatebootcd.com/" target="_blank">http://www.ultimatebootcd.com/</a> and download the bootdisk. Its free and comes in an ISO image. Burned the image in fedora and booted the system.Took option F3 from the main menu for "File System Tools" Then took the option i think "1' for Smart Boot Manager. (<a href="http://btmgr.sourceforge.net/" target="_blank">http://btmgr.sourceforge.net/</a>)

Selected the NTFS partition, turned off the Hidden flag and set it active again. F2 to save and viola the system booted perfectly. I love this new boot cd. suggest it to everyone.

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 10

When I have done my installs of JDS R2 with a dual boot configuration using Win XP home, Within Win XP I have used partition magic to create free space for the install then I let the JDS R2 installation take care of the rest. Installing into free space seems to simplify things for me, and it always goes without a hitch.

at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 11
STSBRAD, thanks for the help. I had the same issue and I tried a dozen other things first with no effect but the ultimateboot cd fix worked like a charm. mog
at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...
# 12
Thank you so much!!!This is a really great solution!Just installed linux and got this problem (used partition magic 8.0). Was really disappointed in linux, but apparently it is not ubuntu's fault.Many many many many many thanks!
PimLubberdink at 2007-7-5 2:49:58 > top of Java-index,Desktop,Sun Java Desktop System...