How pbatard/rufus works
Rufus is a Windows utility for formatting removable or virtual media and producing bootable installation drives. The principal workflow is user configuration, media and image selection, filesystem formatting, boot-media installation, optional Windows customization or persistence setup, validation, and delivery to the target drive. The tree shows dedicated ISO, WIM, archive, filesystem, boot-sector, and device layers. Some orchestration details are inferred from documented capabilities because the main implementation excerpts were not provided.
Main entry points: rufus.c Rufus Controller · dev.c Device I/O · format.c Format Engine · ui.c Desktop UI
Components 25
Control and UI
- Rufus Controller
src/rufus.c - Desktop UI
src/ui.c - Settings State
src/settings.h - Localization
src/localization.c
Media Preparation
- Drive Manager
src/drive.c - Device I/O
src/dev.c - Format Engine
src/format.c - FAT Formatter
src/format_fat32.c - Ext Formatter
src/format_ext.c - Bad Blocks
src/badblocks.c
Image and Content
- ISO Reader
src/libcdio/iso9660/iso9660_fs.c - WIM Engine
src/wimlib/wim.c - Archive Decoder
src/bled/bled.c - Virtual Image Writer
src/vhd.c - Image Checksums
src/hash.c
Boot and Validation
- Boot Installer
src/syslinux.c - Boot Sectors
src/ms-sys/fat32.c - UEFI Validation
src/efi.h - Windows Customization
src/wue.c
External Integrations
- Image Downloader
src/net.c - Drive Diagnostics
src/smart.c
Other components
- User
- Target Media
- Source Image
- Microsoft Services
Connections 30
- User → Desktop UI: configures
- Desktop UI → Rufus Controller: dispatches
- Rufus Controller → Settings State: reads state
- Desktop UI → Localization: loads text
- Rufus Controller → Drive Manager: selects media
- Drive Manager → Device I/O: accesses device
- Rufus Controller → Format Engine: formats media
- Format Engine → FAT Formatter: formats FAT
- Format Engine → Ext Formatter: formats ext
- Format Engine → Device I/O: writes filesystem
- Rufus Controller → ISO Reader: reads ISO
- Rufus Controller → WIM Engine: processes WIM
- Rufus Controller → Archive Decoder: decodes archives
- Rufus Controller → Image Checksums: computes checksums
- Rufus Controller → Virtual Image Writer: writes images
- Rufus Controller → Boot Installer: installs boot
- Boot Installer → Boot Sectors: writes sectors
- Boot Installer → Device I/O: writes boot data
- Rufus Controller → Windows Customization: customizes Windows
- Rufus Controller → Bad Blocks: checks blocks
- Bad Blocks → Device I/O: tests device
- Rufus Controller → UEFI Validation: validates UEFI
- Rufus Controller → Drive Diagnostics: queries health
- Rufus Controller → Image Downloader: downloads images
- Image Downloader → Microsoft Services: retrieves media
- Source Image → ISO Reader: provides ISO
- Source Image → WIM Engine: provides WIM
- Source Image → Archive Decoder: provides archive
- Device I/O → Target Media: writes target
- UEFI Validation → Target Media: checks boot