How do I switch back and forth?
You can use a boot manager. but some can ruin your present system.
Geneally, you can learn how you BIOS works in five minuetes or less. How the boot managerwokrs can take days. For me it has taken months and months and finally discovered I don't need it, just do it in the BIOS.
Get into your BIOS. Somewhere there is a way to change the boot order. You can boot off the second IDE or the second drive. I have a Intel board mad a few years ago and have no problem getting it to boot off the second drive. Most Dell computers and ASUS mother boards have that feature. In fact, I can not think of a BIOS that does not have that feature. Except a laptop..
I suppose you have the old PATA (IDE) drives. You can not do DOS on a SATA unless it is in emulation mode.
For DOS, you can just install it on the other computer. It does not care. Some 20 mega byres is lots for DOS. Win 98 about 500 is good.
For endows 98, you would disable the main hard drive in the BIOS settings.
For Windows 98 will install on what it sees as the first hard drive. Or whatever drive has a FAT32 partition.
Yes what the other post said is true. You can not retro install Windows versions. A Windows 98 or DOS install onto the main drive will mess up the XP MBR, NT boot sector and NTLDR. So you would install on another drive, with the main drive removed or disable or mapped by the BIOS to be the virtual second drive.
(Windows allows BIOS remapping, Linux does not. And trying to dual boot with Linux is something I have never liked. Too much hassle.)
If this is not clear, ask questions. After you put the second drive in, look in the BIOS. It should find it ans somewhere give you the option of making it the boot drive. Or you disable the first IDE channel and it gos for the other channel. If the BIOS can not find a valid boot sector on any HDD, it gives some error message. Unless it boots first from the CD or floppy.