Skip to content

Instantly share code, notes, and snippets.

@midibyte
Created August 27, 2020 07:40
Show Gist options
  • Save midibyte/17c46f287f33cb7a1b4018c3d7dd5e59 to your computer and use it in GitHub Desktop.
Save midibyte/17c46f287f33cb7a1b4018c3d7dd5e59 to your computer and use it in GitHub Desktop.
Create ISO image of PSX disk
#!/bin/bash
#tested on Manjaro 5.7
#adapted from https://pastebin.com/TLJMAU9V
# this directory must already exist
export PSXDIR=$HOME/psxISO
if [ $1 -z -o $2 -n ];
then
echo "\nERROR: Invalid usage.\n"
echo "\n Usage: psxrip [filename]\n"
echo "\n where filename is the desired name, minus extensions.\n"
fi
cd /usr/bin
./cdrdao read-cd --read-raw --datafile $PSXDIR/$1.bin --device /dev/sr0 --driver generic-mmc-raw $PSXDIR/$1.cue
bchunk $1.bin $1.cue $1.iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment