As a general rule, iTunes (the application, not the store) and Apple Music (the application that has replaced iTunes on macOS, not the subscription service) organizes its music library on disk in the same way that a B2 wants its music: Artist folders, containing Album folders, containing tracks. This is true no matter how you can search or display the music in the iTunes or Music application interface. The easy way, therefore, to copy your iTunes or Apple Music files -- the ones you actually own, either by purchasing them or by ripping CDs; subscription files you have downloaded for "offline use" are probably encrypted and cannot be used outside of the Apple Music application -- is to find and copy the Library folder structure. There is only one reason we need to run the application: to look in its Preferences in order to locate where on the disk it keeps the actual music library. While there are similarities between iTunes (which is still the program that runs on Microsoft Windows) and Apple Music (on current versions of macOS), I have split out the Windows and Mac steps in order to show appropriate screen images for each.iTunes on MS-Windows: Run iTunes, and on the Edit menu click on Preferences. In the Preferences window that pops up, click on Advanced. Note that the option "Keep iTunes Media folder organized" is checked; I believe this has been the default setting for a long time (at least since 2003). The path that you need is shown as the "iTunes Media folder location"; navigate to it in the Windows Explorer (some people call it File Manager). You can now close iTunes, as we will be working in the Explorer. Under the iTunes Media folder is a folder called Music; inside that are the artist folders, containing album folders, and finally tracks. (here you can see tracks in the right-hand pane, and in the left-hand pane you can see they are in the album "It's Not Me, It's You", under the artist Lily Allen. The Address bar shows the artists are the top level under the Music folder in iTunes Media.) You can right-click on the Music folder and select Properties to find out how big it is.Apple Music on macOS: Launch Music, and on the menubar under Music click on Preferences. In the Preferences window that pops up, click on Files. Note that the option "Keep Music Media folder organized" is checked; I believe this has been the default setting for a long time (at least since iTunes in 2003). The path that you need is shown as the "Music Media folder location"; navigate to it in the Finder. You can now close Apple Music, as we will be working in the Finder. In this example, the Music Media folder is called "iTunes Music", because that is where the files were when macOS was upgraded and Music replaced iTunes. Inside that are the artist folders, containing album folders, and finally tracks. You can right-click on the iTunes Music folder and select Get Info to find out how big it is.Final steps, on either platform: If you have a USB drive big enough to hold the entire music folder, just drag (copy) the whole folder to the USB drive. At the very least you will have a backup copy that way. If you use a thumb drive (also called "USB stick"), usually they come from the factory formatted to FAT32, which is what the B2 wants. It won't use anything else. If you have a different USB drive with nothing on it that you want to keep, the B2 can format it for you -- formatting erases everything already there, so be careful if it has files. Then if you copy the iTunes or Music library folder to it, the B2 will be able to read it directly and you should be able to Import directly from the USB drive.Some things to be aware of if you have a Mac: Macs have an annoying habit (well, it's annoying to the rest of us) of storing information in files in two "forks" -- a data fork, which in this case contains the actual music, and a resource fork, which contains some information used by macOS (and nothing else). On a Mac-native file system -- HFS, HFS+, AFS -- they occupy one file. On other file systems -- FAT32, ext4 -- they get split into two files. Viewed from a Mac they still look like one file, but when you get those files over to the B2 you will probably see filenames starting with ._ (dot underscore), and they'll all be really small. Those are the resource forks for the corresponding data files. The B2 has a "clean up" function on the menus to get rid of them for you. (Settings > Maintenance > Cleanup) The B2 can play MP3 files; it can play M4A files; it can play WAV, FLAC, and ALAC files (but you are unlikely to find WAV or FLAC on a Mac or from Apple, as Apple chose to use AIFF instead of WAV and ALAC instead of FLAC). It's possible to convert AIFF or other formats if you need to. (On a Mac I would use XLD, which is freeware.) Nothing but your iTunes account can decrypt M4P files, which are Apple's DRM protected files. iTunes could burn audio CDs from them, which effectively strips the DRM; maybe Music can do the same. M4P files will not be playable on a B2.
I am not now, nor have I ever been, a Brennan employee or business affiliate. I am a customer. My opinions are my own, and do not represent Brennan policy.
The early bird gets the worm, but it's the second mouse that gets the cheese.