Ever wondered how you could reduce the size of your PlayStation
ROM collection globbing your hard drive space and preventing you
from hoarding the libraries of other, worse better consoles?
Learnt about the wonders of the CHD file format, but tried to
search how to convert your poor BIN/CUE files to this amazing
format only to end up on a sea of Windows-only tutorials?
Well, you don't have to wait anymore, because with the secrets I learned by converting some ROMs I had on my PaRappa the Rapper game archive you can now convert your games to CHD and immensely reduce the size of your collection while preserving the quality of the original discs, allowing you to store even more VIDYA!
While this tutorial is specifically focused on PlayStation games, it can also be applied to PlayStation 2 titles, and ostensibly to Sega Dreamcast ones as well.
The tool that will allow you to make all of this possible is called chdman. It is developed by MAME, and like its title, it allows you to manage CHD files. In most *nix systems, it should be included with the MAME package, so it's time to CTRL+ALT+T that terminal and type in the following:
sudo apt/dnf install mame
However, there are two major distros and one operating system where installing the mame package does NOT install chdman as well - Debian (and it's non-Ubuntu derivatives), Arch and FreeBSD. In the two distros, you want to install mame-tools instead.
sudo apt install/pacman -S mame-tools
And on FreeBSD, you want to be building MAME from ports.
In order to get chdman, you'll need to enable the TOOLS option for
the port.
If you use Poudriere to manage your ports, it should just take the
following commaand:
sudo/doas poudriere options -j JAIL-NAME -c emulators/mame
Then enable the TOOLS option from the screen that will appear to you.
If you don't use Poudriere, start using it. Seriously. It'll make your life much easier.
Once it builds, just use sudo/doas pkg install mame.
After this step, it's time to actually convert your files.
Enter the directory where your ROMs are located, whether through
cd or by right clicking on your desktop enviroment's file manager
and clicking on "Open terminal here" and follow this command.
chdman createcd -i 'PaRappa The Rapper (Japan).cue' -o 'PaRappa The Rapper (Japan).chd'
Replace 'PaRappa The Rapper (Japan)' for the filename of
whatever game you're planning to convert in both the input (-i)
and output (-o) parts of the command, and make sure to pick the
.cue file!
Once you have this typed, chdman should be hard at work, compressing
your ISO to anywhere from 2/3rds to less than 10% of its original
size depending on the game! Now just plop in your emulator, load
up that sexy CHD file and enjoy!