#disk-image #mbr #partitioning #virtualization

app partymix

Combines filesystem images into a disk image with MBR

1 stable release

new 1.0.0 Jan 31, 2025

#184 in Filesystem

MIT license

14KB
299 lines

partymix

crates.io license tests

A tool for combining filesystem images into a disk image with a Master Boot Record (MBR).

Usage

$ partymix OUTPUT [[+]TYPE=IMAGE ...]
  • The + sign indicates whether the partition is active or not.
  • TYPE is either the hex value of the partition type or one of the supported aliases.
  • IMAGE is the path to the filesystem image.

Supported Partition Aliases

The following partition type aliases are supported:

  • fat12 (0x01)
  • fat16 (0x04)
  • ntfs (0x07)
  • fat32 (0x0B)
  • linuxswap (0x82)
  • linux (0x83)
  • efi (0xEF)

Example

The following command creates a disk image with a FAT32 boot partition and a Linux root partition:

$ partymix disk.img +fat32=boot.img linux=root.img

License: MIT

No runtime deps