need to convert mbr to gpt without data loss, non boot drive

bedouinbro

Well-Known Member
Joined
Feb 6, 2024
Messages
44
i need to convert the E drive which is in mbr format to gpt without losing the data on it, its a non boot drive, how do I do it ?
 
To convert your E drive from MBR (Master Boot Record) to GPT (GUID Partition Table) without losing any data, you can use Windows' built-in tools or third-party software. Since it's a non-boot drive, you're in good shape. Here's how you can do this with both methods:

Method 1: Using Windows Command Prompt (Diskpart)​

  1. Open Command Prompt:
    • Press Win + X and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)".
    []Run Diskpart:
    • Type diskpart and press Enter.
    [
    ]List Disks:
    • Type list disk and press Enter.
    • Identify the disk number that corresponds to your E drive.
    []Select the Disk:
    • Type select disk X (replace X with the disk number) and press Enter.
    [
    ]Convert to GPT:
    • Type convert gpt and press Enter.
    • If there are any issues, you might see a message stating that you need to delete the existing partitions. Since you want to avoid data loss and this step can often cause data loss, do not proceed with this method if you see that message.

      Method 2: Using AOMEI Partition Assistant​

      AOMEI Partition Assistant is a reliable third-party tool for partition management that allows you to convert MBR to GPT without data loss.
    []Download and Install:
    • Download AOMEI Partition Assistant from the official website and install it.
    [
    ]Launch the Software:
    • Open AOMEI Partition Assistant.
    []Find Your Drive:
    • Locate your E drive from the list of drives.
    [
    ]Convert to GPT:
    • Right-click on the E drive and select "Convert to GPT".
  2. Apply Changes:
    • Click on the "Apply" button to perform the conversion.

      Important Notes​

    • Backup Your Data: It's always a good practice to back up your data before making changes to your drive's partition style, just in case something goes wrong.
  • Check for Errors: After conversion, ensure to check that your data is intact. You can do this by navigating through the files on your E drive.
  • Disk Format: Make sure your E drive is not the system/boot drive; otherwise, converting it could lead to issues. By following these methods, you should be able to convert your non-boot E drive to GPT without any data loss. If you're unsure about any step or the software, feel free to ask!
 
PS C:\Users\Mehdi> mbr2gpt /validate /disk:1 /allowFullOS

MBR2GPT: Attempting to validate disk 1

MBR2GPT: Retrieving layout of disk

MBR2GPT: Validating layout, disk sector size is: 512 bytes

Disk layout validation failed for disk 1

PS C:\Users\Mehdi>
 
PS C:\Users\Mehdi> mbr2gpt /validate /disk:1 /allowFullOS

MBR2GPT: Attempting to validate disk 1

MBR2GPT: Retrieving layout of disk

MBR2GPT: Validating layout, disk sector size is: 512 bytes

Disk layout validation failed for disk 1

PS C:\Users\Mehdi>
 
@ChatGPT Clonezilla .. but admittedly AOEMI must be pretty good if it's built into your training data.
 
The error message "Disk layout validation failed for disk 1" indicates that the mbr2gpt tool encountered a problem with the disk layout, preventing the conversion from MBR (Master Boot Record) to GPT (GUID Partition Table). Let’s troubleshoot and resolve this step-by-step.

Why This Happens

mbr2gpt has strict requirements for conversion. These requirements might not be met on the disk you’re trying to convert. Here are some common reasons for failure:
  1. Unsupported Partition Configuration:
    • The disk may have more than three primary partitions or unsupported partition types such as extended or logical partitions.
  2. Insufficient Free Space:
    • GPT conversion requires at least 16 KB of free space at the beginning and the end of the disk.
  3. Disk in Use:
    • The disk might be locked by the operating system or accessed by active programs.

How to Fix It

1. Check Disk Layout

  1. Run the diskpart tool to inspect your disk:
    Code:
    cmd diskpart
  2. Type the following commands:
    Code:
    cmd list disk select disk 1 # Choose the correct disk list partition
    • Verify if the disk has more than three primary partitions or logical/extended partitions.

2. Simplify the Partition Layout

  • If you have more than three primary partitions:
    • Back up the data from unneeded partitions and delete them.
    • Combine logical partitions into a single primary partition, if applicable.

3. Check Free Space

  • Ensure some unallocated space exists at the start and end of the disk.
    • Use Disk Management (diskmgmt.msc) to shrink partitions if possible.
    • Right-click a partition > Shrink Volume.

4. Force Validation

If you’re confident the disk layout meets requirements but it’s still failing:
  1. Use the /allowFullOS and /validate flags together in the following command:
    Code:
    cmd mbr2gpt /validate /disk:1 /allowFullOS
  2. If the layout passes validation, proceed with the conversion:
    Code:
    cmd mbr2gpt /convert /disk:1 /allowFullOS

5. Use Third-Party Tools

If mbr2gpt continues to fail, you can use reliable disk management software that supports non-destructive MBR-to-GPT conversion:
  • EaseUS Partition Master
  • MiniTool Partition Wizard
These tools are user-friendly and handle conversions without requiring manual validation steps.

6. Ensure Non-Boot Drive

Since this is a non-boot drive, you can detach the drive safely and convert it on another system if required. Boot drives usually have stricter rules for conversion.

Important Notes

  • Always back up important data before making changes to your disk layout.
  • GPT is necessary for drives larger than 2 TB or for systems using UEFI.
  • If issues persist, let me know specifics (e.g., number of partitions, drive configuration), and I’ll assist further!
Let me know how it works out!