Hacking wwt+wit: Wiimms WBFS+ISO Tools

Slowking

Well-Known Member
Member
Joined
Dec 31, 2006
Messages
1,403
Trophies
0
XP
260
Country
Germany
hmm so the is the garbadge data actually part of the partitions and only doesn't cause an error when it's changed bcause it's never read? otherwise it wouldn't make sense to me why removing it would need fakesigning.
Well you learn something new every day.
biggrin.gif
 

Leifio

Member
Newcomer
Joined
Mar 14, 2009
Messages
14
Trophies
0
XP
50
Country
United States
Hi, my hard drive wbfs partition (drive e when put in windows computer) cannot be read by wbfs manager or usb loader gx (tried 2 different nintendos) can you give me the line of commands to first check the drive, and then repair it? I lost 47 games and i am trying to recover them.. Thank you in advance
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@Slowking
If you modify data that is nit read by the wii it is no problem. But for each read sector the hash levels in five levels are checked, and the last hash value is stored as part of the TMD => fake signing if changing any sector.

@Leifio

Use "wwt check --auto" to check the WBFS drive.
Use "wwt analyze" if your partition can't be found.

"wwt check --auto --repair=all" will remove discs with errors.

Before removing you can call "wwt verify --auto --no-check" to verify each disc (test check sums). The --no-check disables the consistency check. Add options --remove --no-free to the verify command to remove bad discs automatically.

See wwt.txt for details of all commands or call "wwt help COMMAND"
 

Leifio

Member
Newcomer
Joined
Mar 14, 2009
Messages
14
Trophies
0
XP
50
Country
United States
i analyze and get the last line:
analyze /dev/sdb1
DISCS: - 0 254297c1 200 950a 800000 1f4 a00 43 disc header found

then i use wwt verify --auto --no-check and get ERROR NO WBFS FOUND what should i do now?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
analyze don't care about WBFS headers. So it find disc headers at potential WBFS positions.

If you sure that /dev/sdb1 is your WBFS drive try:
wwt format /dev/sdb1 --recover --force

If not sure than plug off the WBSF drive, wait some seconds and do "wwt find -l": /dev/sdb1 should not be there.
Then plug in the WBSF drive, wait some seconds and do "wwt find -l" again: /dev/sdb1 should be there.
 

Leifio

Member
Newcomer
Joined
Mar 14, 2009
Messages
14
Trophies
0
XP
50
Country
United States
OK, i confirmed it is dev sdb1 but if i format, will all my games be gone? (sorry, its just difficult to read the txt file)
EDIT: found the txt file on the site and tried the command, thank you very much, i have recovered 43 games.
Keep up the good work,

regards,
 

Zhelkus

Well-Known Member
Newcomer
Joined
Jul 1, 2009
Messages
79
Trophies
0
XP
202
Country
United States
this is extremely noobish problem i got and i honestly don't know why it's happening
frown.gif


I'm converting my backups from iso to wdf but the first file i processed isn't created in the directory i specified. this is my log:

Code:
D:\Downloads\Game Downloads\Wii\WIT\Wiim's ISO Tools\bin>wit copy "D:\Temp\iso\i
so.iso" "D:\Temp\iso\iso.wdf" -P
*****ÂÂwit: Wiimms ISO Tool v1.16a r1645 cygwin - Dirk Clemens - 2010-09-01ÂÂ***
**
cygwin warning:
ÂÂMS-DOS style path detected: D:\Temp\iso\iso.wdf
ÂÂPreferred POSIX equivalent is: /cygdrive/d/Temp/iso/iso.wdf
ÂÂCYGWIN environment variable option "nodosfilewarning" turns off this warning.
ÂÂConsult the user's guide for more details about POSIX paths:
ÂÂÂÂhttp://cygwin.com/cygwin-ug-net/using.html#using-pathnames
* wit SCRUB 1/1 ISO:/cygdrive/d/Temp/iso/iso.iso -> WDF:D:/Temp iso iso.wdf
ÂÂÂÂÂÂ626 MiB copied in 0:06, 103.3 MiB/sec

D:\Downloads\Game Downloads\Wii\WIT\Wiim's ISO Tools\bin>wit copy "D:\Temp\iso\i
so.iso" "D:\Temp\iso\iso.wdf" -P

I have win7 pro x64. don't know if that means anything. i downloaded the cygwin package twice just in case and i get the same problem. the file is created in my D directory instead of where i want it made.
any idea why??
frown.gif
 

Zhelkus

Well-Known Member
Newcomer
Joined
Jul 1, 2009
Messages
79
Trophies
0
XP
202
Country
United States
Scratch that. I just made it work all by myself. hoorah! I just changed the slashes from \ to /. But why is this necessary?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
Short answer:
Because cygwin is a unix "emulator" and unix (and many other OS) use the slash as dir separator.

Long answer:
Before MS DOS there was some other OS like unix and CPM. They have directory support and uses / as separator. When B.G. start with DOS he decided there is no need for directories. This was a good decision because the slash is now available for option. ABC/DEF means param ABC with option DEF.

Then with DOS 3.3 MS invents directories (I remember promotions sentences that sound like MS was the inventor of directories) and uses the backslash \ because the slash has already an other meaning. In other OS the backslash is the escape character.

BTW: If you write a program DOS+Windows allow to use the slash as separator. Only the command line input interpreter the slash as option character.
 

Zhelkus

Well-Known Member
Newcomer
Joined
Jul 1, 2009
Messages
79
Trophies
0
XP
202
Country
United States
I see. Thx for the info. Explains why other programs that are cross platform that i have also change my slashes as i type.
 

jivaros

Member
Newcomer
Joined
Sep 29, 2009
Messages
8
Trophies
0
XP
12
Country
France
hi wiimm,

thanks again for this wonderful piece of code.
Would it be possible to have a progress bar when adding an iso to a wbfs partition ?
 

Socram

Member
Newcomer
Joined
Sep 15, 2010
Messages
5
Trophies
0
XP
1
Country
Gambia, The
Hey folks,

I have a strange problem and wonder if wwt could fix it.

Problem: I start my Wii games as channels (Loadstructor with cLoader, installed the wad files with a WAD Manager) from my USB drive, which has a NTFS and a WBFS partition. This works pretty well with most of the games, but a month or so ago one of them (Tales of Symphonia) just stopped to work. I tried the USB Loader GX, which did not load it, either. So I guessed that the file itself got corrupted anyhow, since the other games still worked. As a possible solution I used my PC with a WBFS Manager to extract an ISO from the wbfs file on the USB drive and reinstalled it, but that did not work. Only a new complete pass of extraction from the Disc + WBFS Manager + Loadstructor + WAD Manager could fix the game.
2 weeks ago a second game started to refuse to load, followed by a third one some days ago. This is really, really annoying.

Solution: wwt FORMAT --recover? wwt RECOVER? wwt REPAIR? Could any of these commands either fix the maybe-corrupted games or, even better, fix the cause of the whole problem? And does wwt FORMAT delete all wbfs game files as one would expect? That would be horrible ^^


Greetings,
Soc
 

ridiculousd

New Member
Newbie
Joined
Sep 16, 2010
Messages
3
Trophies
0
XP
23
Country
United States
Error using wit MOVE. Also occurs in the latest stable version. Running Ubuntu Lucid, if you need other details let me know.
Code:
ÂÂsudo wit move -r wiiIso -D test/'%6I.%E' -v

wit: Wiimms ISO Tool v1.17a.beta3 r1724 i386 - Dirk Clemens - 2010-09-12

- MoveÂÂ1/52 ISO:wiiIso/R2IE69.iso -> test/R2IE69.iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1738
!!ÂÂÂÂÂÂCan't create file: test/R2IE69.iso
!!ÂÂÂÂÂÂ-> No such file or directory
wit: Command 'MOVE' returns with status #24 [CAN'T CREATE FILE]

sudo wit move -r wiiIso --DEST wiiIso/'%6I_%50T/%6I.%E' -v

wit: Wiimms ISO Tool v1.17a.beta3 r1724 i386 - Dirk Clemens - 2010-09-12

- MoveÂÂ1/52 ISO:wiiIso/R2IE69.iso -> wiiIso/R2IE69_Madden NFL 10/R2IE69.iso
!! wit: ERROR #24 [CAN'T CREATE FILE] in exec_move() @ src/wit.c#1738
!!ÂÂÂÂÂÂCan't create file: wiiIso/R2IE69_Madden NFL 10/R2IE69.iso
!!ÂÂÂÂÂÂ-> No such file or directory
wit: Command 'MOVE' returns with status #24 [CAN'T CREATE FILE]

The MOVE command fails anytime it has to create directories. The escape string I used has the titles, so it has spaces. I don't think it is the issue because this command fails too:

Code:
 sudo wit move -r wiiIso --DEST wiiIso/'%6I/%6I.%E' -v

The move command is exactly what I need to organize my files, but only works to create files in the root of the output folder, i.e. this command worked:

Code:
sudo wit move -r wiiIso -D '%6I.%E' -v
 

ridiculousd

New Member
Newbie
Joined
Sep 16, 2010
Messages
3
Trophies
0
XP
23
Country
United States
Thanks! I can say that the beta worked a treat! It even seems to check if the files exist, ie, it doesn't do any work if they already match the naming convention.

Good stuff. Thanks again.
 

EtherealX

Well-Known Member
Member
Joined
Jul 14, 2009
Messages
125
Trophies
0
XP
50
Country
United States
Sorry if this has been discussed somewhere, this is a bit complex for my noggin, but slowing getting there.. couple Qs.

How would I go about converting an ISO to WBFS WHILE renaming it to the internal ID6? As in convert, test.iso to R123E56.wbfs

Also, how would I go about converting an ISO to WBFS, renaming it to the ID6, AND automagically splitting files larger than 4g into 2g pieces? i.e.. converting a SSBB ISO into 4 parts 2/2/2/remainder all with ID6 as the title.

-TIA
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Software update might improve it.