Andrew, Here's a patch for partition management: -Centralize msdos mbr detection.(magic detection was made twice : in efi and msdos) -mbr definition moved from efi to genhd -msdos partition code mbr magics removed to use the one above -adding genhd explicit macro used by both -DOS_EXTENDED_PARTITION washing#2 (we don't want magic numbers, do we ?) -Remove use of <= 4 to < DOS_EXTENDED_PARTITION where needed -Trivial doc (so trivial indeed). -Some code washing PS: It runs under !EFI (for the least) Regards, FabF