Convert MBR to GPT without Data Loss Step by Step
Geeks - It is possible to convert an MBR (Master Boot Record) disk to a GPT (GUID Partition Table) disk without losing data, but it is a complex process that should only be attempted by experienced users. Here are the general steps to convert an MBR disk to a GPT disk without losing data:
Back up your important data. This process can be risky, so it's important to make sure you have a backup of your important files in case something goes wrong.
Boot your computer from a Linux live CD or USB drive. This will allow you to access the disk without actually booting into the operating system.
Identify the disk you want to convert. You can use the fdisk or gdisk command to view the partitions on your disk and determine which one you want to convert.
Delete all of the partitions on the disk. This will allow you to create new GPT partitions in the next step.
Create a new GPT partition table on the disk. You can use the gdisk command to create a new GPT partition table on the disk.
Create new partitions on the disk. You can use the gdisk command to create new partitions on the GPT disk. Be sure to create the same number and type of partitions as you had on the MBR disk.
Restore your data to the new partitions. Once you have created the new partitions, you can use a tool like rsync to copy the data from your backup onto the new partitions.
Install a new bootloader. Since the MBR and GPT partitioning schemes are not compatible, you will need to install a new bootloader on the GPT disk. You can use the grub-install command to install the GRUB bootloader on the GPT disk.
Remember, this is a complex process and should only be attempted by experienced users. If you are not confident in your ability to follow these steps, it is recommended that you seek the help of a professional. It is also important to thoroughly test the converted GPT disk to make sure that it is functioning properly before relying on it for important data.