Skip to content
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

Fix for skipping OEM partitions #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jpmorrison
Copy link

I updated ldm.c to check other partitions for the LDM signature.
The drive has an OEM/Dell partition which Windows handles but confuses the tool

ldmtool now finds the disk and seems to work

disk1 : start=          63, size=      176652, type=de
disk2 : start=      176715, size=   976594357, type=42
disk3 : start=   976771072, size=  2930255872, type=42, bootable
disk4 : start=  3907026944, size=         176, type=42


@rwmjones
Copy link
Collaborator

The problem with this patch is the "FIXME" and the printf's ...

@rwmjones
Copy link
Collaborator

So looks better, but I don't really know enough about this code to review it on my own. Would like to hear others' opinions.

g_set_error(err, LDM_ERROR, LDM_ERROR_NOT_LDM,
"%s does not contain LDM metadata", path);
return FALSE;
default:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're mixing tabs and spaces in these 3 lines.

@jpmorrison
Copy link
Author

jpmorrison commented Mar 26, 2021

So looks better, but I don't really know enough about this code to review it on my own. Would like to hear others' opinions.

There's only four primary partitions on MBR so it works.

More details on LDM/MBR here
TalAloni/DynamicDiskPartitioner#1

similar fix
TalAloni/DynamicDiskPartitioner@c9f4d55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants