Wiimm said:@Monosodium
I can't reproduce your bug (i have converted several iso images to wbfs)
Please do
1.) "make debug all"
2.) execute your command with the new tool again
3.) PN me the trace file named "_trace-iso2wbfs.tmp" (or send a download link)
I compiled the source (same version as the binary that produced the error) as you adviced.
Result: no errors. Now I have just one .wbfs file
CODE-rwx------ 1 yoshi root 1797259264 JunÂÂ1 19:20 RRBP41.wbfs
wit v0.48b r1164 - 2010-06-01 (repository only)
- Bug fix: If reading a very small WBFS file the old and buggy calculation
ÂÂ in libwbfs for the free tables size results in zero. Accessing the non
ÂÂ existent table forces a segmentation fault. For compatibility reasons
ÂÂ the calculation can't be changed.
- Bug fix: wit DUMP have always reported encrypted partitions.
- Composing bug fix: Copy only really needed data from boot.bin if file
ÂÂ header.bin is missed.
make all
sudo make install
Result: One 1.7 GB .wbfs file (i.e. no problems)Wiimm said:@Monosodium
What is if you do:
make clean+
make mac-distrib
Seems that I have to test it on a mac. But I'm only guest on the mac with a small amount of disc space.
I compiled with
make clean+
make distrib (note there was no 'mac-distrib')
And ran the binary with:
CODE$ iso2wbfs --progress --verbose Rayman Raving Rabbids.iso
...
# Mac, universal binary
-include makefiles-local/Makefile.local.mac
Wiimm said:for mac:
copy the file makefiles-local/Makefile.local to the base directory´and remove comment in the very last line
Code:... # Mac, universal binary -include makefiles-local/Makefile.local.mac
This enables some special MAC things and also mac-distrib
Ok, thanks for the help. This worked. Now there was no permission issues after compiling... Btw, I'm curious what are the speacial Mac things?
Today I tried to feed the stdout of unrar to iso2wbfs. Here's what happened:
CODE$ unrar p -inul Sin.and.Punishment.2.Successor.to.the.Sky.rar *.iso | ~/Desktop/wiimms-iso-tools/wit-v0.48a-r0-mac/bin/iso2wbfs --progress --verbose --dest ~ -
iso2wbfs v0.48a r0 mac - Dirk Clemens - 2010-06-03
* iso2wbfs: SCRUB - -> /Users/yoshi/R2VP01.wbfs
ÂÂÂÂÂÂ 0% copied in 2:10 (2.0 MiB/sec) -> ETA 388:50:42ÂÂ
************************************************************************
*****ÂÂIt seems, that the caching area for the game is too small!ÂÂ*****
*****ÂÂPlease report this to the author.ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ *****
*****ÂÂTechnical data: ID=R2VP01, OFF=200000, SIZE=200000ÂÂÂÂÂÂÂÂÂÂ*****
************************************************************************
!! iso2wbfs: ERROR #20 [READ FILE FAILED] in ReadISO() @ src/lib-sf.c#842
!!ÂÂÂÂÂÂÂÂÂÂ Seek failed [F=3,200000]: - (stdin)
!!ÂÂÂÂÂÂÂÂÂÂ -> Illegal seek
!! iso2wbfs: ERROR #23 [WBFS ERROR] in wbfs_add_disc_param() @ src/libwbfs/libwbfs.c#1423
!!ÂÂÂÂÂÂÂÂÂÂ error reading disc
ÂÂÂÂÂÂ258 MiB copied in 2:10,ÂÂ2.0 MiB/secÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
!! iso2wbfs: ERROR #23 [WBFS ERROR] in CopyToWBFS() @ src/lib-sf.c#2185
!!ÂÂÂÂÂÂÂÂÂÂ Error while creating disc [] @/Users/yoshi/R2VP01.wbfs
giantpune said:why would you feed stdout to iso2wbfs? isnt the stdout of unrar just text output. it doesnt output the extracted file this way.
Because I want to save space and time and because wit supports itQUOTE(Wiimm @ Sep 28 2009, 03:13 PM) Feature overview:
- ...
- Read ISO from pipes (indirect ZIP/RAR support).
...
but after a while it starts to speed up.Wiimm said:If the source has to partitions and both should be copied and scrubbed mode is enabled then reading from pipe fails.
It's a simply reason:
For scrubbing all partitions must be analyzed first. And after scanning the second partition the first one is gone. Used --psel=data to avoid this.
I know this bug and it is on my private to do list.
Thanks! Now it works. However in the beginning there's a long pause and nothing seems to happen. The --progress switch is at 0% and CPU is usage is quite high. I guess it's extracting the rar to some cache???
CODEÂÂÂÂÂÂ0% copied in 1:16 (3.3 MiB/sec) -> ETA 1117:01:55
pos@buro:/data2/Iso$ iso2wdf *.iso /media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/ --test
iso2wdf: WOULD SCRUB: Crash Of The Titans [RQJP7D].iso -> Crash Of The Titans [RQJP7D].wdf
iso2wdf: WOULD SCRUB: Pirates - Le trésor de Barbe-Noire [RP7P52].iso -> Pirates - Le trésor de Barbe-Noire [RP7P52].wdf
iso2wdf: WOULD SCRUB: Tetris Party Deluxe [STEETR].iso -> Tetris Party Deluxe [STEETR].wdf
iso2wdf: WOULD COPY:ÂÂ/media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/ -> /media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/.wdf
pos@buro:/data2/Iso$ iso2wdf -v *.iso /media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/
iso2wdf v0.48a r1145 i386 - Dirk Clemens - 2010-05-29
* iso2wdf: SCRUB Crash Of The Titans [RQJP7D].iso -> Crash Of The Titans [RQJP7D].wdf
ÂÂÂÂ 3571 MiB copied in 2:42, 22.0 MiB/sec
* iso2wdf: SCRUB Pirates - Le trésor de Barbe-Noire [RP7P52].iso -> Pirates - Le trésor de Barbe-Noire [RP7P52].wdf
ÂÂÂÂÂÂ847 MiB copied in 0:39, 21.2 MiB/sec
* iso2wdf: SCRUB Tetris Party Deluxe [STEETR].iso -> Tetris Party Deluxe [STEETR].wdf
ÂÂÂÂÂÂ243 MiB copied in 0:09, 24.8 MiB/sec
* iso2wdf: COPYÂÂ/media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/ -> /media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/.wdf
!! iso2wdf: ERROR #20 [READ FILE FAILED] in ReadISO() @ src/lib-sf.c#842
!!ÂÂÂÂÂÂÂÂÂÂRead failed [F=3,0+1000]: /media/48397ef8-da34-49ca-a175-c2dcf9f5f21a/
!!ÂÂÂÂÂÂÂÂÂÂ-> Is a directory
FILE *fp = popen( "./wit 2>&1 -h" , "r" );
ÂÂÂÂwhile ( fgets( buff, sizeof buff, fp ) != NULL )
ÂÂÂÂ{
ÂÂÂÂdo stuff
ÂÂÂÂ}
ÂÂÂÂpclose( fp );
I have discussed this with giantpune. It was a mistake of him (in boot.bin both are 0x01), the newest tools handles this two bytes correct and set them to 0x00 in the disc header.giantpune said:this wit is still not marking 0x60 and 0x61 as 1 with the "disc" folder missing. these 2 bytes are needed to be 1 for the disc to be able to be read.
wit v0.48b r1164 - 2010-06-01 (repository only)
- Bug fix: If reading a very small WBFS file the old and buggy calculation
ÂÂ in libwbfs for the free tables size results in zero. Accessing the non
ÂÂ existent table forces a segmentation fault. For compatibility reasons
ÂÂ the calculation can't be changed.
- Bug fix: wit DUMP have always reported encrypted partitions.
- Composing bug fix: Copy only really needed data from boot.bin if file
ÂÂ header.bin is missed.
wit v0.49a r1177 - 2010-06-06
- Built in help improved.
Missing docu:
ÂÂ- wit commands ILIST + EXTRACT