SharpExt4 icon indicating copy to clipboard operation
SharpExt4 copied to clipboard

Unable to recognize EXT4 extended partition

Open jeff60301 opened this issue 2 years ago • 9 comments

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

jeff60301 avatar Jan 27 '24 06:01 jeff60301

I think it supports extended partition?

nickdu088 avatar Jan 27 '24 06:01 nickdu088

4 5

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

jeff60301 avatar Jan 27 '24 07:01 jeff60301

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

nickdu088 avatar Jan 27 '24 07:01 nickdu088

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

nickdu088 avatar Jan 27 '24 07:01 nickdu088

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 avatar Jan 27 '24 08:01 jeff60301

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

Could you add it?

jeff60301 avatar Jan 27 '24 09:01 jeff60301

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

nickdu088 avatar Jan 27 '24 09:01 nickdu088

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

ph90119 avatar Jan 27 '24 10:01 ph90119

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.

nickdu088 avatar Jan 27 '24 10:01 nickdu088