I have a computer with one HDD that has Ubuntu 14.04 as the only OS and GRUB2 on the same disk (hd0/sata0). Its partitions are:
sda1 - ext4 primary sda2 - swap area sda3 - NTFS
I found an old HDD that has XP installed on it as the primary (and only) OS. I attached it to my computer (sata1) and it is recognized by the GRUB2 as hd1.
My goal is to load the XP OS (without changing the BIOS boot order or reinstalling XP) via the GRUB2 command line/configuration files.
I entered the GRUB2 command line and tried the following commands:
set root='(hd1,msdos1)' drivemap -s hd0 hd1 chainloader +1
This solution didn't work. It said that the command
drivemap doesn't exist and the command
chainloader asked for an input file.
How can I boot Windows XP (not EFI) using the GRUB2 on another HDD?