Opened 10 years ago

Closed 8 years ago

#11033 closed enhancement (invalid)

Missing types for extended partition

Reported by: Anarchos Owned by: nobody
Priority: low Milestone: R1
Component: File Systems Version: R1/Development
Keywords: intel extended partition Cc:
Blocked By: Blocking:
Platform: x86

Description

See patch.

Attachments (1)

patch (1.0 KB ) - added by Anarchos 10 years ago.

Download all attachments as: .zip

Change History (7)

by Anarchos, 10 years ago

Attachment: patch added

comment:1 by Anarchos, 10 years ago

patch: 01

comment:2 by Anarchos, 10 years ago

According to wikipedia (http://en.wikipedia.org/wiki/Extended_boot_record) : « The partition type of an extended partition is 0x05 (CHS addressing) or 0x0F (LBA addressing).» And «Similar, Linux supports the concept of a second extended partition chain with type 0x85 — this type is hidden (unknown) for other operating systems supporting only one chain.»

So i think we should add 0x05 and 0x85 to the extended partition types.

comment:3 by korli, 10 years ago

This list is looked up by name, what's the need to add entries for a name already in the list?

comment:4 by pulkomandy, 10 years ago

Our extended partition handler probably doesn't support CHS addressing, and there would be little use for that as CHS can only handle hard disks up to 8GB in size (and on such small disks you don't really have use for extended partitions anyway).

What problem are you trying to solve? Do you have a disk with partitions using these types? Which tool generated that?

comment:5 by Anarchos, 10 years ago

When i lost partitions, testdisk recreated some with 0x05 type. So i guess it was a good idea to add those types to the list of extended partition types.

comment:6 by pulkomandy, 8 years ago

Resolution: invalid
Status: newclosed

The list you changed is used only when creating partitions, so there should be only one entry for each name. Since we don't support creating CHS partitions, the 0xF type is the correct one and the one that should be used when creating partitions. When reading existing partitions from a disk, the other list above is used, and this one already does include these extra types (and a lot more).

Closing as invalid, then.

Note: See TracTickets for help on using tickets.