Volatiles released by pathogenic and nonpathogenic mycobacteria, as well as by mycobacteria-related Nocardia spp., were analyzed. Bacteria were cultivated on solid and in liquid media, and headspace samples were collected at various times during the bacterial lifecycle to elucidate the conditions giving optimal volatile emission. Emitted volatiles were collected by using closed-loop stripping analysis (CLSA) and were analyzed by gas-chromatography-mass-spectrometry. A wide range of compounds was produced, although the absolute amount was small. Nevertheless, characteristic bouquets of compounds could be identified. Predominantly aromatic compounds and fatty-acid derivatives were released by pathogenic/nonpathogenic mycobacteria, while the two Nocardia spp. (N. asteroides and N. africana) emitted the sesquiterpene aciphyllene. Pathogenic Mycobacterium tuberculosis strains grown on agar plates produced a distinct bouquet with different volatiles, while liquid cultures produce less compounds but sometimes an earlier onset of volatile production because of their steeper growth curves under this conditions. This behavior differentiates M. tuberculosis from other mycobacteria, which generally produced fewer compounds in seemingly lower amounts. Knowledge of the production of volatiles by M. tuberculosis can facilitate the rational design of alternative and faster diagnostic measures for tuberculosis.