What is the DISKDEFINES file format?
DISKDEFINES files can be found on Linux LiveCDs and LiveUSB images. README.diskdefines is the standard filename for this file. It contains information about the disc - including its name, architecture, and disc number - and is accessed by the installer. LiveCDs can also be used to boot the system directly from the disc without any installation.
LiveCD
Linux systems can be booted directly without installing to the hard drive. The system is loaded directly into RAM. A booted LiveCD can then be used to install the system on the target storage device. LiveCDs can also be used for system troubleshooting or data recovery.
The file uses C-preprocessor-style #define directives. Typical fields include DISKNAME, ARCH (such as amd64 or arm64), DISKNUM, and TOTALNUM. It is read by Ubiquity (Ubuntu) and Calamares installers to identify the disc, and by ISO creation tools like mkisofs. End users encounter it when browsing the root of a mounted Ubuntu or Debian ISO image.
Security & safety
RISK: LOWA plain-text file with #define directives. Cannot execute; no security risk.
Format details
in a nutshellPrograms that open DISKDEFINES files
Technical details
deep spec| Encoding | Plain text (ASCII or UTF-8) |
| Standard filename | README.diskdefines (placed in the root of the ISO image) |
| Syntax | C-preprocessor-style #define directives |
| Key fields | DISKNAME, TYPE, ARCH, DISKNUM, TOTALNUM; optional OEM and HELPURL |
| Typical size | 200 bytes - 2 KB |
| Developer/adopter | Canonical Ltd. (Ubuntu); Debian Live ecosystem |
| Read by | Ubiquity (Ubuntu installer), Calamares (multi-distro installer), mkisofs/xorriso |
| Introduced | ~2004, with Ubuntu 4.10 (Warty Warthog) and early Debian Live tooling |
| Associated OS | Linux; readable on any OS that can mount ISO/USB media |
| Location in media | Root directory of LiveCD/LiveDVD/LiveUSB ISO image |
| Authorship | Authored by distribution maintainers; static metadata, not generated by end-user software |
| Released | ~2004 (with early Ubuntu / Debian Live CD tooling; diskdefines convention codified in Ubiquity installer) |
| Specification | help.ubuntu.com |
Community Q&A
asked by usersNo questions yet - be the first to ask about DISKDEFINES files.