I have transferred some mp3s onto my sdcard using samba but the operating system doesn't seem to automatically detect them as it would if you copied it using MTP or whatever. How can I force it to detect them?
Run the following shell script on the command line, either via SSH or adb.
Alternatively if you prefer a UI I find Force Media Scan ideal. You do not have to reboot your device for these.