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

Unable to recognize EXT4 extended partition #18

Open
jeff60301 opened this issue Jan 27, 2024 · 9 comments
Open

Unable to recognize EXT4 extended partition #18

jeff60301 opened this issue Jan 27, 2024 · 9 comments

Comments

@jeff60301
Copy link

Could you add the read and write function of the extended partition to SharpExt4?

@nickdu088
Copy link
Owner

I think it supports extended partition?

@jeff60301
Copy link
Author

4
5

How to read and write the extended partition of 4-11?

@nickdu088
Copy link
Owner

This could be the limitation of lwext4.
https://github.com/nickdu088/SharpExt4/blob/main/lwext4/src/ext4_mbr.c#L104

@nickdu088
Copy link
Owner

nickdu088 commented Jan 27, 2024

If you know the extended partition offset of 4-11, you can manually add those partitions and test.

@jeff60301
Copy link
Author

If you know the extended partition offset of 4-11, you can manually add those partitions and test.

Sorry, I'm not professional about this.

@jeff60301
Copy link
Author

If you know the extended partition offset of 4-11, you can manually add those partitions and test.

Could you add it?

@nickdu088
Copy link
Owner

nickdu088 commented Jan 27, 2024

If you know the extended partition offset of 4-11, you can manually add those partitions and test.

Could you add it?

see here:
https://github.com/nickdu088/SharpExt4/blob/main/SharpExt4/ExtDisk.cpp#L67C1-L73C5

You can add any partition you like.

It only needs offset and size.
https://github.com/nickdu088/SharpExt4/blob/main/SharpExt4/ExtFileSystem.cpp#L208

@ph90119
Copy link

ph90119 commented Jan 27, 2024

When I increase the size of struct ext4_part_entry part_entry, why do I only see the type of the primary partition and the extended partition, and completely fail to find the type of logical partitions under the extended partition?
disk

@nickdu088
Copy link
Owner

nickdu088 commented Jan 27, 2024

When I increase the size of struct ext4_part_entry part_entry, why do I only see the type of the primary partition and the extended partition, and completely fail to find the type of logical partitions under the extended partition? disk

For lwext4 limitation, you'd better ask lwext4 auther to update the library.

What I am asking you is to add more partitions in ExtDisk.cpp (ignoring the lwext4 returns):
https://github.com/nickdu088/SharpExt4/blob/main/SharpExt4/ExtDisk.cpp#L67C1-L73C5
But you should know the partition size and offset.

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

No branches or pull requests

3 participants