Long time ago I have installed a few Linux distros on various drives / partitions.
Now I need to know what a distro is on a specified drive / partition, without to have to boot it.
I have mounted and I can use, e.g., the directory /boot.
Earlier, a distro KNOPPIX had in this directory (or perhaps in dir with other name) a file showing the knoppix-version. Other distros don't have such a file.
From
/media/sda3/boot/grub/grub.cfg
I can read what grub would offer to boot. But this is not what I want.
vmlinux... has information about the kernel
/media/sda3/boot/vmlinuz-5.4.0-42-generic
but this is a binary.
I there a tool to extract more information than the filename says?
But this is not the name, version, release of the distribution.
How can I get that without to boot?
/etc/os-release
files, those can be a start. Do you need the distribution name or the kernel info?