Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| disk_image_compression [2023/06/30 02:03] – [SquashFS] compress multiple .iso to .squashfs maioni | disk_image_compression [2026/03/27 10:24] (current) – ↷ Links adapted because of a move operation 40.77.167.44 | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| * [[systems: | * [[systems: | ||
| * [[systems: | * [[systems: | ||
| - | * [[systems:segacd]] | + | * [[systems:megacd]] |
| * [[systems: | * [[systems: | ||
| * [[systems: | * [[systems: | ||
| Line 63: | Line 63: | ||
| ==== Creating CHDs ==== | ==== Creating CHDs ==== | ||
| - | '' | + | '' |
| If there is a '' | If there is a '' | ||
| Line 88: | Line 88: | ||
| </ | </ | ||
| - | Then make yourself a cup of tea. This can take a while. After that you'll have ''< | + | Then make yourself a cup of tea. This can take a while. After that you'll have ''< |
| The compression is fully lossless so it is possible to redo the compression and get the original files back: | The compression is fully lossless so it is possible to redo the compression and get the original files back: | ||
| Line 95: | Line 95: | ||
| chdman extractcd -i < | chdman extractcd -i < | ||
| </ | </ | ||
| + | |||
| + | For DVD-based systems, you can use the '' | ||
| === CHD batch converting === | === CHD batch converting === | ||
| Line 102: | Line 104: | ||
| **Linux/ | **Linux/ | ||
| - | Navigate to the folder that has all your game ROMs and run the following | + | Place the script into your folder that holds your ROMs and execute |
| - | <code> | + | <file bash allimg-to-chd.sh> |
| - | for i in *.cue; do chdman createcd -i " | + | # |
| - | </code> | + | grep -rlq $' |
| + | pushd " | ||
| + | readarray -t array < <(find -maxdepth 1 -type f \( -iname "*.cue" -o -iname " | ||
| + | [ -z " | ||
| + | [ -f "/ | ||
| + | for i in " | ||
| + | / | ||
| + | echo; echo "You can remove file: $i and additionals if you want!" | ||
| + | done | ||
| + | popd | ||
| + | </file> | ||
| - | replacing '' | + | replacing '' |
| Here's a command to convert all the games in the current folder and recursive folders to CHD: | Here's a command to convert all the games in the current folder and recursive folders to CHD: | ||
| Line 126: | Line 138: | ||
| find . -name " | find . -name " | ||
| </ | </ | ||
| + | |||
| + | For '' | ||
| + | < | ||
| + | find . -name " | ||
| + | </ | ||
| + | |||
| + | Note: find command is recursive, so it will convert files from subfolders. | ||
| **Windows: | **Windows: | ||
| Line 146: | Line 165: | ||
| <code - gdi-to-chd.bat> | <code - gdi-to-chd.bat> | ||
| for /r %%i in (*.gdi) do chdman createcd -i " | for /r %%i in (*.gdi) do chdman createcd -i " | ||
| + | </ | ||
| + | |||
| + | For '' | ||
| + | <code - gdi-to-chd.bat> | ||
| + | for /r %%i in (*.toc) do chdman createcd -i " | ||
| </ | </ | ||
| Or combine both: | Or combine both: | ||
| - | for /r %%i in (*.cue, *.gdi, *.iso) do chdman createcd -i " | + | for /r %%i in (*.cue, *.gdi, *.iso, *.toc) do chdman createcd -i " |
| If you're converting a lot of files, play some tunes on your guitar. This may take a while. | If you're converting a lot of files, play some tunes on your guitar. This may take a while. | ||
| + | |||
| + | ==== CDI / NRG / IMG TO CHD ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | <WRAP center round important> | ||
| + | Newer versions of chdman (0139+) are not compatible with cdifile. | ||
| + | </ | ||
| + | |||
| + | Put the files '' | ||
| + | |||
| + | And run the code line command: | ||
| + | |||
| + | **For Windows:** | ||
| + | < | ||
| + | cdifile.exe game.cdi -createcd | ||
| + | cdifile.exe game.nrg -createcd | ||
| + | cdifile.exe game.cue -createcd | ||
| + | cdifile.exe game.img -createcd | ||
| + | </ | ||
| + | |||
| + | These commands can also be run from WINE in any Linux distro. | ||
| + | |||
| + | <WRAP center round tip> | ||
| + | It's a good idea to test the game is still working after the conversion before deleting anything. | ||
| + | </ | ||
| ===== CSO ===== | ===== CSO ===== | ||
| Line 201: | Line 251: | ||
| **Linux/ | **Linux/ | ||
| - | <code> | + | <file bash iso-to-cso.sh> |
| - | for i in *.iso; do maxcso " | + | #!/bin/bash |
| - | </code> | + | for i in *.iso; |
| + | do maxcso " | ||
| + | done | ||
| + | </file> | ||
| **Windows: | **Windows: | ||
| - | <code> | + | <file - iso-to-cso.bat> |
| for %i in (*.iso) do maxcso.exe " | for %i in (*.iso) do maxcso.exe " | ||
| - | </code> | + | </file> |
| === With ciso === | === With ciso === | ||
| Line 247: | Line 300: | ||
| **Linux/ | **Linux/ | ||
| - | <code> | + | Create a file with these contents... |
| - | for i in *.iso; do ciso 9 " | + | |
| - | </ | + | <file bash iso-to-ciso.sh> |
| + | #!/bin/bash | ||
| + | for i in " | ||
| + | | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | ...mark it executable with this... | ||
| + | |||
| + | < | ||
| + | |||
| + | ...and then run it like this: | ||
| + | |||
| + | < | ||
| **Windows: | **Windows: | ||
| - | <code> | + | <file - iso-to-ciso.sh> |
| for %i in (*.iso) do ciso.exe 9 " | for %i in (*.iso) do ciso.exe 9 " | ||
| - | </code> | + | </file> |
| ===== PBP ===== | ===== PBP ===== | ||
| Line 376: | Line 442: | ||
| **Linux/ | **Linux/ | ||
| - | <code> | + | <file bash iso-to-pbp> |
| - | for i in *.iso; do -l 9 psxpackager | + | #!/bin/bash |
| - | </code> | + | for i in *.iso; |
| + | do psxpackager | ||
| + | done | ||
| + | </file> | ||
| + | |||
| + | Here's a command to convert all the games in the current folder and recursive folders to PBP: | ||
| + | <file bash all-to-pbp.sh> | ||
| + | find . -name " | ||
| + | find . -name " | ||
| + | find . -name " | ||
| + | </file> | ||
| **Windows: | **Windows: | ||
| - | <code> | + | <file - all-to-pbp.bat> |
| for %i in (*.iso) do psxpackager.exe -l 9 -i " | for %i in (*.iso) do psxpackager.exe -l 9 -i " | ||
| - | </code> | + | for %i in (*.cue) do psxpackager.exe -l 9 -i " |
| + | for %i in (*.m3u) do psxpackager.exe -l 9 -i " | ||
| + | </file> | ||
| OR | OR | ||
| Line 473: | Line 551: | ||
| cd / | cd / | ||
| mksquashfs skweek.pc skweek.pc.squashfs | mksquashfs skweek.pc skweek.pc.squashfs | ||
| + | | ||
| + | cd / | ||
| + | mksquashfs "astro chicken" | ||
| Or to compress a single file : | Or to compress a single file : | ||
- disk_image_compression.1688090595.txt.gz
- Last modified: 3 years ago
- by maioni