How to add Windows XP to GRUB2 menu












1














I have a Dell Dimension 5150 with a Pentium D 820 (I know it's outdated but I received this from a friend as a Christmas gift.)



I have 2 hard disks in this desktop:




  1. A 500GB 2.5' laptop HDD with Clover EFI installed (GPT BIOS Setup)


  2. A 80GB 3.5' desktop HDD (normal MBR BIOS Setup)



Partition layout



Laptop HDD



https://i.stack.imgur.com/yDRC2.png



sda1: Ubuntu MATE 16.04

sda2: Windows 10

sda3: Phoenix OS

sda4: DATA (Backup Storage Partition)

sda5: PARTIMG (Partition Image Storage)

sda6: ESP (EFI System Partition)



(I previously used a laptop and all my data is in there, but it died and this hard disk still can be used.)



Desktop HDD



https://i.stack.imgur.com/ZMKIW.png



sdb1: Dell System Utility (OEM Partition)

sdb2: Windows XP SP3 Home Edition

sdb3: Ubuntu XFce 18.04




How do I add Windows XP that is located on the second HDD's second partition to Ubuntu MATE 16.04 LTS's GRUB2 menu entry?




What I have tried:




  1. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader +1

    error: Invalid EFI file path

  2. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader /ntldr

    error: cannot load image

  3. insmod part_msdos
    insmod ntldr
    insmod ntfs
    ntldr (hd1,msdos2)/ntldr

    error: ntldr.mod not found

  4. insmod part_msdos
    insmod chain
    drivemap hd0 hd1
    chainloader (hd1,msdos2)+1

    error: drivemap command not found

  5. insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    search --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 2ABF87DC395CFC02
    drivemap (hd1,msdos2) (hd0,msdos1)
    chainloader /ntldr

    error: cannot load image


What I have observed:



I did try if it can read the NTFS partition. It can read it without any problem. ls (hd1,msdos2)/ returns a bunch of files on the hard drive including the boot files (boot.ini, ntldr, AUTOEXEC.COM)



drivemap is only available in i386-pc package and not x86_64-efi package



It isn't the boot files problem as it boots normally if I disconnect the first hard drive (It boots into Windows XP normally).



os-prober and update-grub doesn't detect Windows XP partition (even if it's mounted). It only detects the first partition (Dell System Utility) on the second drive.










share|improve this question









New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Thanks for the edit @karel
    – Growtopia Jaw
    yesterday












  • There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
    – karel
    yesterday












  • Hmm. I will try Thanks
    – Growtopia Jaw
    yesterday










  • UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
    – oldfred
    yesterday










  • You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
    – mchid
    yesterday


















1














I have a Dell Dimension 5150 with a Pentium D 820 (I know it's outdated but I received this from a friend as a Christmas gift.)



I have 2 hard disks in this desktop:




  1. A 500GB 2.5' laptop HDD with Clover EFI installed (GPT BIOS Setup)


  2. A 80GB 3.5' desktop HDD (normal MBR BIOS Setup)



Partition layout



Laptop HDD



https://i.stack.imgur.com/yDRC2.png



sda1: Ubuntu MATE 16.04

sda2: Windows 10

sda3: Phoenix OS

sda4: DATA (Backup Storage Partition)

sda5: PARTIMG (Partition Image Storage)

sda6: ESP (EFI System Partition)



(I previously used a laptop and all my data is in there, but it died and this hard disk still can be used.)



Desktop HDD



https://i.stack.imgur.com/ZMKIW.png



sdb1: Dell System Utility (OEM Partition)

sdb2: Windows XP SP3 Home Edition

sdb3: Ubuntu XFce 18.04




How do I add Windows XP that is located on the second HDD's second partition to Ubuntu MATE 16.04 LTS's GRUB2 menu entry?




What I have tried:




  1. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader +1

    error: Invalid EFI file path

  2. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader /ntldr

    error: cannot load image

  3. insmod part_msdos
    insmod ntldr
    insmod ntfs
    ntldr (hd1,msdos2)/ntldr

    error: ntldr.mod not found

  4. insmod part_msdos
    insmod chain
    drivemap hd0 hd1
    chainloader (hd1,msdos2)+1

    error: drivemap command not found

  5. insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    search --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 2ABF87DC395CFC02
    drivemap (hd1,msdos2) (hd0,msdos1)
    chainloader /ntldr

    error: cannot load image


What I have observed:



I did try if it can read the NTFS partition. It can read it without any problem. ls (hd1,msdos2)/ returns a bunch of files on the hard drive including the boot files (boot.ini, ntldr, AUTOEXEC.COM)



drivemap is only available in i386-pc package and not x86_64-efi package



It isn't the boot files problem as it boots normally if I disconnect the first hard drive (It boots into Windows XP normally).



os-prober and update-grub doesn't detect Windows XP partition (even if it's mounted). It only detects the first partition (Dell System Utility) on the second drive.










share|improve this question









New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Thanks for the edit @karel
    – Growtopia Jaw
    yesterday












  • There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
    – karel
    yesterday












  • Hmm. I will try Thanks
    – Growtopia Jaw
    yesterday










  • UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
    – oldfred
    yesterday










  • You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
    – mchid
    yesterday
















1












1








1







I have a Dell Dimension 5150 with a Pentium D 820 (I know it's outdated but I received this from a friend as a Christmas gift.)



I have 2 hard disks in this desktop:




  1. A 500GB 2.5' laptop HDD with Clover EFI installed (GPT BIOS Setup)


  2. A 80GB 3.5' desktop HDD (normal MBR BIOS Setup)



Partition layout



Laptop HDD



https://i.stack.imgur.com/yDRC2.png



sda1: Ubuntu MATE 16.04

sda2: Windows 10

sda3: Phoenix OS

sda4: DATA (Backup Storage Partition)

sda5: PARTIMG (Partition Image Storage)

sda6: ESP (EFI System Partition)



(I previously used a laptop and all my data is in there, but it died and this hard disk still can be used.)



Desktop HDD



https://i.stack.imgur.com/ZMKIW.png



sdb1: Dell System Utility (OEM Partition)

sdb2: Windows XP SP3 Home Edition

sdb3: Ubuntu XFce 18.04




How do I add Windows XP that is located on the second HDD's second partition to Ubuntu MATE 16.04 LTS's GRUB2 menu entry?




What I have tried:




  1. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader +1

    error: Invalid EFI file path

  2. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader /ntldr

    error: cannot load image

  3. insmod part_msdos
    insmod ntldr
    insmod ntfs
    ntldr (hd1,msdos2)/ntldr

    error: ntldr.mod not found

  4. insmod part_msdos
    insmod chain
    drivemap hd0 hd1
    chainloader (hd1,msdos2)+1

    error: drivemap command not found

  5. insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    search --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 2ABF87DC395CFC02
    drivemap (hd1,msdos2) (hd0,msdos1)
    chainloader /ntldr

    error: cannot load image


What I have observed:



I did try if it can read the NTFS partition. It can read it without any problem. ls (hd1,msdos2)/ returns a bunch of files on the hard drive including the boot files (boot.ini, ntldr, AUTOEXEC.COM)



drivemap is only available in i386-pc package and not x86_64-efi package



It isn't the boot files problem as it boots normally if I disconnect the first hard drive (It boots into Windows XP normally).



os-prober and update-grub doesn't detect Windows XP partition (even if it's mounted). It only detects the first partition (Dell System Utility) on the second drive.










share|improve this question









New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a Dell Dimension 5150 with a Pentium D 820 (I know it's outdated but I received this from a friend as a Christmas gift.)



I have 2 hard disks in this desktop:




  1. A 500GB 2.5' laptop HDD with Clover EFI installed (GPT BIOS Setup)


  2. A 80GB 3.5' desktop HDD (normal MBR BIOS Setup)



Partition layout



Laptop HDD



https://i.stack.imgur.com/yDRC2.png



sda1: Ubuntu MATE 16.04

sda2: Windows 10

sda3: Phoenix OS

sda4: DATA (Backup Storage Partition)

sda5: PARTIMG (Partition Image Storage)

sda6: ESP (EFI System Partition)



(I previously used a laptop and all my data is in there, but it died and this hard disk still can be used.)



Desktop HDD



https://i.stack.imgur.com/ZMKIW.png



sdb1: Dell System Utility (OEM Partition)

sdb2: Windows XP SP3 Home Edition

sdb3: Ubuntu XFce 18.04




How do I add Windows XP that is located on the second HDD's second partition to Ubuntu MATE 16.04 LTS's GRUB2 menu entry?




What I have tried:




  1. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader +1

    error: Invalid EFI file path

  2. insmod part_msdos
    insmod ntfs
    set root=(hd1,msdos2)
    chainloader /ntldr

    error: cannot load image

  3. insmod part_msdos
    insmod ntldr
    insmod ntfs
    ntldr (hd1,msdos2)/ntldr

    error: ntldr.mod not found

  4. insmod part_msdos
    insmod chain
    drivemap hd0 hd1
    chainloader (hd1,msdos2)+1

    error: drivemap command not found

  5. insmod part_msdos
    insmod ntfs
    insmod search_fs_uuid
    search --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 2ABF87DC395CFC02
    drivemap (hd1,msdos2) (hd0,msdos1)
    chainloader /ntldr

    error: cannot load image


What I have observed:



I did try if it can read the NTFS partition. It can read it without any problem. ls (hd1,msdos2)/ returns a bunch of files on the hard drive including the boot files (boot.ini, ntldr, AUTOEXEC.COM)



drivemap is only available in i386-pc package and not x86_64-efi package



It isn't the boot files problem as it boots normally if I disconnect the first hard drive (It boots into Windows XP normally).



os-prober and update-grub doesn't detect Windows XP partition (even if it's mounted). It only detects the first partition (Dell System Utility) on the second drive.







boot dual-boot grub2 uefi






share|improve this question









New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday





















New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Growtopia Jaw

63




63




New contributor




Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Growtopia Jaw is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Thanks for the edit @karel
    – Growtopia Jaw
    yesterday












  • There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
    – karel
    yesterday












  • Hmm. I will try Thanks
    – Growtopia Jaw
    yesterday










  • UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
    – oldfred
    yesterday










  • You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
    – mchid
    yesterday




















  • Thanks for the edit @karel
    – Growtopia Jaw
    yesterday












  • There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
    – karel
    yesterday












  • Hmm. I will try Thanks
    – Growtopia Jaw
    yesterday










  • UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
    – oldfred
    yesterday










  • You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
    – mchid
    yesterday


















Thanks for the edit @karel
– Growtopia Jaw
yesterday






Thanks for the edit @karel
– Growtopia Jaw
yesterday














There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
– karel
yesterday






There is a tool named Rescatux that is able to add a Windows entry to the grub boot menu automatically. Maybe it's worth a try: Restore Windows bootloader. I used the built-in Startup Disk Creator application to put Rescatux on a bootable USB thumb drive.
– karel
yesterday














Hmm. I will try Thanks
– Growtopia Jaw
yesterday




Hmm. I will try Thanks
– Growtopia Jaw
yesterday












UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
– oldfred
yesterday




UEFI and BIOS are not compatible. But do not know Clover which is software to allow an old BIOS system to boot in EFI boot mode. Can you directly boot Windows from BIOS by selecting the Windows drive. I doubt you can boot Windows from grub if in UEFI mode.
– oldfred
yesterday












You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
– mchid
yesterday






You should be able to press f12 or f10 or whatever f-key you need to press to select the boot option on a Dell computer. From there you can select Windows. Also, you should be able to turn off safeboot to allow booting from standard BIOS drives. Have you tried this?
– mchid
yesterday

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Growtopia Jaw is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104710%2fhow-to-add-windows-xp-to-grub2-menu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Growtopia Jaw is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Growtopia Jaw is a new contributor. Be nice, and check out our Code of Conduct.













Growtopia Jaw is a new contributor. Be nice, and check out our Code of Conduct.












Growtopia Jaw is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104710%2fhow-to-add-windows-xp-to-grub2-menu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg