[i]my dell optiplex gx1 pc is not recognising my 160gb hard drive[/i]
If you mean that the computer is telling you that there is no HDD Present when you attempt to install Windows then the most likely thing is that you are not using the Dell Supplied Slipstreamed Install Optical Disc which has the SATA Drivers Slipstreamed to it and are using a M$ Branded Install Disc which doesn't have the SATA Drivers included.
To install the SATA Driver you need to press the [b]F6 Key[/b] when the first blue screen appears on the Windows Installer and wait till you are prompted then insert a Floppy Disc with the SATA Driver copied to it's Root and press Enter.
If you don't have a Floppy Drive available that you can use you can follow the directions here to make a Slipstreamed Install Disc with the SATA Drivers and whatever else you need
http://articles.techrepublic.com.com/5100-10878_11-5630356.html
Or download the same TR Article from here
http://downloads.techrepublic.com.com/abstract.aspx?docid=172974
Or use something like nLite to make your own Personalized Install Disc for this system it is available for free download here
http://www.nliteos.com/download.html
However if you use nLite make sure to read the Directions for use here
http://www.nliteos.com/guide/
If that is not what you mean then you should test the HDD with it's makers Testing Utility which can be obtained here
http://www.tacktech.com/display.cfm?ttid=287
And no Dell is not the HDD Maker it is more likely to be Seagate but it could be anyone of the other HDD Makers.
If this is a Slave Drive and not the Boot Drive all you need do to format it is to open Drive Management and Right Click on the Drive and from the Drop Down Menu chose Format. You can then format the drive from there.
However if the drive has failed and needs replacing follow the directions here in the Dell Service Manual for this Model
http://supportapj.dell.com/support/edocs/systems/ban_gx1/en/sm_sdt/remsff.htm
[b]Also very importantly[/b] It is not a good idea to post your E-Mail Address on a Public Forum as the Bot Nets which crawl the web looking for E-Mail Address will pick it up very quickly and flood your In Box with Spam. If you want people to contact you directly enable the Peer Mail Option on TR and that will have the same effect of allowing people to directly contact you but without filling your In Box with junk. ;)
Col