For 98:
Boot from CD, and use FDISK to delete the DOS Partition, and re-create it, and format it with FAT32. Then, reinstall 98.
For XP:
Boot from CD, and use the XP interface to delete and reformat the drive with either FAT32 or NTFS, and reinstall XP.