You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logical partitions are not entries in the MBR though. They're constructed from the contents of the extended partition's Extended Boot Records (EBR), which are essentially the same in structure as an MBR and can be parsed with this module as well.
So to read logical partitions, you'd have to read the disk's MBR, then look for a partition entry that's marked as an extended partition container (it's type is 0x05, see lib/partition-types.js), then read that partition's first 512 bytes (the EBR), parse that, then look for additional EBRs in the extended partition. For more detail on how extended / logical partitions work: https://en.wikipedia.org/wiki/Extended_boot_record
I'll add a section about how to do this to the README.
There is currently no support for displaying information about logical partitions within extended partitions.
For example, on a disk image that has 3 primary partitions and two logical contained within an extended partition, parted has the following output:
The text was updated successfully, but these errors were encountered: