Skip to content

Latest commit

 

History

History
223 lines (146 loc) · 5.32 KB

File metadata and controls

223 lines (146 loc) · 5.32 KB

Usage Guide

This guide covers day-to-day PartBoot usage. For build and release workflows, see the Developer Guide.

Safe Test Partition

Use a separate disposable partition for PartBoot testing.

Recommended first target:

  • Filesystem: NTFS.
  • Size: 16-64 GB.
  • Example root: H:\partboot.

Do not use a partition that contains personal files, an installed operating system, recovery media, or the target location for a Linux installation.

Filesystem notes:

Filesystem Use
NTFS Best first Windows test target; supports large ISO files.
FAT32 Useful for EFI experiments; cannot store files larger than 4 GB.
ext4 Useful for Linux-first testing; awkward to manage from Windows.

Directory Layout

PartBoot creates this layout under the selected root:

H:\partboot
  isos\        ISO images
  cache\       downloaded or cached EFI binaries
  extracted\   extracted boot files
  profiles\    per-ISO boot profiles
  efi\         staged EFI files
  generated\   generated GRUB menu

Quick Workflow

Run the interactive wizard:

partboot start

Review generated files, then install staged EFI files:

partboot install-esp --root H:\partboot --esp S:\ --force
partboot boot-instructions --esp S:\

Use --dry-run instead of --force when validating the target paths:

partboot install-esp --root H:\partboot --esp S:\ --dry-run

Command Reference

start

Run the guided TUI workflow.

partboot start [--include-diagnostics] [--dry-run-install]

init

Create the PartBoot directory layout.

partboot init --root H:\partboot

scan

Scan isos\ and create missing profiles.

partboot scan --root H:\partboot
partboot scan --root H:\partboot --json

extract

Extract boot files from an ISO.

partboot extract --root H:\partboot --iso ubuntu-24.04-desktop-amd64.iso

The ISO can be a name inside isos\ or a full path.

volume-id

Print the partition identifier to use in generated GRUB menus.

partboot volume-id --drive H:

For NTFS, use the full NTFS serial. Short serials such as 12B8CF0C are rejected because GRUB expects the full identifier, for example 9412B8E612B8CF0C.

generate-menu

Generate generated\grub.cfg.

partboot generate-menu --root H:\partboot --partition-uuid 9412B8E612B8CF0C --partition-label PARTBOOT
partboot generate-menu --root H:\partboot --partition-uuid 9412B8E612B8CF0C --include-diagnostics
partboot generate-menu --root H:\partboot --partition-uuid 9412B8E612B8CF0C --json

stage-efi

Stage EFI files without writing to a real EFI system partition.

partboot stage-efi --root H:\partboot --grub-x64 C:\tmp\grubx64.efi --boot-x64 C:\tmp\bootx64.efi

install-esp

Copy staged EFI files to an EFI system partition. The command requires either --dry-run or --force.

partboot install-esp --root H:\partboot --esp S:\ --dry-run
partboot install-esp --root H:\partboot --esp S:\ --force

install-fallback

Copy the loader to the UEFI fallback path EFI\Boot\bootx64.efi.

partboot install-fallback --root H:\partboot --esp S:\ --dry-run
partboot install-fallback --root H:\partboot --esp S:\ --force

boot-instructions

Print the firmware boot path.

partboot boot-instructions --esp S:\

doctor

Check common setup issues.

partboot doctor --root H:\partboot
partboot doctor --root H:\partboot --esp S:\
partboot doctor --root H:\partboot --esp S:\ --json

guided-test-flow

Run scan, extraction, menu generation, and EFI staging in one command.

partboot guided-test-flow --root H:\partboot --esp S:\ --partition-uuid 9412B8E612B8CF0C --partition-label PARTBOOT

Optional flags:

  • --iso <name>: process one ISO.
  • --include-diagnostics: include diagnostic menu entries.
  • --dry-run-install: validate install steps without copying to the ESP.
  • --json: print machine-readable output.

recommend-test-partitions

Print safe test-partition guidance.

partboot recommend-test-partitions

Supported ISO Families

Generated GRUB entries are supported for:

  • Ubuntu-style Casper live ISOs.
  • Debian and Kali live ISOs.
  • Arch live ISOs.
  • Fedora live ISOs.
  • Most GRUB-compatible Linux live distributions with compatible boot paths.

Detected but not supported yet:

  • Windows installer ISOs.
  • Unknown ISOs without explicit boot profiles.

Troubleshooting

Cannot find 7z

Install 7-Zip or set PARTBOOT_7Z_PATH:

$env:PARTBOOT_7Z_PATH = "C:\Program Files\7-Zip\7z.exe"

Partition is not detected

  • Confirm the partition is mounted and visible in File Explorer.
  • Use a drive-letter path such as H:\partboot.
  • Prefer NTFS for the first test partition.

Generated menu has no entries

  • Place ISO files in partboot\isos\.
  • Use live desktop ISO variants when testing Ubuntu-style images.
  • Run partboot scan --root H:\partboot and confirm the ISO family is detected.

Ubuntu shows shutdown errors

This can happen with ISO boot modes because the live session still depends on files from the ISO during shutdown. Save your work and shut down normally; avoid force resets unless the system is already stuck.