Tag: psx

Back Up PSX images in Linux

Credit goes to po0f for this. This is his script from the ubuntu forums, I’m just putting it in my blog so I can find it easily. Everything below was written by poOf.

This is a script I wrote to rip PSX images, it might work for others as well. You’ll need cdrdao installed for it to work. First, you need to do a little setup; namely, which CD drive to use (command you type is bolded, don’t really know why sudo access is needed):
Code:


$ sudo cdrdao scanbus
... snipping useless program output ...
ATA:1,0,0 TSSTcorp, CD/DVDW SH-S182M, SB02

We’re interested in the first field of the output, ATA:1,0,0. This is the way cdrdao names the devices. You might have more than one device in the output; just use the one that you will rip PSX CDs with.

Now, the script:
Code:


#!/bin/bash

if [[ -z "$1" ]]; then
echo -e "Usage: `basename $0` "
echo -e "Error: No filename specified."
exit 1
fi

cdrdao read-cd --device ATA:1,0,0 --driver generic-mmc-raw --read-raw --datafile $1.bin $1.toc

exit 0

Save this script as ‘mkpsximage’ in /usr/local/bin and give it execute permission. You’ll need sudo access to do this. (Change the bolded portion to whatever drive you want to use.) When you use the script, you will need to specify a base filename to use for the created BIN/TOC files. Say you were ripping Final Fantasy VII, disc one:

Code:


$ mkpsximage ff7-d1

When the script is finished, you should have two files in the current directory, ‘ff7-d1.bin’ and ‘ff7-d1.toc’.