Thread: ePSXe on Linux
View Single Post
Old August 1st, 2006   #4 (permalink)
brettb
Registered User
 
Join Date: Aug 2006
Location: 127.0.0.1
Posts: 4
This is a little script I wrote to rip psx games. You can
probably find other uses for it though. First of all, you'll
need cdrdao and bin2iso installed.

Once that's done, you'll need to scan your optical drives
to see how cdrdao names them:
Code:
$ cdrdao scanbus
<snip>
ATA:1,0,0      MAT****A, DVD-ROM SR-8175, G228
Your output will be different, depending on your actual drives.
What we're interested in is the first section of the output, in
this case ATA:1,0,0. Remember that. Now, on to the script:
Code:
#!/bin/bash
cdrdao read-cd --device ATA:1,0,0 --driver generic-mmc-raw --read-raw \
 --datafile $1.bin $1.toc;
rm $1.toc;
bin2iso $1.cue -c $1.bin
Replace the device id with whatever one you prefer for ripping.
Save that file as 'mkbincue', or whatever you want really.
Move it to the directory where you save you psx images.
Now chmod it:
Code:
$ chmod +x mkbincue
What that does is let you eXecute that script. Now for an
example:
Code:
$ ./mkbincue ff7d1
You have to type that './' in front of the name for it to work
(unless the directory you're in is in your PATH, but anyway..).
The lone argument this script takes will end up being the
name of the bin/cue pair that will be created, in this case
Final Fantasy 7, disc 1.

If you need more info, post back.
brettb is offline   Reply With Quote