The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

NAME

Data::ParseBinary::FileSystem::MBR - Parsing the partition table

SYNOPSIS

my $data = $mbr_parser->parse(CreateStreamReader(File => $fh));

Can parse the binary structure of the MBR. (that is the structure that tells your computer what partitions exists on the drive) Getting the data from there is your problem.

This is a part of the Data::ParseBinary package, and is just one ready-made parser. please go to the main page for additional usage info.