Hacking WiiMC update 1.2.4 ate my HD partition

chin77

Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
11
Trophies
0
Location
Canada
Website
Visit site
XP
56
Country
Canada
Yikes, a bit of a bug here:

I was updating to the latest version of WiiMC (onto my fat32 HD, partition 1), it did so: downloaded then exited the program. then I went back in to WiiMC to check out the changes and I got a message that it couldn't find my usb:\Apps\WiiMC folder. Ok no big deal right?

Turns out my the whole partition got garbled very quickly... almost instantly.
Please have a look at the screenshot. I lost everything. about 270 gigs worth.

http://www.freeimagehosting.net/o566j

Anybody recognize some of the text that my files and folders were replaced with? Windows chckdisk said there was file system errors and insufficient disk space to recover lost data.
It left partition 2 untouched, yay.

I am on the latest d2x beta v9 (r47) I used the recommended base setup on the wiiflow wiki.
the latest Homebrew channel... priiloader... hmmm anything else?

If there's any more info I can provide to help with please let me know.
 

giantpune

Well-Known Member
Member
Joined
Apr 10, 2009
Messages
2,860
Trophies
0
XP
213
Country
United States
looks like the program is writing its settings file over the FAT of the partition. dont do anything else that writes to the partition. hopefully you still have the other copy of the FAT unharmed. get out your hex editor and read those blocks and see if you can find it. if so, you may be able to copy the good one over teh broken one.
 

XFlak

Wiitired but still kicking
Member
Joined
Sep 12, 2009
Messages
13,046
Trophies
3
Age
37
Location
Cyprus, originally from Toronto
Website
modmii.github.io
XP
7,934
Country
Cyprus
I had the same thing happen to me, but it was one of the first wiimc updates to stop using IOS202 and start using ahbprot (so a long time ago), and IIRC correctly it was a libogc issue in WiiMC. The fact that it has returned is very scary for me, it really pissed me off when I lost all my data the last time.

I don't really understand what pune is suggesting above, when it happened to me I just reformatted and accepted the fact that I lot a shitload of data. Anyways, listen to pune, if anyone can help you it's him.
 

obcd

Well-Known Member
Member
Joined
Apr 5, 2011
Messages
1,594
Trophies
0
XP
432
Country
Belgium
The fat and fat 32 partition systems use 2 tables to store the location of a file. One is the fat table that basically contains the clusters that are used by files and folders.
The other one is the directory table that contains the names of the files, their length, their attributes and the location of their starting cluster in the fat table.
Since all file and folder names got corrupted, it looks like the directory table got overwritten with something else.
While it's still possible to find the location of every file and folder on the disk when the fat is undamaged, you don't have a reference to their name anymore, and you don't know their exact length either.
I think folders use their own directory table. I am unsure if they use their own fat table as well. (I doubt it.) It would mean that probably you could recover everything located in subfolders. (If you have an undamaged fat table.)
 

chin77

Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
11
Trophies
0
Location
Canada
Website
Visit site
XP
56
Country
Canada
Thank you all, for the responses :)

I knew well enough not to touch write to the disk, without really knowing what sort of work I'd have to do to restore the partition.
Giantpune, I know more Chinese than I do hex editing, I take it there Is two copies of the FAT in there somowhere?
The last and only time I've used a hex editor was in 1992 to get Captain Comic to have infinite lives, the instructions were simple and I had to change only 2 characters:)

It seems that I'd better cut my losses, besides, what did I lose but some custom game covers and time. I have my discs after all.

Funny, I have no reason to play media on the WiiMC nor the space on the disk, I'm just excited to see these apps develop.
I'm a fan of the scene and I wish I could be able contribute, but UP DOWN LEFT RIGHT B A START is all the code I know.

On that thought If any of you guys need some photoshop done I could contribute that.


Thanks again and keep at it. You guys rock!
 

chin77

Member
OP
Newcomer
Joined
Sep 13, 2009
Messages
11
Trophies
0
Location
Canada
Website
Visit site
XP
56
Country
Canada
Haha, I didn't even get that code right:)

Googling getdataback fat32 now.

Haha!, WARNING DO NOT INSTALL THIS PROGRAM ON THE HARD DRIVE YOU ARE TRYING TO RECOVER DATA FROM!

Awesome.

Well, There it goes, I seek hex! ... icon.png......boot.dol...... Nice, looks promising! 4hrs remaining.

Thanks again guys.
 

You may also like...

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=-dgbcPl6TxI