-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[issue]: "Error message: <MBR check failed>" for manually created GPT partitions + restored Ventoy GPT partition images #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@steve6375 Surprisingly, even if I use GPT, I get: |
Ventoy checks for special signature bytes in MBR sector LBA 0 - otherwise it is not recognised as a Ventoy drive |
Thank you.
Thank you for updating your comments about this in #2605 |
Device Start End Sectors Size Type You can see from the partition table that ptn1 starts at LBA 2048 (must start here) and ptn2 starts as 66104. A disk image will restore all sectors from 0 to the end of the disk (or end of last partition?). A GPT disk contains an LBA 0 MBR which is there for compatibility. It also contains a sort of pseudo-partition table in that LBA 0 first sector. Normally a GPT MBR partition table just points to a large 'partition' which is actually the whole GPT 'area' (that may itself contain one or more GPT partitions). As I said before - you need to modify the bytes in LBA 0 to match those used by ventoy (from byte 0 to byte 0x1BD). P.S. I think I said ptn 1 should start at 1024 before - I should have said LBA 2048 (sorry, getting old!). |
Thank you for updating #2605 (comment) |
Alright. I'll try to find out how to do that.
|
The MBR is short for the master boot record, the MBR can still be present on a GPT disk for legacy booting. So I don't understand your last post. |
Thanks for a thorough explanation! Now I really understand what it's all about. I wouldn't have asked my question if I knew all this. |
Very useful information, I'm lucky to get help from you. Where did you learn all this? Are you a Ventoy developer? |
I added this to the top post. |
I am the author of Easy2Boot (my icon kind of gives you a clue!) |
Official FAQ
Ventoy Version
1.0.95
What about latest release
Yes. I have tried the latest release, but the bug still exist.
Try alternative boot mode
Yes. I have tried them, but the bug still exist.
BIOS Mode
Legacy BIOS Mode
Partition Style
GPT
Disk Capacity
16GB
Disk Manufacturer
Kingston
Image file checksum (if applicable)
Yes.
Image file download link (if applicable)
No response
What happened?
Official FAQ
Ventoy Version
1.0.95
What about latest release
Yes. I have tried the latest release, but the bug still exist.
Try alternative boot mode
Yes. I have tried them, but the bug still exist.
BIOS Mode
UEFI Mode
Partition Style
GPT
Disk Capacity
16GB
Disk Manufacturer
Kingston
Image file checksum (if applicable)
Yes.
Image file download link (if applicable)
No response
Test case
Before you post comments, please read about the proposed solution at:
Note: What I learned from steve6375 in the comment discussion after I filed this issue:
USB Flash Drive 1
Let's call this device: /dev/sdb
Install Ventoy on a USB drive with the following settings:
Note, this is just an example, you must generate a table for your own device!
USB Flash Drive 2
Let's call this device: /dev/sdc
Test the disk image (working)
Test the partition images (does not working)
Create two new partitions are identical to the partitions in /dev/sdb:
sudo fdisk /dev/sdb
then type "p" like stated in the previous section).Proposed solution
Avoid MBR check if Ventoy is booting GPT.
The text was updated successfully, but these errors were encountered: