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 9m 15s ago
Delete files downloaded and cached by Apple Music
downloaded 12m 49s ago
Drag-and-drop to convert audio files with iTunes
downloaded 12m 59s ago
Recreate a playlist such that its visible columns mirror the Music library
downloaded 13m 23s ago
List tracks not assigned to playlists
downloaded 14m 32s ago
Display/export a text file list of chosen tag data in library or playlist
downloaded 17m 17s ago
Display, create text file listing info of dead tracks