Booting XP with GRUB not possible / Partition not found

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lvleph

Re: Booting XP with GRUB not possible / Partition not found

Post by lvleph »

The boot loader for XP is at (hd0,0) even though XP is on sda5 (Or it should be). Try changing

Code: Select all

title      Microsoft Windows XP Professional
rootnoverify   (hd0,6)
chainloader   (hd0,6)+1
makeactive
boot
to

Code: Select all

title		Microsoft Windows XP Professional
rootnoverify	(hd0,0)
savedefault
makeactive
chainloader	+1
Make sure you make a backup before hand.

Code: Select all

sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
lvleph

Re: Booting XP with GRUB not possible / Partition not found

Post by lvleph »

You could try the following.
http://ubuntuforums.org/showthread.php?t=704857

EDIT: In your case

Code: Select all

sudo grub

> root (hd0,1)
> setup (hd0)
> quit
Lolo Uila
Level 5
Level 5
Posts: 575
Joined: Thu Mar 15, 2007 3:40 am
Location: Kapolei, Hawaii

Re: Booting XP with GRUB not possible / Partition not found

Post by Lolo Uila »

Your HDD partitioning is odd. What you specified makes no sense.

Unused Unused Partition *
/dev/sda1 (extended, lba)
/dev/sda5 Windows (ntfs)
/dev/sda6 Linux swap
/dev/sda2 Linux (ext4) **

* what is this? Why is there no primary partition here?
** Umm... if sda1 is an extended partition, then you should not have an sda2 (1-4 are primary, 5+ extended)


Grub counts drives & partitions from 0 (Zero), so your 1st partition is (0,0), 2nd is (0,1), etc. So sda5 should be (0,4).

Code: Select all

title      Microsoft Windows XP Professional
rootnoverify   (hd0,4)
chainloader   +1
makeactive
boot
lvleph

Re: Booting XP with GRUB not possible / Partition not found

Post by lvleph »

hd0,0 was incorrect. I apologize for that. It appears that you should be using hd0,4 for Windows.
optimize me

Re: Booting XP with GRUB not possible / Partition not found

Post by optimize me »

download and burn the super grub disk and see if you can load it that way.
User avatar
Pierre
Level 21
Level 21
Posts: 13223
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Booting XP with GRUB not possible / Partition not found

Post by Pierre »

within Mint, are you able to "mount" the xp partition., that is shown in 'Computer' ( dble click on it )
&/or read any of the data within that partition?.
if so, what partition does Mint say, that it is ..
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
RichardH

Re: Booting XP with GRUB not possible / Partition not found

Post by RichardH »

This seems correct and should boot windows. If not, add "boot" command at the bottom.
Sometimes it seems to be needed, others not.

title Microsoft Windows XP Professional
rootnoverify (hd0,4)
makeactive
chainloader +1
savedefault
RichardH

Re: Booting XP with GRUB not possible / Partition not found

Post by RichardH »

Just looked at the windows part on the AA1 and it looks like this,
and I know that it boots: (doesn't always mean that it will work on yours. :)

title Microsoft Windows XP Home (on /dev/sda2)
rootnoverify (hd0,1)
savedefault
chainloader +1

If you really must get windows running & if you have a windows CD:
make a backup of your menu.lst
boot the windows CD and repair the boot partition or whatever its called.
or from DOS fdisk /mbr but the winCD is probably the best.

This will get windows booting, but then you will have to reinstall grub again,
which in the wiki is reported to not be working correctly.
You could always reinstall LM7 again, but that is a pain.

See here:
http://linuxmint.com/wiki/index.php/How ... _your_grub
and
http://www.linuxmint.com/forum/viewtopi ... 42&t=19208
for repairing grub in mint.
Lolo Uila
Level 5
Level 5
Posts: 575
Joined: Thu Mar 15, 2007 3:40 am
Location: Kapolei, Hawaii

Re: Booting XP with GRUB not possible / Partition not found

Post by Lolo Uila »

Harpagonos wrote:I think the problems might have to do with the HP bootloader. It offers you to boot either the windows installed or the rescue partition, which I removed for Linux...
Uh oh! You are trying to chain two different boot menu type loaders? That's gotta be the problem.

You are not simply chainloading the Windows boot process, you are trying to link one boot menu (Grub) to another (HP) and we really don't know what the HP menu requires.

I'll bet part of the HP boot loader got over-written by Grub and the HP one is broken now. Unless someone here knows enough about the HP boot loader to offer you a fix (which will likely break Grub), I'd say you are probably going to have to back up your data, wipe your drive and start from scratch (install both XP and Mint all over again).

The only way around it I can see would be to completely remove the HP boot menu and replace it with the normal XP boot loader, and I have no idea how to do that. Hopefully someone else is more familiar with the HP software.
StanTheMan

Re: Booting XP with GRUB not possible / Partition not found

Post by StanTheMan »

Win XP should be on a Primary partition made bootable (active)
I would suggest , using a partitioner such as GPartEd , delete sda5 to make empty space , then create a new Primary sda2 and make it bootable . Using XP s install disk which should re-write the MBR , install WinXP on sda2 .
Next you would have to edit GRUB to get your linux bootloader working again.
lvleph

Re: Booting XP with GRUB not possible / Partition not found

Post by lvleph »

StanTheMan wrote:Win XP should be on a Primary partition made bootable (active)
I would suggest , using a partitioner such as GPartEd , delete sda5 to make empty space , then create a new Primary sda2 and make it bootable . Using XP s install disk which should re-write the MBR , install WinXP on sda2 .
Next you would have to edit GRUB to get your linux bootloader working again.
Would the reinstall of XP and the subsequent rewrite of the MBR require one to need to setup grub again, not just a menu.lst fix?
lvleph

Re: Booting XP with GRUB not possible / Partition not found

Post by lvleph »

It might be possible to copy the partition and then use the CD to fix the MBR.
Locked

Return to “Installation & Boot”