For macOS 10.10 and later only. This script applet will go through the iTunes library and sort each track into a new discrete playlist named for the drive on which each track's file is located.
New playlists will be named something like "--> Files_on_volume Local drive", "--> Files_on_volume MyBook2TB", and so on.
Perhaps Also of Interest...
downloaded 1m 10s ago
Rename selected tracks' Song Names with their filenames (minus extension)
downloaded 11m 39s ago
Sort tracks into playlists by volume location
downloaded 18m 8s ago
Download selected media from a web page in Safari
downloaded 29m 39s ago
Perform two-pass search for tracks in selected playlist
downloaded 39m 17s ago
Display, create text file listing info of dead tracks
downloaded 43m 26s ago
Exports and then re-imports selected tracks' artwork