There is another issue. If your W2k image was originally captured from the first partition, and you now restore it to the second partition, even if this partition is a primary partition, it may not run normally. Windows recognizes the installation partition.
Similarly, there are problems when reversing the partitions of 98 and 2k. Moreover, 98 has an additional problem: it does not support having more than one primary partition on the boot hard drive.
This problem can be solved with SPFDisk (this is an open-source, free boot manager + fdisk):
1. Install 2k to the first partition (primary)
2. Install 98 to the second partition (primary)
3. Use the remaining space as an extended partition and create logical partitions within it
4. Run SPFDisk, and SPFDisk operates with a fully Chinese TUI menu
5. Create the first boot menu Windows 2000, booting from the first partition
6. Create the second boot menu Windows 98, booting from the second partition
7. Turn off the Windows 2000 automatic hiding of similar partitions function in the advanced settings
8. Install to the MBR
In this way, when 98 boots, SPFDisk will automatically hide the partition where W2k is located, and it seems that 98 is the only primary partition. When 2k boots, it is in the first primary partition, and 2k allows multiple primary partitions, so it's fine.
For safety, after step 7 is completed, you can manually set to hide the 2k partition when booting 98, which will be foolproof.
SPFDisk is downloaded here:
http://spfdisk.sourceforge.net/
Of course, GRUB4DOS can also achieve a similar function. It also needs to be installed to the MBR (because the first partition may be hidden sometimes, so it cannot be installed under ntldr!); and place the GRUB directory in the second partition (the second partition will never be hidden, so it can be placed with confidence). The remaining steps have the same logic as the previous text, but it is completed by GRUB commands.