Check Partition Type in CentOS 7
To view the partition type in CentOS 7, you can utilize one of the following commands:
- Use the lsblk command:
- List block devices with filesystem info.
- This command will display information about available disks and partitions, including partition types.
- Use the fdisk command:
- List all disk partitions.
- This command will display detailed information about disks and partitions, including the partition type.
- Using the parted command:
- Display information about the partitions on the system.
- 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.