CHDMan Linux Instructions
Introduction
The file formats to adopt for CDs and other optical supports.
We have talked about a format, derived from researches we had on MAME, in order to be able to represent these supports in a compressed way, without losing the integrity of the data and that these can remain scrappable.
This format is the CHD (Compressed Hunks of Data), datas that could be useful for SEGA CD, PS1, PC Engine...
Unfortunately, the classic user will have difficulties to use the converter, which is a command line executable.
So here is a Zip file, with automated scripts, to convert from BIN+CUE (Redump format) to CHD, and vice versa.
It has been added also for the GDI format, which is for the Dreamcast.
For PS1 games protected by LibCrypt, normally you have SBI (Subchannel Information) files, you keep them and put them with the CHDs, otherwise your games will not pass.
If you ever lose them or make a bad manipulation, these files are available on the files of each corresponding disk at Redump, next to the re-downloadable CUE files.
Software
Some Linux distributions can give you chdman via aptitude with the mame-tools package. Some others don't have any mame-tools and you need to build it:
- Go to https://github.com/libretro/mame
- Download the content by clicking on the
Codegreen button then, in the visible menu, click onDownload ZIP

- Uncompress the downloaded archive and go inside the extracted directory. You should retrieve the same content than into the given link in the first step.
- From your, use this command:
make tools
- At the end, you should be able to find chdman into the
builddirectory.
Here is a link to download files to automate format conversions:
In this zip you will find 6 files:
| File name | Description |
|---|---|
| ConvertFromChdToCue.sh | A .sh file that allows you to convert your CHD roms to BIN/CUE format. |
| convertFromChdToGdi.sh | A .sh file that allows you to convert your CHD roms to GDI format. |
| convertFromChdToIso.sh | A .sh file that allows you to convert your CHD roms to ISO format. |
| convertFromCueToChd.sh | A .sh file that allows you to convert your BIN/CUE roms to CHD. |
| convertFromGdiToChd.sh | A .sh file that allows you to convert your GDI roms to CUE. |
| convertFromIsoToChd.sh | A .sh file that allows you to convert your ISO roms to CUE. |
| README_EN.txt | |
| README_FR.txt |
Contents of the readme file
-
convertFromChdToCue.sh
Decompresses a CHD (V5) file into a BIN+CUE file.
The CUE format is used by games on CD. CHD is supported by 3DO, Amiga CD32, Amiga CDTV, Dreamcast, Mega CD, Neo-Geo CD, PC Engine CD, PlayStation and Saturn. -
convertFromChdToGdi.sh
Decompresses a CHD (V5) file into a GDI file.
The GDI format is used by disk-based games for Dreamcast. -
convertFromChdToIso.sh
Decompresses a CHD (V5) file into an ISO file.
The ISO format is used by disk-based games for PlayStation 2. -
convertFromCueToChd.sh
Compresses any type of BIN disk files with a CUE header to the CHD (v5) format. Searches all subfolders and creates CHD (v5) files in the folder where the files are placed with CHDMAN.
-
convertFromGdiToChd.sh
Compresses any type of BIN disk files with a GDI header to the CHD (v5) format. The GDI format is used by disk-based games for Dreamcast.
-
convertFromIsoToChd.sh
Compresses any type of BIN disk files with a ISO header to the CHD (v5) format. The ISO format is used by disk-based games for PlayStation 2.
Automated use
Convert your game from BIN/CUE to CHD
-
Put "convertFromCueToChd.sh" in the folder containing your game as below.
Example for the game "Grandia (France)" : -
In your Terminal, execute the file with the command
./convertCueToChd.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromCueToChd.sh", your rom is ready.
Convert your game from GDI to CHD
-
Put "convertFromGdiToChd.sh" in the folder containing your game as below.
Example for the game "Resident Evil - Code - Veronica (France)" : -
In your Terminal, execute the file with the command
./convertFromGdiToChd.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromGdiToChd.sh", your rom is ready.
Convert your game from ISO to CHD
-
Put "convertFromIsoToChd.sh" in the folder containing your game as below.
Example for the game "Shadow of the Colossus (Europe, Australia) (En,Fr,De,Es,It)" : -
In your Terminal, execute the file with the command
./convertFromIsoToChd.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromIsoToChd.sh", your rom is ready.
Convert your game from CHD to BIN/CUE
-
Put "convertFromChdToCue.sh" in the folder containing your game as below.
Example for the game "Grandia (France)" : -
In your Terminal, execute the file with the command
./convertFromChdToCue.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromChdToCue.sh", your rom is ready.
Convert your game from CHD to GDI
-
Put "convertFromChdToGdi.sh" in the folder containing your game as below.
Example for the game "Resident Evil - Code - Veronica (France)" : -
In your Terminal, execute the file with the command
./convertFromChdToGdi.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromChdToGdi.sh", your rom is ready.
Convert your game from CHD to ISO
-
Put "convertFromChdToIso.sh" in the folder containing your game as below.
Example for the game "Shadow of the Colossus (Europe, Australia) (En,Fr,De,Es,It)" : -
In your Terminal, execute the file with the command
./convertFromChdToIso.shto start the conversion. -
Once your Terminal window has finished, your conversion is complete.
-
You can delete "convertFromChdToIso.sh", your rom is ready.
Create the .M3U file
In CHD conversion for multi-disk games, you have to make a M3U file to declare all the disks.
The .M3U file is a list of the different CDs for a game that allows you to switch from one CD to another in a simple way by using the disc change combination (Hotkey + L. STICK to the LEFT or to the RIGHT).
Example for the game "Grandia (France)":
- Create a
M3Ufile via Notepad++ named "Grandia (France).m3u". - In the file, fill in the
CHDfiles of the game:
Grandia (France) (Disc 1).chd
Grandia (France) (Disc 2).chd
- On Windows, you must have the extension view enabled to create this file:
- Go to
Viewat the top of the Windows Explorer window. - Check "File name extensions" at the top right.
- Go to

- Confirm the extension change

No comments to display
No comments to display