#bios #partition #legacy #table

mbr

Parse legacy mbr partition tables with native Rust

4 releases

Uses old Rust 2015

0.2.2 Jul 25, 2017
0.2.1 Jul 25, 2017
0.2.0 Jul 25, 2017
0.1.0 Jul 21, 2017

#1461 in Filesystem

Download history 7/week @ 2023-11-10 1/week @ 2023-11-17 8/week @ 2023-11-24 11/week @ 2023-12-01 1/week @ 2023-12-08 6/week @ 2023-12-15 9/week @ 2023-12-22 1/week @ 2023-12-29 3/week @ 2024-01-05 1/week @ 2024-01-12 8/week @ 2024-01-19 12/week @ 2024-01-26 7/week @ 2024-02-02 10/week @ 2024-02-09 80/week @ 2024-02-16 100/week @ 2024-02-23

197 downloads per month

MIT license

4KB
72 lines

mbr

A rust crate to read legacy MBR disk partitions

Warning: This crate is early in development and may encounter API changes as it grows. When the version hits 1.x.x the API will be stable

Example Usage

extern crate mbr; let partitions = mbr::partition::read_partitions("/dev/sda");

What about GPT partition tables?

There is a great GPT parsing library created by another author. I'm tracking their API somewhat to ensure applications parsing MBR and GPT tables generally follows the same process.

License

Copyright, 2017 Alexander von Gluck IV Released under the terms of the MIT license.

No runtime deps