Hi team!
Here’s a case about determining the operating system in each partition when multiple operating systems are installed on the host.
[Symptom]
When multiple operating systems are installed on one host, it is difficult to determine the operating system in each partition.
[Fault Diagnosis]
When multiple operating systems are installed, the corresponding relations between the operating systems and the partitions are not recorded in a timely manner. As a result, it is difficult to determine the operating system in each partition.
[Solution]
1.Run the fdisk -1 command to check the numbers of partitions and operating systems on the host.

The preceding figure shows that there are three operating systems installed in /dev/sda1, /dev/sda3, and /dev/sda4 respectively. /dev/sda2 is used as the switching partition and is accessed by the three systems.
2.Mount the partition running the operating system to a certain directory.
Check the operating system of the mounted partition using the redhat-release or SuSE-release file in the /etc/ directory.
Use the /dev/sda1 partition as an example to illustrate how to determine the operating system in the partition.
(For other partitions, the procedure is the same).
Run the mount /dev/sda1 /mnt command to mount the partition to the /mnt directory.
Assume that the operating system is Red Hat or SUSE.
Run the cat /mnt/etc/redhat-release command or the cat /mnt/etc/SuSE-release command to to view the system type,
as shown in the following figure:
