9

Is there a file somewhere in the System folder or in the Library that shows me which OS is installed on the disk?

3 Answers 3

13

You can read the SystemVersion.plist on that particular volume-

/Volumes/<volume_name>/System/Library/CoreServices/SystemVersion.plist 
2

If there's a valid, bootable system on it, then it will be listed in System Preferences > Startup Disk, with its version number.

enter image description here

9
  • Doesn't work for me. I see no system info for the external disks. Commented Aug 15, 2020 at 11:55
  • @SPRBRN That's odd. See the screenshot I've added. Commented Aug 15, 2020 at 12:38
  • I see, but here it only shows the volume name. Commented Aug 15, 2020 at 14:47
  • 1
    Could it mean those volumes are not bootable? Commented Aug 15, 2020 at 16:05
  • 2
    @SteveChambers - volumes are bootable, but encrypted. Maybe that's the issue here? Commented Aug 16, 2020 at 15:10
1

On a Mac, you can use the defaults read command to get just the "ProductVersion" from the "SystemVersion.plist" file.

defaults read /Volumes/"$Your_disk_name"/System/Library/CoreServices/SystemVersion.plist ProductVersion 

To read it from a non-Mac machine, just look at the content of that System/Library/CoreServices/SystemVersion.plist file, which is a plain text XML file.

Or on Linux, you can do

grep -A1 ProductVersion "$Your_disk_mount_point"/System/Library/CoreServices/SystemVersion.plist 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.