how the hell do you make isos of ps1 and ps2 games?

i use magic iso but it's a load of crap. whenever i get the iso and try it on the emulator it won't work. so does anyone know how to make isos out of your old games?