For your CDROM problem, you could try booting to Safe Mode (F8 at startup) and delete all CDROMs in Device Manager, then restart and see if it is properly re-detected. And, as
Dj-Icer suggested, doublecheck the jumper settings on your CDROM, especially if it's slaved to your hard drive.
If neither of these are the problem, try another IDE cable if you have one - they do occasionally go bad - or try the CDROM alone on IDE 2 as secondary master if it's currently set as slave on IDE 1.
More info on your system setup would be helpful if the above don't solve your problem (i.e., number of drives, how they are cabled as master/slave, new install of OS or upgrade, etc.).
Maybe some help at one of these links for your shutdown problem:
MS KB articles
http://support.microsoft.com/default...b;EN-US;308029
"It is Now Safe to Turn Off Your Computer" Error Message When You Try to Shut Down Your Computer
http://support.microsoft.com/default...b;en-us;810903
WINDOWS XP SHUTDOWN & RESTART TROUBLESHOOTING
http://www.aumha.org/a/shtdwnxp.htm
Hope this helps,
Kimbo