Check Partition Type in CentOS 7

To view the partition type in CentOS 7, you can utilize one of the following commands:

  1. Use the lsblk command:
  2. List block devices with filesystem info.
  3. This command will display information about available disks and partitions, including partition types.
  4. Use the fdisk command:
  5. List all disk partitions.
  6. This command will display detailed information about disks and partitions, including the partition type.
  7. Using the parted command:
  8. Display information about the partitions on the system.
  9. This command will provide detailed information about disks and partitions, including partition types.

Please note that these commands may need to be run as the root user or a user with appropriate permissions.

bannerAds