your main hard drive is failing.. if you can buy an external firewire drive you could install the OSX from it and hopefully the main drive will mount and do the backup. Just make sure the external firewire drive is formatted in an OSX environment or hfs+ else you wont see it during installation. Get also a copy of diskwarrior and filesalvage its really a lifesaver.
cheers and good luck