Back in the day it was easy to make digital copies from CD to MD using an optical (toslink) cable. This method would preserve the track markers accurately which was hugely convenient! It wasn't lossless, of course, since MD is itself a compressed format, but the results were pretty good compared to say the MP3s of the era.