On latest version of MacOS This command : system_profiler SPSerialATADataType | grep -B3 -A3 'Serial Number' Is no longer returning HDD id.