iMac G5 use standard desktop SATA drives so you can install one. If you have the drive caddy, screws and cables in iMac it is easy, sometimes when people disassemble iMac G5's and put for sale as spares they for some reason take all those parts mentioned with the drive itself. During OS X install you can use disk utility to format.