<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pandorawiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=CFWhitman</id>
	<title>Pandora Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://pandorawiki.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=CFWhitman"/>
	<link rel="alternate" type="text/html" href="https://pandorawiki.org/Special:Contributions/CFWhitman"/>
	<updated>2026-05-03T01:42:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.32.0-alpha</generator>
	<entry>
		<id>https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8501</id>
		<title>Creating images of PSX games using Linux</title>
		<link rel="alternate" type="text/html" href="https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8501"/>
		<updated>2011-05-20T20:37:35Z</updated>

		<summary type="html">&lt;p&gt;CFWhitman: /* From the command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This pages describes a rather simple way for creating images for usage with an emulator like [[PSX4Pandora]]. Everything listed here does require the program ''cdrdao'' which is often already installed in common Linux distributions once some burner software is installed.&lt;br /&gt;
&lt;br /&gt;
== From the command line ==&lt;br /&gt;
This command creates a dump of your disc. It also extracts subchannel data which is required for the copy protection of some of the games to work correctly. It saves the image in .bin format and also creates a .toc file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you must know what device name to use for you optical drive. If you are not sure what your drive's Linux device name is, then you can run this command to find out:&lt;br /&gt;
 cdrdao scanbus&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
 Cdrdao version 1.2.3 - (C) Andreas Mueller &amp;lt;andreas@daneb.de&amp;gt;&lt;br /&gt;
 /dev/sr0 : hp      , DVD RW AD-7581S , 4H73&lt;br /&gt;
The first part of the second line, ''/dev/sr0'', is the device name of the only optical drive that cdrdao recognizes on this machine. If you have multiple optical drives, they will each show up here. You can distinguish between them by the description following the colon after the device name. The device here is an HP DVD RW Model AD-7581S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, make sure that your disc is in the drive but not mounted. Assuming that your optical drive is called ''/dev/sr0'', to unmount the drive from the command line you can do this:&lt;br /&gt;
 umount /dev/sr0&lt;br /&gt;
(Of course you should substitute whatever device name you got from previous command.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming again that your optical drive is called ''/dev/sr0'' and you want to name the image ''GAME_NAME'', this is the command you can use to create the image in the current dir:&lt;br /&gt;
 cdrdao read-cd --read-raw --read-subchan rw_raw --datafile GAME_NAME.bin --device /dev/sr0 --driver generic-mmc-raw GAME_NAME.toc&lt;br /&gt;
Of course you have to adjust the parameters according to your desires and your system setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some emulators are finicky and don't like .toc files, or seem to work with some bin/toc file combinations, but not others. Usually .cue files work, so you may want to create a .cue file from the .toc file that cdrdao just made with this command:&lt;br /&gt;
 toc2cue GAME_NAME.toc GAME_NAME.cue&lt;br /&gt;
That will leave both a .toc file and a .cue file in the directory you are working from.&lt;br /&gt;
&lt;br /&gt;
== Useful script ==&lt;br /&gt;
Following is a script doing some useful stuff. It does by default rip the current disc in your drive ''/dev/sr0'' into the folder ''~/psxrip/'' with the name you give as parameter. If the folder does not exist, it is created. It does extract subchannel data by default, saves the image as ''.bin'' and creates a ''.cue''.&lt;br /&gt;
&lt;br /&gt;
You can also copy the following code into a text file and make it executable. To do so, lets assume you named the text file ''psxrip'', then run ''chmod +x psxrip''. For usage information just type ''./psxrip --help''. The script does check if you got the required program installed, if you provided the parameters and all the likes. If you do something that you are not supposed to do, it will print an error message as well as some (hopefully) helpful output.&lt;br /&gt;
&lt;br /&gt;
Here is the script:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #&lt;br /&gt;
 #  This is a script to create a .bin image with corresponding .cue out of your&lt;br /&gt;
 #  PSX game discs as backup and/or for usage with emulators.&lt;br /&gt;
 #&lt;br /&gt;
 #  Run-time requirements: cdrdao&lt;br /&gt;
 #&lt;br /&gt;
 #  This script is partly based upon the &amp;quot;wesnoth-optipng&amp;quot; script from the&lt;br /&gt;
 #  Battle for Wesnoth team.&lt;br /&gt;
 #&lt;br /&gt;
 #  This program is free software; you can redistribute it and/or modify&lt;br /&gt;
 #  it under the terms of the GNU General Public License version 2 or,&lt;br /&gt;
 #  at your option any later version. This program is distributed in the&lt;br /&gt;
 #  hope that it will be useful, but WITHOUT ANY WARRANTY.&lt;br /&gt;
 &lt;br /&gt;
 PSXDIR=$HOME/psxrip&lt;br /&gt;
 DRIVE=/dev/sr0&lt;br /&gt;
 &lt;br /&gt;
 report_absent_tool()&lt;br /&gt;
 {&lt;br /&gt;
 	echo &amp;quot;$1 is not present in PATH. $(basename ${0}) requires it in order to work properly.&amp;quot;&lt;br /&gt;
 	if [ -n &amp;quot;$2&amp;quot; ]; then&lt;br /&gt;
 		echo &amp;quot;You can obtain $1 at &amp;lt;${2}&amp;gt;.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 	exit -1&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 print_help()&lt;br /&gt;
 {&lt;br /&gt;
 cat &amp;lt;&amp;lt; EOSTREAM&lt;br /&gt;
 Script for ripping PSX game discs into .bin files with corresponding .cue files.&lt;br /&gt;
 &lt;br /&gt;
 Usage:&lt;br /&gt;
   $(basename ${0}) [{--outputdir} &amp;lt;value&amp;gt;] [{--drive} &amp;lt;value&amp;gt;] [{--no-subchan] [{--help|-h}] [filename]&lt;br /&gt;
 &lt;br /&gt;
 The parameter [filename] is mandatory. Without it, the script will abort. Plain&lt;br /&gt;
 spaces in the filename are prohibited!&lt;br /&gt;
 &lt;br /&gt;
 Available switches:&lt;br /&gt;
   --drive       Define the device to be used. If this parameter is not&lt;br /&gt;
                 provided, /dev/sr0 will be used.&lt;br /&gt;
 &lt;br /&gt;
   --help / -h   Displays this help text.&lt;br /&gt;
 &lt;br /&gt;
   --no-subchan  Don't extract subchannel data. Subchannel data might be&lt;br /&gt;
                 required for some PSX copy protection though it *could* create&lt;br /&gt;
                 problems. Retry with this parameter set if any problems occur&lt;br /&gt;
                 when trying to use the resulting image.&lt;br /&gt;
 &lt;br /&gt;
   --outputdir   Define the folder in which the resulting image should be saved.&lt;br /&gt;
                 If the folder does not exist, it will be created. If no&lt;br /&gt;
                 --outputdir parameter is given, the folder ~/psxrip will be&lt;br /&gt;
                 used.&lt;br /&gt;
 &lt;br /&gt;
 This tool requires cdrdao (http://cdrdao.sourceforge.net/) to be installed and&lt;br /&gt;
 available in PATH.&lt;br /&gt;
 EOSTREAM&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # go through provided parameters&lt;br /&gt;
 while [ &amp;quot;${1}&amp;quot; != &amp;quot;&amp;quot; ]; do&lt;br /&gt;
 	if [ &amp;quot;${1}&amp;quot; = &amp;quot;--drive&amp;quot; ]; then&lt;br /&gt;
 		DRIVE=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--outputdir&amp;quot; ]; then&lt;br /&gt;
 		PSXDIR=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--nosubchan&amp;quot; ]; then&lt;br /&gt;
 		NOSUBCHAN=&amp;quot;true&amp;quot;&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--help&amp;quot; ] || [ &amp;quot;${1}&amp;quot; = &amp;quot;-h&amp;quot; ]; then&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit 0&lt;br /&gt;
 	elif [ &amp;quot;${2}&amp;quot; != &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
 		echo &amp;quot;ERROR: Inval id usage. Displaying help:&amp;quot;&lt;br /&gt;
 		echo &amp;quot;&amp;quot;&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit -1&lt;br /&gt;
 	else&lt;br /&gt;
 		IMAGENAME=$1&lt;br /&gt;
 		shift&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 # check for required dependencies&lt;br /&gt;
 which cdrdao &amp;amp;&amp;gt; /dev/null ||&lt;br /&gt;
 	report_absent_tool cdrdao 'http://cdrdao.sourceforge.net/'&lt;br /&gt;
 &lt;br /&gt;
 # output recognized parameters&lt;br /&gt;
 echo &amp;quot;Program &amp;quot;$(basename ${0})&amp;quot; called. The following parameters will be used for&amp;quot;&lt;br /&gt;
 echo &amp;quot;creating an image of a PSX disc:&amp;quot;&lt;br /&gt;
 echo &amp;quot;Folder for saving images: &amp;quot;$PSXDIR&lt;br /&gt;
 echo &amp;quot;Drive used for reading the image: &amp;quot;$DRIVE&lt;br /&gt;
 echo &amp;quot;Resulting filenames: &amp;quot;$PSXDIR&amp;quot;/&amp;quot;$IMAGENAME&amp;quot;[.bin|.cue]&amp;quot;&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;Not extracting subchan data.&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
 	echo &amp;quot;Extracting subchan data.&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # check if imagename is defined&lt;br /&gt;
 if [ &amp;quot;$IMAGENAME&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;ERROR: Invalid usage. Found no name for resulting image. Displaying help:&amp;quot;&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	print_help&lt;br /&gt;
 	exit -1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # create dir for resulting image if it does not exist yet&lt;br /&gt;
 if ! [ -d &amp;quot;$PSXDIR&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;outputdir not found, creating folder: &amp;quot;$PSXDIR&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	mkdir -p $PSXDIR&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;starting ripping the disc&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 # final commandline for reading the disc and creating the image&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	cdrdao read-cd --read-raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.toc&lt;br /&gt;
 else&lt;br /&gt;
 	cdrdao read-cd --read-raw --read-subchan rw_raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.toc&lt;br /&gt;
 fi&lt;br /&gt;
 toc2cue $PSXDIR/$IMAGENAME.toc $PSXDIR/$IMAGENAME.cue&lt;br /&gt;
&lt;br /&gt;
== Compressing the images ==&lt;br /&gt;
If you want to compress the images you can try to use the program [http://www.fpsece.net/ PocketISO] via [http://www.winehq.org wine]. There seems to be no native program doing this task in a nice way.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:Emulators]]&lt;/div&gt;</summary>
		<author><name>CFWhitman</name></author>
		
	</entry>
	<entry>
		<id>https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8500</id>
		<title>Creating images of PSX games using Linux</title>
		<link rel="alternate" type="text/html" href="https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8500"/>
		<updated>2011-05-20T13:55:32Z</updated>

		<summary type="html">&lt;p&gt;CFWhitman: /* Useful script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This pages describes a rather simple way for creating images for usage with an emulator like [[PSX4Pandora]]. Everything listed here does require the program ''cdrdao'' which is often already installed in common Linux distributions once some burner software is installed.&lt;br /&gt;
&lt;br /&gt;
== From the command line ==&lt;br /&gt;
This command creates a dump of your disc. It does also extract subchannel data which is required for the copy protection of some of the games to work correctly. It does save the image in .bin format and also does create a .toc file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you must know what device name to use for you optical drive. If you are not sure what your drive's Linux device name is, then you can run this command to find out:&lt;br /&gt;
 cdrdao scanbus&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
 Cdrdao version 1.2.3 - (C) Andreas Mueller &amp;lt;andreas@daneb.de&amp;gt;&lt;br /&gt;
 /dev/sr0 : hp      , DVD RW AD-7581S , 4H73&lt;br /&gt;
The first part of the second line, &amp;quot;/dev/sr0&amp;quot;, is the device name of the only optical drive that cdrdao recognizes on this machine. If you have multiple optical drives, they will each show up here. You can distinguish between them by the description following the colon after the device name. The device here is an HP DVD RW Model AD-7581S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, make sure that your disc is in the drive but not mounted. Assuming that your optical drive is called &amp;quot;/dev/sr0&amp;quot;, to unmount the drive from the command line you can do this:&lt;br /&gt;
 umount /dev/sr0&lt;br /&gt;
(Of course you should substitute whatever device name you got from previous command.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming again that your optical drive is called ''/dev/sr0'' and you want to name the image ''GAME_NAME'', this is the command you can use to create the image in the current dir:&lt;br /&gt;
 cdrdao read-cd --read-raw --read-subchan rw_raw --datafile GAME_NAME.bin --device /dev/sr0 --driver generic-mmc-raw GAME_NAME.toc&lt;br /&gt;
Of course you have to adjust the parameters according to your desires and your system setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some emulators are finicky and don't like .toc files, or seem to work with some bin/toc file combinations, but not others. Usually .cue files work, so you may want to create a .cue file from the .toc file that cdrdao just made with this command:&lt;br /&gt;
 toc2cue GAME_NAME.toc GAME_NAME.cue&lt;br /&gt;
That will leave both a .toc file and a .cue file in the directory you are working from.&lt;br /&gt;
&lt;br /&gt;
== Useful script ==&lt;br /&gt;
Following is a script doing some useful stuff. It does by default rip the current disc in your drive ''/dev/sr0'' into the folder ''~/psxrip/'' with the name you give as parameter. If the folder does not exist, it is created. It does extract subchannel data by default, saves the image as ''.bin'' and creates a ''.cue''.&lt;br /&gt;
&lt;br /&gt;
You can also copy the following code into a text file and make it executable. To do so, lets assume you named the text file ''psxrip'', then run ''chmod +x psxrip''. For usage information just type ''./psxrip --help''. The script does check if you got the required program installed, if you provided the parameters and all the likes. If you do something that you are not supposed to do, it will print an error message as well as some (hopefully) helpful output.&lt;br /&gt;
&lt;br /&gt;
Here is the script:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #&lt;br /&gt;
 #  This is a script to create a .bin image with corresponding .cue out of your&lt;br /&gt;
 #  PSX game discs as backup and/or for usage with emulators.&lt;br /&gt;
 #&lt;br /&gt;
 #  Run-time requirements: cdrdao&lt;br /&gt;
 #&lt;br /&gt;
 #  This script is partly based upon the &amp;quot;wesnoth-optipng&amp;quot; script from the&lt;br /&gt;
 #  Battle for Wesnoth team.&lt;br /&gt;
 #&lt;br /&gt;
 #  This program is free software; you can redistribute it and/or modify&lt;br /&gt;
 #  it under the terms of the GNU General Public License version 2 or,&lt;br /&gt;
 #  at your option any later version. This program is distributed in the&lt;br /&gt;
 #  hope that it will be useful, but WITHOUT ANY WARRANTY.&lt;br /&gt;
 &lt;br /&gt;
 PSXDIR=$HOME/psxrip&lt;br /&gt;
 DRIVE=/dev/sr0&lt;br /&gt;
 &lt;br /&gt;
 report_absent_tool()&lt;br /&gt;
 {&lt;br /&gt;
 	echo &amp;quot;$1 is not present in PATH. $(basename ${0}) requires it in order to work properly.&amp;quot;&lt;br /&gt;
 	if [ -n &amp;quot;$2&amp;quot; ]; then&lt;br /&gt;
 		echo &amp;quot;You can obtain $1 at &amp;lt;${2}&amp;gt;.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 	exit -1&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 print_help()&lt;br /&gt;
 {&lt;br /&gt;
 cat &amp;lt;&amp;lt; EOSTREAM&lt;br /&gt;
 Script for ripping PSX game discs into .bin files with corresponding .cue files.&lt;br /&gt;
 &lt;br /&gt;
 Usage:&lt;br /&gt;
   $(basename ${0}) [{--outputdir} &amp;lt;value&amp;gt;] [{--drive} &amp;lt;value&amp;gt;] [{--no-subchan] [{--help|-h}] [filename]&lt;br /&gt;
 &lt;br /&gt;
 The parameter [filename] is mandatory. Without it, the script will abort. Plain&lt;br /&gt;
 spaces in the filename are prohibited!&lt;br /&gt;
 &lt;br /&gt;
 Available switches:&lt;br /&gt;
   --drive       Define the device to be used. If this parameter is not&lt;br /&gt;
                 provided, /dev/sr0 will be used.&lt;br /&gt;
 &lt;br /&gt;
   --help / -h   Displays this help text.&lt;br /&gt;
 &lt;br /&gt;
   --no-subchan  Don't extract subchannel data. Subchannel data might be&lt;br /&gt;
                 required for some PSX copy protection though it *could* create&lt;br /&gt;
                 problems. Retry with this parameter set if any problems occur&lt;br /&gt;
                 when trying to use the resulting image.&lt;br /&gt;
 &lt;br /&gt;
   --outputdir   Define the folder in which the resulting image should be saved.&lt;br /&gt;
                 If the folder does not exist, it will be created. If no&lt;br /&gt;
                 --outputdir parameter is given, the folder ~/psxrip will be&lt;br /&gt;
                 used.&lt;br /&gt;
 &lt;br /&gt;
 This tool requires cdrdao (http://cdrdao.sourceforge.net/) to be installed and&lt;br /&gt;
 available in PATH.&lt;br /&gt;
 EOSTREAM&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # go through provided parameters&lt;br /&gt;
 while [ &amp;quot;${1}&amp;quot; != &amp;quot;&amp;quot; ]; do&lt;br /&gt;
 	if [ &amp;quot;${1}&amp;quot; = &amp;quot;--drive&amp;quot; ]; then&lt;br /&gt;
 		DRIVE=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--outputdir&amp;quot; ]; then&lt;br /&gt;
 		PSXDIR=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--nosubchan&amp;quot; ]; then&lt;br /&gt;
 		NOSUBCHAN=&amp;quot;true&amp;quot;&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--help&amp;quot; ] || [ &amp;quot;${1}&amp;quot; = &amp;quot;-h&amp;quot; ]; then&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit 0&lt;br /&gt;
 	elif [ &amp;quot;${2}&amp;quot; != &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
 		echo &amp;quot;ERROR: Inval id usage. Displaying help:&amp;quot;&lt;br /&gt;
 		echo &amp;quot;&amp;quot;&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit -1&lt;br /&gt;
 	else&lt;br /&gt;
 		IMAGENAME=$1&lt;br /&gt;
 		shift&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 # check for required dependencies&lt;br /&gt;
 which cdrdao &amp;amp;&amp;gt; /dev/null ||&lt;br /&gt;
 	report_absent_tool cdrdao 'http://cdrdao.sourceforge.net/'&lt;br /&gt;
 &lt;br /&gt;
 # output recognized parameters&lt;br /&gt;
 echo &amp;quot;Program &amp;quot;$(basename ${0})&amp;quot; called. The following parameters will be used for&amp;quot;&lt;br /&gt;
 echo &amp;quot;creating an image of a PSX disc:&amp;quot;&lt;br /&gt;
 echo &amp;quot;Folder for saving images: &amp;quot;$PSXDIR&lt;br /&gt;
 echo &amp;quot;Drive used for reading the image: &amp;quot;$DRIVE&lt;br /&gt;
 echo &amp;quot;Resulting filenames: &amp;quot;$PSXDIR&amp;quot;/&amp;quot;$IMAGENAME&amp;quot;[.bin|.cue]&amp;quot;&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;Not extracting subchan data.&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
 	echo &amp;quot;Extracting subchan data.&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # check if imagename is defined&lt;br /&gt;
 if [ &amp;quot;$IMAGENAME&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;ERROR: Invalid usage. Found no name for resulting image. Displaying help:&amp;quot;&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	print_help&lt;br /&gt;
 	exit -1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # create dir for resulting image if it does not exist yet&lt;br /&gt;
 if ! [ -d &amp;quot;$PSXDIR&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;outputdir not found, creating folder: &amp;quot;$PSXDIR&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	mkdir -p $PSXDIR&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;starting ripping the disc&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 # final commandline for reading the disc and creating the image&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	cdrdao read-cd --read-raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.toc&lt;br /&gt;
 else&lt;br /&gt;
 	cdrdao read-cd --read-raw --read-subchan rw_raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.toc&lt;br /&gt;
 fi&lt;br /&gt;
 toc2cue $PSXDIR/$IMAGENAME.toc $PSXDIR/$IMAGENAME.cue&lt;br /&gt;
&lt;br /&gt;
== Compressing the images ==&lt;br /&gt;
If you want to compress the images you can try to use the program [http://www.fpsece.net/ PocketISO] via [http://www.winehq.org wine]. There seems to be no native program doing this task in a nice way.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:Emulators]]&lt;/div&gt;</summary>
		<author><name>CFWhitman</name></author>
		
	</entry>
	<entry>
		<id>https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8499</id>
		<title>Creating images of PSX games using Linux</title>
		<link rel="alternate" type="text/html" href="https://pandorawiki.org/index.php?title=Creating_images_of_PSX_games_using_Linux&amp;diff=8499"/>
		<updated>2011-05-20T13:39:02Z</updated>

		<summary type="html">&lt;p&gt;CFWhitman: /* From the command line*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This pages describes a rather simple way for creating images for usage with an emulator like [[PSX4Pandora]]. Everything listed here does require the program ''cdrdao'' which is often already installed in common Linux distributions once some burner software is installed.&lt;br /&gt;
&lt;br /&gt;
== From the command line ==&lt;br /&gt;
This command creates a dump of your disc. It does also extract subchannel data which is required for the copy protection of some of the games to work correctly. It does save the image in .bin format and also does create a .toc file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you must know what device name to use for you optical drive. If you are not sure what your drive's Linux device name is, then you can run this command to find out:&lt;br /&gt;
 cdrdao scanbus&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
 Cdrdao version 1.2.3 - (C) Andreas Mueller &amp;lt;andreas@daneb.de&amp;gt;&lt;br /&gt;
 /dev/sr0 : hp      , DVD RW AD-7581S , 4H73&lt;br /&gt;
The first part of the second line, &amp;quot;/dev/sr0&amp;quot;, is the device name of the only optical drive that cdrdao recognizes on this machine. If you have multiple optical drives, they will each show up here. You can distinguish between them by the description following the colon after the device name. The device here is an HP DVD RW Model AD-7581S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next, make sure that your disc is in the drive but not mounted. Assuming that your optical drive is called &amp;quot;/dev/sr0&amp;quot;, to unmount the drive from the command line you can do this:&lt;br /&gt;
 umount /dev/sr0&lt;br /&gt;
(Of course you should substitute whatever device name you got from previous command.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming again that your optical drive is called ''/dev/sr0'' and you want to name the image ''GAME_NAME'', this is the command you can use to create the image in the current dir:&lt;br /&gt;
 cdrdao read-cd --read-raw --read-subchan rw_raw --datafile GAME_NAME.bin --device /dev/sr0 --driver generic-mmc-raw GAME_NAME.toc&lt;br /&gt;
Of course you have to adjust the parameters according to your desires and your system setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some emulators are finicky and don't like .toc files, or seem to work with some bin/toc file combinations, but not others. Usually .cue files work, so you may want to create a .cue file from the .toc file that cdrdao just made with this command:&lt;br /&gt;
 toc2cue GAME_NAME.toc GAME_NAME.cue&lt;br /&gt;
That will leave both a .toc file and a .cue file in the directory you are working from.&lt;br /&gt;
&lt;br /&gt;
== Useful script ==&lt;br /&gt;
Following is a script doing some useful stuff. It does by default rip the current disc in your drive ''/dev/sr0'' into the folder ''~/psxrip/'' with the name you give as parameter. If the folder does not exist, it is created. It does extract subchannel data by default, saves the image as ''.bin'' and creates a ''.cue''.&lt;br /&gt;
&lt;br /&gt;
You can also copy the following code into a text file and make it executable. To do so, lets assume you named the text file ''psxrip'', then run ''chmod +x psxrip''. For usage information just type ''./psxrip --help''. The script does check if you got the required program installed, if you provided the parameters and all the likes. If you do something that you are not supposed to do, it will print an error message as well as some (hopefully) helpful output.&lt;br /&gt;
&lt;br /&gt;
Here is the script:&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #&lt;br /&gt;
 #  This is a script to create a .bin image with corresponding .cue out of your&lt;br /&gt;
 #  PSX game discs as backup and/or for usage with emulators.&lt;br /&gt;
 #&lt;br /&gt;
 #  Run-time requirements: cdrdao&lt;br /&gt;
 #&lt;br /&gt;
 #  This script is partly based upon the &amp;quot;wesnoth-optipng&amp;quot; script from the&lt;br /&gt;
 #  Battle for Wesnoth team.&lt;br /&gt;
 #&lt;br /&gt;
 #  This program is free software; you can redistribute it and/or modify&lt;br /&gt;
 #  it under the terms of the GNU General Public License version 2 or,&lt;br /&gt;
 #  at your option any later version. This program is distributed in the&lt;br /&gt;
 #  hope that it will be useful, but WITHOUT ANY WARRANTY.&lt;br /&gt;
 &lt;br /&gt;
 PSXDIR=$HOME/psxrip&lt;br /&gt;
 DRIVE=/dev/sr0&lt;br /&gt;
 &lt;br /&gt;
 report_absent_tool()&lt;br /&gt;
 {&lt;br /&gt;
 	echo &amp;quot;$1 is not present in PATH. $(basename ${0}) requires it in order to work properly.&amp;quot;&lt;br /&gt;
 	if [ -n &amp;quot;$2&amp;quot; ]; then&lt;br /&gt;
 		echo &amp;quot;You can obtain $1 at &amp;lt;${2}&amp;gt;.&amp;quot;&lt;br /&gt;
 	fi&lt;br /&gt;
 	exit -1&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 print_help()&lt;br /&gt;
 {&lt;br /&gt;
 cat &amp;lt;&amp;lt; EOSTREAM&lt;br /&gt;
 Script for ripping PSX game discs into .bin files with corresponding .cue files.&lt;br /&gt;
 &lt;br /&gt;
 Usage:&lt;br /&gt;
   $(basename ${0}) [{--outputdir} &amp;lt;value&amp;gt;] [{--drive} &amp;lt;value&amp;gt;] [{--no-subchan] [{--help|-h}] [filename]&lt;br /&gt;
 &lt;br /&gt;
 The parameter [filename] is mandatory. Without it, the script will abort. Plain&lt;br /&gt;
 spaces in the filename are prohibited!&lt;br /&gt;
 &lt;br /&gt;
 Available switches:&lt;br /&gt;
   --drive       Define the device to be used. If this parameter is not&lt;br /&gt;
                 provided, /dev/sr0 will be used.&lt;br /&gt;
 &lt;br /&gt;
   --help / -h   Displays this help text.&lt;br /&gt;
 &lt;br /&gt;
   --no-subchan  Don't extract subchannel data. Subchannel data might be&lt;br /&gt;
                 required for some PSX copy protection though it *could* create&lt;br /&gt;
                 problems. Retry with this parameter set if any problems occur&lt;br /&gt;
                 when trying to use the resulting image.&lt;br /&gt;
 &lt;br /&gt;
   --outputdir   Define the folder in which the resulting image should be saved.&lt;br /&gt;
                 If the folder does not exist, it will be created. If no&lt;br /&gt;
                 --outputdir parameter is given, the folder ~/psxrip will be&lt;br /&gt;
                 used.&lt;br /&gt;
 &lt;br /&gt;
 This tool requires cdrdao (http://cdrdao.sourceforge.net/) to be installed and&lt;br /&gt;
 available in PATH.&lt;br /&gt;
 EOSTREAM&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 # go through provided parameters&lt;br /&gt;
 while [ &amp;quot;${1}&amp;quot; != &amp;quot;&amp;quot; ]; do&lt;br /&gt;
 	if [ &amp;quot;${1}&amp;quot; = &amp;quot;--drive&amp;quot; ]; then&lt;br /&gt;
 		DRIVE=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--outputdir&amp;quot; ]; then&lt;br /&gt;
 		PSXDIR=$2&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--nosubchan&amp;quot; ]; then&lt;br /&gt;
 		NOSUBCHAN=&amp;quot;true&amp;quot;&lt;br /&gt;
 		shift 2&lt;br /&gt;
 	elif [ &amp;quot;${1}&amp;quot; = &amp;quot;--help&amp;quot; ] || [ &amp;quot;${1}&amp;quot; = &amp;quot;-h&amp;quot; ]; then&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit 0&lt;br /&gt;
 	elif [ &amp;quot;${2}&amp;quot; != &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
 		echo &amp;quot;ERROR: Inval id usage. Displaying help:&amp;quot;&lt;br /&gt;
 		echo &amp;quot;&amp;quot;&lt;br /&gt;
 		print_help&lt;br /&gt;
 		exit -1&lt;br /&gt;
 	else&lt;br /&gt;
 		IMAGENAME=$1&lt;br /&gt;
 		shift&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 # check for required dependencies&lt;br /&gt;
 which cdrdao &amp;amp;&amp;gt; /dev/null ||&lt;br /&gt;
 	report_absent_tool cdrdao 'http://cdrdao.sourceforge.net/'&lt;br /&gt;
 &lt;br /&gt;
 # output recognized parameters&lt;br /&gt;
 echo &amp;quot;Program &amp;quot;$(basename ${0})&amp;quot; called. The following parameters will be used for&amp;quot;&lt;br /&gt;
 echo &amp;quot;creating an image of a PSX disc:&amp;quot;&lt;br /&gt;
 echo &amp;quot;Folder for saving images: &amp;quot;$PSXDIR&lt;br /&gt;
 echo &amp;quot;Drive used for reading the image: &amp;quot;$DRIVE&lt;br /&gt;
 echo &amp;quot;Resulting filenames: &amp;quot;$PSXDIR&amp;quot;/&amp;quot;$IMAGENAME&amp;quot;[.bin|.cue]&amp;quot;&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;Not extracting subchan data.&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
 	echo &amp;quot;Extracting subchan data.&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # check if imagename is defined&lt;br /&gt;
 if [ &amp;quot;$IMAGENAME&amp;quot; = &amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;ERROR: Invalid usage. Found no name for resulting image. Displaying help:&amp;quot;&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	print_help&lt;br /&gt;
 	exit -1&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # create dir for resulting image if it does not exist yet&lt;br /&gt;
 if ! [ -d &amp;quot;$PSXDIR&amp;quot; ]; then&lt;br /&gt;
 	echo &amp;quot;outputdir not found, creating folder: &amp;quot;$PSXDIR&lt;br /&gt;
 	echo &amp;quot;&amp;quot;&lt;br /&gt;
 	mkdir -p $PSXDIR&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 echo &amp;quot;starting ripping the disc&amp;quot;&lt;br /&gt;
 echo &amp;quot;&amp;quot;&lt;br /&gt;
 # final commandline for reading the disc and creating the image&lt;br /&gt;
 if [ &amp;quot;$NOSUBCHAN&amp;quot; = &amp;quot;true&amp;quot; ]; then&lt;br /&gt;
 	cdrdao read-cd --read-raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.cue&lt;br /&gt;
 else&lt;br /&gt;
 	cdrdao read-cd --read-raw --read-subchan rw_raw --datafile $PSXDIR/$IMAGENAME.bin --device $DRIVE --driver generic-mmc-raw $PSXDIR/$IMAGENAME.cue&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
== Compressing the images ==&lt;br /&gt;
If you want to compress the images you can try to use the program [http://www.fpsece.net/ PocketISO] via [http://www.winehq.org wine]. There seems to be no native program doing this task in a nice way.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
[[Category:Emulators]]&lt;/div&gt;</summary>
		<author><name>CFWhitman</name></author>
		
	</entry>
	<entry>
		<id>https://pandorawiki.org/index.php?title=User:CFWhitman&amp;diff=8495</id>
		<title>User:CFWhitman</title>
		<link rel="alternate" type="text/html" href="https://pandorawiki.org/index.php?title=User:CFWhitman&amp;diff=8495"/>
		<updated>2011-05-19T17:14:02Z</updated>

		<summary type="html">&lt;p&gt;CFWhitman: Created page with &amp;quot;Hello. My name is Charlie Whitman, and I live in upstate New York. I have a fair amount of experience with Linux. I have some experience with emulation in Linux, and almost none ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello. My name is Charlie Whitman, and I live in upstate New York. I have a fair amount of experience with Linux. I have some experience with emulation in Linux, and almost none in Windows. Most of my programming experience is with Lisp, Visual Basic, or Perl, but I am looking to brush up on my C and C++ to be more useful within the Pandora community. Thanks.&lt;br /&gt;
&lt;br /&gt;
[[User:CFWhitman|CFWhitman]] 19:14, 19 May 2011 (MEST)&lt;/div&gt;</summary>
		<author><name>CFWhitman</name></author>
		
	</entry>
	<entry>
		<id>https://pandorawiki.org/index.php?title=Talk:Creating_images_of_PSX_games_using_Linux&amp;diff=8494</id>
		<title>Talk:Creating images of PSX games using Linux</title>
		<link rel="alternate" type="text/html" href="https://pandorawiki.org/index.php?title=Talk:Creating_images_of_PSX_games_using_Linux&amp;diff=8494"/>
		<updated>2011-05-19T16:50:31Z</updated>

		<summary type="html">&lt;p&gt;CFWhitman: Created page with &amp;quot;I have not seen a version of cdrdao that will directly create .cue files. In my experience, when you run a command like  cdrdao read-cd --read-raw --read-subchan rw_raw --datafil...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I have not seen a version of cdrdao that will directly create .cue files. In my experience, when you run a command like&lt;br /&gt;
 cdrdao read-cd --read-raw --read-subchan rw_raw --datafile GAME_NAME.bin --device /dev/sr0 --driver generic-mmc-raw GAME_NAME.cue&lt;br /&gt;
then you will merely get a .toc file mislabeled as a .cue file. In order to actually get a .cue file you would have to run toc2cue on the resulting .toc file.&lt;br /&gt;
&lt;br /&gt;
So to get correct results you should run&lt;br /&gt;
 cdrdao read-cd --read-raw --read-subchan rw_raw --datafile GAME_NAME.bin --device /dev/sr0 --driver generic-mmc-raw GAME_NAME.toc&lt;br /&gt;
followed by&lt;br /&gt;
 toc2cue GAME_NAME.toc GAME_NAME.cue&lt;br /&gt;
&lt;br /&gt;
The script could easily be modified to do this for you. You could even have it delete the .toc file afterward if you wanted it to.&lt;br /&gt;
toc2cue is included with cdrdao.&lt;br /&gt;
[[User:CFWhitman|CFWhitman]] 18:50, 19 May 2011 (MEST)&lt;/div&gt;</summary>
		<author><name>CFWhitman</name></author>
		
	</entry>
</feed>