Hacking wbfs2fat.py

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
No there is no way back once you used/written to the filesystem.
As long as you are careful not to write to it(mount it read only - "mount -o ro")
you can restore the backup file but that's it.

The other way around would be much more work, more difficult and even more useless then this.
Considering how long it took for someone to give this a try I wouldn't hold my breath.

Code:
wit cp -Bz *.iso -d /mnt/wii
should do it afaik - cant check - no isos
there were some nameing options but I cant find them atm
 

nunavat2010

Well-Known Member
Member
Joined
Mar 13, 2011
Messages
195
Trophies
0
Location
Canada
XP
70
Country
United States
Thanks psyblade. I found the wit command.
I tried your tool, but it kept giving me errors like using duplicate blocks use wwt -v.

This is what I tried
Code:
./wbfs2fat-03.py /dev/sdc2 backup /dev/sdb2
/dev/sdc2 is my wbfs partition
It went on checking the partition and then the error. I am going by the memory here.
OK, I don't know CLI on ubuntu as much as I would like to believe!

Then I checked my partitions, there were two bad discs, after that I did not try.
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
this is a knows bug in some versions of the wbfs c library
if you delete a game using a manager, loader or whatever that uses an affected lib
parts of another game are marked as free too
if you add a game (even with a good lib) these parts are overwritten

wwt can figure out which game was overwritten thus is defect and can remove it
I can only abort because I don’t know how to and choosing the wrong one breaks both

I cant believe this crap still happens

and the 3rd parameter should be a directory where you would like the drive mounted
something like /media/wii-disk
not (another?!) device
but that has nothing to do with the error
 

Ergo

Well-Known Member
Member
Joined
Oct 29, 2008
Messages
614
Trophies
0
XP
263
Country
United States
I tried this out and everything went smoothly until I executed the wbfs2fat.py and then I received an error stating, basically, that I don't have enough free blocks? Is this referring to the WBFS partition? Or to the cygwin 'ghost' drive? Or something else?
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
I dont know what ghost drive you mean.
But yes I do mean the WBFS drive
the *.wbfs files require slightly more space once extracted (one wbfs block per game; block size depends on wbfs partition)
Aditionally I require some space to store fat meta data (~0.02% of the partitions size)
The error should include the actual numbers
Please check that they match up with what you manager gives as free space etc...
If the drive is really that full ther is nothing I can do
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
just updated to v0.4

+ standalone wbfs2fat.exe for windows
+ python version runs under windows, linux and cygwin
+ more understandable options/parameters
+ --help
+ fixed some bugs that prevented bigger partitions from being recognised properly
+ combined both scripts into one
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
uploaded version 0.6
has a GUI and can restore a backup by itself

thinking about making a short demo video
what's the best way to embed a video here?
(without creating additional accounts!)
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Short Demo of the GUI under Windows
converting a 10 and a 100GB drive
and restoring the backup of the 10GB one

[youtube]http://www.youtube.com/watch?v=2YqSNQnnvcI[/youtube]
 

oggzee

Well-Known Member
Member
Joined
Apr 11, 2009
Messages
2,333
Trophies
0
XP
188
Country
Slovenia
Amazing!
And so fast!
yay.gif
 

jonfelkin

Member
Newcomer
Joined
Nov 21, 2009
Messages
8
Trophies
0
XP
55
Country
United States
Im blind here the only DL link I can find is Download wbfs2fat-0.6.tar.bz2

Where is the windows version as that one wont run for me, or am I missing something very obvious.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,646
Country
France
tar.bz2 is treated just like another compression type, like Zip, 7z or Rar.
Just use your usual archive extractor program (not the included zip support from windows) to extract the content and you will find a "windows" folder.
 

jonfelkin

Member
Newcomer
Joined
Nov 21, 2009
Messages
8
Trophies
0
XP
55
Country
United States
Cyan said:
tar.bz2 is treated just like another compression type, like Zip, 7z or Rar.
Just use your usual archive extractor program (not the included zip support from windows) to extract the content and you will find a "windows" folder.
Thanks, Will use my 7zip now, so silly of me.
 

PsyBlade

Snake Charmer
OP
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
Does anyone know a feature that should really be added?

I feel like working on this a little more but I'm out of ideas.
Well besides crazy stuff like porting it to Wode(which I dont have) or Wii(don't feel like coding C)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended