Got it

Determine the operating system in each partition when multiple operating systems are installed on the host

110 0 0 0 0

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.

1

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:

2

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.