ps2 hard drive formating software

So i bought a network adapter to set connect a hard drive to my ps2 as storage and now that i have it i dont have the software to format it so it will work. Also i heard that you can save your games to the hard drive so you no longer need to have the disks in. Is that possible, if so is it legal, and then how? thanks-HF