Skip to content

Instantly share code, notes, and snippets.

@yoosefi
Created December 7, 2018 01:26
Show Gist options
  • Save yoosefi/4262e33dda6f24a847cef09f16d11dad to your computer and use it in GitHub Desktop.
Save yoosefi/4262e33dda6f24a847cef09f16d11dad to your computer and use it in GitHub Desktop.
raw psx cd dump, including bad sectors (their copy protection)
#!/bin/bash
# raw psx cd dump, including bad sectors (their copy protection)
# Usage: ./psxrip.sh GAME_NAME
umount /dev/sr0 2> /dev/null
set -e
cdrdao read-cd --read-raw --read-subchan rw_raw --datafile ${1}.bin --device /dev/sr0 --driver generic-mmc-raw ${1}.toc
toc2cue ${1}.toc ${1}.cue 2> /dev/null
rm ${1}.toc
eject /dev/sr0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment