CHDMAN(1)
π CHDMAN(1) β the MAME Compressed Hunks of Data manager, bestie edition π
okay so like. the manual name is CHDMAN(1) and this whole page is about one iconic little tool, and honestly? she ate. let's get into it. β¨
πΈ NAME πΈ
chdman β MAME Compressed Hunks of Data (CHD) manager. yes that's really what CHD stands for. (C)ompressed (H)unks of (D)ata. iconic acronym behaviour fr fr. π
π¦ SYNOPSIS π¦
chdman option
that's it. that's the whole vibe. one option, she does the thing. π
β¨ DESCRIPTION β¨
chdman is the (C)ompressed (H)unks of (D)ata (CHD) manager for MAME. she's the tool that manages CHD images. that's the whole job description, no cap. π«Ά
π OPTIONS π
okay bestie listen up, this is the important part. each option lets you use a bunch of switches, and what each switch means is explained down in the SWITCHES section (scroll down, i gotchu). and here's the tea: whenever a short form of a switch is listed, you can just use the long form instead. same energy, different letters. π
help [option]β prints a summary of all the available options. and if you pass option, she gives you a detailed list of all the valid switches for that option. like a lil personalized tour. π§info -i filename [-v]β dumps the header information out of a drive image. just the header. the receipts, if you will. πverify -i filename [-ip filename]β validates the MD5/SHA1 on a drive image. yes bestie she WILL check those hashes. πcreateraw -o filename [-op filename] [-f] -i filename [-isb offset] [-ish offset] [-ib length] [-ih length] -hs bytes -us bytes [-c none|type1[,[...]]] [-np processors]β creates a brand new compressed raw image from a raw file. β¨createhd -o filename [-op filename] [-f] [-i filename] [-isb offset] [-ish offset] [-ib length] [-ih length] [-hs bytes] [-c none|type1[,[...]]] [-chs cylinders,heads,sectors] [-ss bytes] [-np processors]β creates a brand new compressed hard disk image from a raw file. hard disk girlies rise π«Άcreatecd -o filename [-op filename] [-f] -i filename [-hs bytes] [-c none|type1[,[...]]] [-np processors]β creates a brand new compressed CD image from a raw file. πΏcreateld -o filename [-op filename] [-f] -i filename [-isf offset] [-if length] [-hs bytes] [-c none|type1[,[...]]] [-np processors]β creates a brand new compressed laserdisc image from a raw file. laserdisc?? retro queen behaviour. πextractraw -o filename [-f] -i filename [-ip filename] [-isb offset] [-ish offset] [-ib length] [-ih length]β extracts a raw file out of a CHD image. πextracthd -o filename [-f] -i filename [-ip filename] [-isb offset] [-ish offset] [-ib length] [-ih length]β extracts a hard disk block image out of a CHD image.extractcd -o filename [-ob filename] [-f] -i filename [-ip filename]β extracts a CDRDAO.toc/.bin, a CDRWIN.bin/.cue, or a Sega Dreamcast.GDIfile out of a CHD-CD image. three formats, one queen. πextractld -o filename [-f] -i filename [-ip filename] [-isf offset] [-if length]β extracts a laserdisc image out of a CHD-LD image.copy -o filename [-op filename] [-f] -i filename [-ip filename] [-isb offset] [-ish offset] [-ib length] [-ih length] -hs bytes [-c none|type1[,[...]]] [-np processors]β copies all the hunks of data from one CHD file to another. and get this: the hunk sizes do not need to match, she's flexible like that. but heads up β if the source is shorter than the destination, the source data gets padded with0s. no drama, just zeros. πaddmeta -i filename -t tag [-ix index] [-vt text] [-vf filename] [-nocs]β adds metadata to the chd. πdelmeta -i filename -t tag [-ix index]β removes metadata from the chd. bye bestie πdumpmeta -i filename [-o filename] [-f] -t tag [-ix index]β dumps metadata from the chd, either to standard output or to a file. your choice, main character. β¨
π SWITCHES π
these are the lil building blocks that all those options above are made of. memorize them and you're unstoppable, fr fr.
--chs,-chscylinders,heads,sectors β specifies the CHS geometry values for CHD harddisks. π--compression,-cnone|type1[,[...]] β which compression codecs to use. and bestie, it's up to 4 of them. four!! π--force,-fβ force overwriting an existing file. she said MOVE. π--hunksize,-hsbytes β size of each unit, in hunks.--ident,-idfilename β name of the ident file that provides CHS information.--index,-ixindex β the indexed instance of the metadata tag.--input,-ifilename β input file name. the one you're reading from.--inputbytes,-iblength β effective length of the input, in bytes.--inputframes,-iflength β effective length of the input, in frames.--inputhunks,-ihlength β effective length of the input, in hunks.--inputparent,-ipfilename β the parent CHD's input file name.--inputstartbyte,-isboffset β starting byte offset within the input.--inputstartframe,-isfoffset β starting frame offset within the input.--inputstarthunk,-ishoffset β starting hunk offset within the input.--nochecksum,-nocsβ do not include this metadata information in the overall SHA-1. so like, opting out of the checksum party. π--numprocessors,-npcount β limits how many processors get used during compression. multitasking but make it controlled. β‘--output,-ofilename β output file name. the one you're writing to.--outputbin,-obfilename β output binary file name, specifically forextractcd.--outputparent,-opfilename β the parent CHD's output file name.--sectorsize,-ssbytes β size of each hard disk sector.--tag,-ttag β a 4-character tag for metadata. exactly four. no more no less. π―--valuefile,-vffilename β text file containing the data to add.--valuetext,-vttext β the text for the metadata.--unitsize,-usbytes β size of each unit, in bytes.--verbose,-vβ outputs additional information about the operation. she gets chatty. love that for her. π£οΈ
π₯ SEE ALSO π₯
mame(6)mess(6)
go say hi to them too, they're family. π«Ά
and that's the whole page bestie!! this was CHDMAN(1), brought to you by version 0.176, dated 2016-07-21. she's an older queen but she still slays. mwah πβ¨
π¦ where this page comes from
- arch rolling: mame-tools 0.289-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND CC0-1.0 AND GPL-2.0-only AND LGPL-2.1-only AND MIT AND Zlib
- debian bookworm: mame-tools 0.251+dfsg.1-1 Β· BSD-3-Clause
- debian trixie: mame-tools 0.276+dfsg.1-1+deb13u1 Β· BSD-3-Clause
- fedora 43: mame-tools 0.280-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mame-tools 0.289-1.fc43 Β· GPL-2.0-or-later
- fedora 44: mame-tools 0.286-2.fc44 Β· GPL-2.0-or-later
- fedora 44: mame-tools 0.289-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mame 0.287-tools
- nixpkgs unstable: mame 0.289-tools
- opensuse-leap 16.0: mame-tools 0.279-bp160.1.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: mame-tools 0.279-bp160.1.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: mame-tools 0.279-bp160.1.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: mame-tools 0.279-bp160.1.2 Β· BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu jammy: mame-tools 0.242+dfsg.1-1 Β· BSD-3-Clause
- ubuntu noble: mame-tools 0.264+dfsg.1-1 Β· BSD-3-Clause
- ubuntu questing: mame-tools 0.277+dfsg.1-4
- ubuntu questing: mame-tools 0.277+dfsg.1-4ubuntu0.1
- ubuntu resolute: mame-tools 0.285+dfsg1-1 Β· BSD-3-Clause
- ubuntu stonking: mame-tools 0.289+dfsg1-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms