In those situations, you can copy your music collection to a network-attached hard drive (or Apple Time Capsule) either attached to the S5 or somewhere on the network.
One delightful change: Snow Leopard takes up less than half the room on a hard disk that Leopard did, and Apple says the average user who upgrades will free up about 7 gigabytes of space.