#partition-table #drive #utility #cli #basic #install #important

bin+lib rsdisk

Imagine fdisk but it's a Rust library (and also a cli but that's not so important)

12 releases

0.0.12 Aug 5, 2024
0.0.11 Jul 12, 2024

#1173 in Command line utilities

Download history 500/week @ 2024-06-30 122/week @ 2024-07-07 26/week @ 2024-07-14 67/week @ 2024-07-28 120/week @ 2024-08-04 3/week @ 2024-08-11

191 downloads per month

MPL-2.0 license

26KB
494 lines

rsdisk

Imagine fdisk but it's a Rust library (and also a cli but that's not so important)

WARNING: This is NOT ready for normal use! API is unstable, that's why it's version 0.0.z. Do NOT use it unless you know what you are doing.

Warning 2: rsdisk binary is pretty basic. However it has currently all built-in program functionality implemented. It CAN overwrite your drive's partition table (however it required setting --execute flag, if it's not set all commands are treated as dry-run), so be careful with it! To install it you have to include "build-binary" feature (cargo install rsdisk -F build-binary). I am NOT liable for any damages caused by it. You have been warned.

License switch

Short notice that I've switched license from GPL v3 to MPL v2 since it's more permissive for library usage and I felt it's more appropriate here.

Current features

  • Recognizing GPT or MBR partition table on drive
  • Basic MBR parition table support (currently only limited to reading 4 partition entries)
  • Utility functions that can read drive size in sectors, read drive logical sector size and refresh partition table of given drive.
  • Ok-ayish error handling
  • Basic partition table trait (will def be changed in the future)
  • Ability to extend library to new partitions
  • Very basic cli app

Planned features (non-exhaustive, semi-random order)

  • Making library more stable, aka making it useable
  • Documentation
  • More higher-level functions
  • GPT partition table support
  • CLI/TUI fdisk-like program
  • Support for non-unix operating systems
  • Better testing

Dependencies

~0–455KB