Hacking wbfs2fat.py

  • Thread starter Thread starter PsyBlade
  • Start date Start date
  • Views Views 243,917
  • Replies Replies 274
  • Likes Likes 18
It was created automatically when you tried to convert.

You already told me you found it (and tried to open it, which of course failed)
but here we go again

got to the folder from where you ran wbfs2fat
the full filename is wbfs2fat.debug
windows MIGHT hide the part behind the dot and only call it wbfs2fat (but it should display eg "debug file" as file type)
you do not need to open it with any program (there are none that could anyway, besides eg a hexeditor of course)
just upload it
 
The WBFS claims to be 280GiB in size. Is that the actual size of the partition?
Because multiple games claim blocks located outside that boundary. Thats what causes wbfs2fat to crash.

btw wwt opened it without a problem
 
Yes, Wii Back up manager reads it as 273.44 exactly. Would other custom games cause that error? Ex. Mario Kart & Mario Kart Black or Kustom Kart. Because I have a few of those.

What can I do to make this right? Thank you PsyBlade for your patience and help.

Edit: It is a 500gb WD drive. 273 is WBFS. about 30 is a Fat32 and the rest is NTFS. Not sure if this makes a difference. Thought I would have it known.
 
I'm still investigating but I don't see how customs could cause this.
The other partitions should not cause this either
but I have no clue what did, unfortunatly

There are numerous games that claim the same blocks - see error 6
some games even seem to have nonsensical block lists
a few even have ascii text where the block lists should be

only 5 games are without poblems
(others COULD be OK, only one of two games that share blocks HAS TO be defect, the other could be OK)

if you don't want to wait I suggest you use wii backup manager to find the good games, copy them somewhere else and format the partition
the function is called "sha1 checksum" iirc
it checks the internal checksums of the games
 
I can wait, no immediate rush. Obviously I would like to get this over to Fat32 without having to re-rip all my games but whatever it takes. Whenever you come up with something that seems like the best option. Thanks again.
 
PsyBlade,

Would it help any if I completely deleted my other partitions? (Fat32 30gb and NTFS 100 something gb) Then try "wbfs2fat" again? I could transfer those 2 partitions much easier than all these Wii games I think. Lmk, thanks.

Edit: There is a "Wiiflow" folder on the Fat32 and NTFS partitions that contain a bunch of folders. Covers, etc. but no games. Could this be an issue?
 
Dude, you are some kind of genius. Not sure how you came up with this program or none the less tailored it to fits my needs but I can't thank you enough. Worked like a charm. Kudos man. Thanks again soooooooooooooooooooooo much.

Also, is it posibble to merge my other Fat32 partition into this one now?
 
glad it worked

I was able to work around the issue with the messed up block tables

but the games that had shared blocks are still problematic
I duplicated them to fix the sharing but the actual contend is of course still the same
and unfortunatly that content will only fit to one game at max
as I said you can check that with WBMs SHA1 function
Games that fail the check COULD crash at any time
I suggest you check them and rerip at your own convinience

some of your games* are unscrubbed and use more space than needed
if you are tight on space use WBM to move them somewhere else and back again
you can do that one at a time if you don't have space anywhere else
iirc WBM shows you the size the would be (or search the net for "scrubbed size")
now they all use 4.7 GiB

yes it is possible to merge two fat32 partitions
at least it was possible when I played around with it (iirc with partition magic)
unfortunatly this was over a decade ago
no idea what program you would use nowadays
but you should be able to find something on the net

*MP3 Corruption, RB Beatles, VirtualTennis 2009, Trauma Center NB, Van Halen, Grand Slam, Hooked, Fifa 10
 
Hi,

First of all, thanks for developing this application. I tried using it to convert my hard drive (a 160 GB single partition) from WBFS to FAT 32 but I ended up with 58 files each with numbers and characters (like this one here R5IX4Q) and with the extension 0 (the number zero). Searching Google I found out that each file represented a game I had on the original WBFS partition.

I tried browsing the games using WiiBackupManager and Manager but with no use: the games no longer show up there. I already took a backup so I tried restoring my hard drive to WBFS but with no use:
When I open the Windows (7 btw) GUI the partition has a "Not a WBFS partition (missing magic)". I select the partition and restore Backup, select the backup file but then I get the following error:

restoring Backup
ERROR <type 'exceptions.IOError'>

I haven't done any operations on the partition after the conversion, I only opened it in Windows explorer to browse the content. I tried the build you kindly released for for-NewFang but yet it still didn't solve the issue.

Can you please guide me how to successfully restore the partition back to WBFS?

Thanks in advance,
 
please upload the backup file so that I can see why it can not be restored
which version of wbfs2fat did you use?

best would be to leave the partition alone for the time being

the game files are created as theese .0 .1 ... files you see and then automatically renamed to the names the need to have in order for WBM and the loaders to see them
there are two cases in which they are not renamed
-there is an option to disable the renaming (for debug and users having dificulties with it)
-wbfs2fat crashed before/during renaming or could not rename the files (it should print errors - remember seeing some?)

if you disabled the automatic renaming simply rename all .0 files to .wbfs and all .1 files to .wbf1 by hand
move them to a folder called wbfs if the are located in the filesystems root directory

if you did not I will have to look a the backup file to see wether the games are OK
you could try to COPY some games to a different partition, rename them and see if you can see them in WBM (use its SHA1 check to see if they are good)
 
Thank you for your reply:


please upload the backup file so that I can see why it can not be restored
>> it is a bit big, I also added the debug file. Kindly download it from here:
Code:
https://dl.dropbox.com/u/81113031/sehs33.zip

which version of wbfs2fat did you use?
>>Started with the latest stable version and then replaced the files with the ones built for NewFang

best would be to leave the partition alone for the time being
>> Will do

the game files are created as theese .0 .1 ... files you see and then automatically renamed to the names the need to have in order for WBM and the loaders to see them
there are two cases in which they are not renamed
-there is an option to disable the renaming (for debug and users having dificulties with it)
-wbfs2fat crashed before/during renaming or could not rename the files (it should print errors - remember seeing some?)
>> I selected Disable renaming, thought that this would leave them with the same name they appear in WBM :)

if you disabled the automatic renaming simply rename all .0 files to .wbfs and all .1 files to .wbf1 by hand
move them to a folder called wbfs if the are located in the filesystems root directory
>> Will try to restore first

if you did not I will have to look a the backup file to see wether the games are OK
>> Highly appreciated

you could try to COPY some games to a different partition, rename them and see if you can see them in WBM (use its SHA1 check to see if they are good)
>> Did it for one file and that file shows in WBM :) Yet I would rather restore the files back (at least to help you solve this error that appeared to me :) )


Thanks again;
 
I have some strange effects with your backup and renaming myself (only a limited number of folders can be created)
this will probably take some time to investigate

the games should be good regardless

the backup itself seems to be ok and can be restored on my system
(did you try running it as administrator?)
might be someting special to windows 7
I will take a look at it sometime else - need to setup a W7 in a VM first

if you want to restore the backup there are other tools that can do that too
e.g. "dd" - look in the wbfs2fat howto for some hints

and please dont use -for-newFang
it only has changes handcrafted for him
but since it seems you only used it to try to restore you should be good
 
I forgot to mention: am using Windows 7 64 bits if that makes a difference.

Am travelling after a few hours, would leave everything as is in hope you find a solution and I can help you verify it :)
 
Ok I re-read your post above and renamed the files as you said: couldn't travel away not knowing if my games are safe or not :lol:

After renaming them and adding them to the folder on the root, they all show up in WBM normally!

Thanks plenty for your help; highly appreciated :yaywii:
 
So, I have a weird issue, after running this script, the drive is no longer readable on my Mac. My Wii and Windows laptop work fine, but not my macbook. I have tried 2 different MacBook's and they say the drive is unreadable. Does anyone have an idea of why this may be? Its not a horrible loss if I have to use my Windows laptop, its just annoying.
 

Site & Scene News

Popular threads in this forum