fix both GPT and MBR manually with UBCD

Talk about anything related to the UBCD, PC troubleshooting etc.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
hanoijolly
Posts: 1
Joined: Wed Aug 24, 2011 10:23 am

fix both GPT and MBR manually with UBCD

#1 Post by hanoijolly » Wed Aug 24, 2011 11:05 am

Hi everyone,

I have a big deal hear. I have a Mac Laptop with 3 partitions :
1) HFS partition for Mac OS 10.6
2) NTFS partition for Windows 7 64bits
3) NTFS partition for my documents

It works thus with both GPT and MBR.
I use rEFIt to switch the system at boot.

Having had troubles with my Windows roaming increasing dramatically (what a pain), i had to increase the size of my 2nd partition after reducing my 3rd partition...

My problem is that my partitionning tool did a mess with the GPT and the MBR (I am a beginner to these systems and I used Easeus to work on the partitions. It was a big mistake)

Now I have the following (in red the erroneous data) :
****************************************
in the GPT
****************************************
Partition Start LBA End LBA Type
1 40 409639 EFI System (FAT) <= the boot sector I guess
<= I miss my Mac OS partition (the entry was suppressed by Easeus)
2 126240768 252067839 Basic Data <= my Windows partition
3 278693928 976773165 Basic Data <= my Documents partition at the right place

****************************************
in the MBR
****************************************
Partition Start LBA End LBA Type
1 1 409639 EE <= The boot sector I guess
2 409640 125976615 AF Mac OS X HFS+ <= My Mac OS partition at the right place etc
2 126240768 252067839 07 NTFS/HPFS <= my Windows partition
3 278693928 976773165 07 NTFS/HPFS <= my Documents partition at the WRONG old place


Refit offers me to automatically copy the content of my GPT to my MBR :
It would give me back access to my "documents" partition but I would loose my MacOS partition.

Could anyone tell me how to manually write in those GPT and MBR to setup both sides ? I heard it would be possible with UBCD...

Thank you in advance for your help.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: fix both GPT and MBR manually with UBCD

#2 Post by Icecube » Thu Aug 25, 2011 4:23 am

Use Testdisk (included in Parted Magic).
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Lieve1942
Posts: 1
Joined: Thu Apr 24, 2025 3:34 pm

Re: fix both GPT and MBR manually with UBCD

#3 Post by Lieve1942 » Thu Apr 24, 2025 3:36 pm

I want to share a little experience, maybe it will be useful to someone.
Recently I had to dig into a hybrid GPT/MBR partition on an old MacBook — there was a triple boot: macOS, Windows and a separate partition for documents. I decided to expand Windows, compressed the documents, and voila — everything went. The partition flew off, rEFIt started to swear, Windows sees one thing, macOS — another, and it's a complete mess.

By the way, I categorically do not recommend using EaseUS for such configurations — it simply deleted one of the entries in GPT, while leaving it in MBR. In the end, it was neither here nor there.

In general, I spent a couple of evenings, and what really helped was gdisk from a bootable flash drive. There you can manually synchronize GPT and MBR, correct sectors, and save everything without losses. A very powerful tool, but requires accuracy.
I often use Overchat AI in my work, because with it the process goes much faster than working manually.

Post Reply