Can the playlists and ratings be recovered from iOS devices when an iTunes library is lost?
On Windows I used SharePod for this some years ago

SharePod is easy to use and works! Heres some of the main features:

Add &amp; remove music and videos from your iPod
Add, remove and edit playlists
Add &amp; remove album art
View and backup photos
Copy music, videos and playlists from your iPod to PC
Import music/videos into your iTunes library, including playlists and ratings
Tag editing
Drag n' drop to and from Explorer
Simple, clean interface
Quick to load and use with no unnessary complicated features
Support for iPhone and iTouch

And whats more, SharePod is completely free! SharePod was designed from the start to be lightweight, quick and responsive, it has all (well hopefully most...!) of the features you need and none of the features you dont.