A couple of things,right off the bat.
1. with having 2 drives(C: being Your Master drive and, D: being Your slave drive) the only drive You needed to repartition is the C: drive( has Your OS in it) having SH4 in D: drive would
not have to have been uninstalled, as D: drive does not contain Your OS. I always use My D: drive for anything I want to keep should I need to reinstall XP.
2. it sounds like Your DVD-rom/ram may not have the drivers. have You looked into this???. or it may be SP 3. try reinstalling XP SP2. I hope this helps in some small way.