Ripping a CD that you own, and then only playing it off some kind of hard drive, is perfectly legal and moral.
It’s the selling of that same CD -- yet keeping and using the music that was on that CD -- that’s another matter.
And several people above were mentioning ripping and selling. And for some reason I didn’t think they meant also deleting the same music files from their computer/server drives after selling the CDs.