I have a system installed in 256 GB SSD with the default disk partitioning using MBR. I need to convert to UEFI boot as it is preferred to disable CSM in BIOS to use Intel Rapid Storage capabilities.
df -hPT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 94G 0 94G 0% /dev
tmpfs tmpfs 94G 404K 94G 1% /dev/shm
tmpfs tmpfs 94G 20M 94G 1% /run
tmpfs tmpfs 94G 0 94G 0% /sys/fs/cgroup
/dev/mapper/centos-root xfs 50G 36G 15G 72% /
/dev/sda1 xfs 1014M 525M 490M 52% /boot
/dev/mapper/centos-home xfs 184G 48G 136G 27% /home
tmpfs tmpfs 19G 32K 19G 1% /run/user/1000
(parted) print
Model: ATA INTEL SSDSCKKW25 (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
3 17.4kB 1049kB 1031kB EFI System boot
1 1049kB 1075MB 1074MB xfs Linux filesystem
2 1075MB 256GB 255GB Linux LVM lvm
I was able to convert to convert the disk to GPT easily. However, I cannot accomplish the further steps needed to create the EFI System Partition. Most guides I found suggest shrinking the existing XFS partitions to leave a free space for /boot/efi, however, it is not straightforward to do it as it needs to be done in resque mode, and I'm not sure if it would be enough. Maybe there is some easier way I'm missing?