Wiimm / wiimms-iso-tools

»Wiimms ISO Tools« is a set of command line tools to extract, modify and create Wii and GameCube ISO images and WBFS containers.
https://wit.wiimm.de
106 stars 13 forks source link

wit COPY does not seem to scrub #4

Open coolaj86 opened 3 years ago

coolaj86 commented 3 years ago

I'm trying to scrub the junk data that bloats the ISO size of my backups. I was under the impression that wit can do this.

  1. I downloaded wit-v3.03a-r8245-mac.tar.gz from https://wit.wiimm.de/ and extracted it to /tmp/wit/ Note: this only works on Catalina. It does not run at all on High Sierra
  2. I attempted to scrub a game backup to reduce its size:
    ./bin/wit CP gamecube-backup-xxxx.iso gamecube-backup-xxxx.gcm
    *****  wit: Wiimms ISO Tool v3.03a r8245 mac - Dirk Clemens - 2020-08-03  *****
    * COPY/SCRUB 1/1 ISO:./gamecube-backup-xxxx.iso -> ISO:./gamecube-backup-xxxx.gcm
  3. The resulting size was exactly the same, despite that is says it's doing a "SCRUB", but I know that the actual game size is much smaller

Do I need another option? Am I misunderstanding what wit is supposed to do?

coolaj86 commented 3 years ago

It looks like I misunderstood.

The "scrubbed" iso is a spare copy with sparse zeros in place of the junk data, which means that it can be compressed, but the file size is not actually smaller.

I noticed that there's a not implemented notice about gcz.

Is there any difference between .iso.gz and gcz? or is it just a different name for the same thing?