Hacking wfsdump - PC util for dumping WFS devices (WiiU File System)

snk4ever

Well-Known Member
Newcomer
Joined
May 22, 2006
Messages
60
Trophies
1
XP
374
Country
France
Hi,

I tried to install from GIT but the compilation is giving me an error:
me@microserver:~/wfslib$ make
make -C wfslib
make[1]: Entering directory '/home/me/wfslib/wfslib'
Makefile:21: .depend: No such file or directory
rm -f .depend
g++ -c -Wall -Werror -std=c++14 -MM Area.cpp Block.cpp DataBlock.cpp DeviceEncryption.cpp Directory.cpp File.cpp FileDevice.cpp KeyFile.cpp MetadataBlock.cpp Structs.cpp SubBlockAllocator.cpp Wfs.cpp WfsItem.cpp > .depend
g++ -c -Wall -Werror -std=c++14 Area.cpp -o Area.o
In file included from Area.cpp:13:0:
Structs.h:10:37: fatal error: boost/endian/buffers.hpp: No such file or directory
#include <boost/endian/buffers.hpp>
^
compilation terminated.
Makefile:13: recipe for target 'Area.o' failed
make[1]: *** [Area.o] Error 1
make[1]: Leaving directory '/home/me/wfslib/wfslib'
Makefile:19: recipe for target 'wfslib' failed
make: *** [wfslib] Error 2
I'm on Debian and installed the dependencies mentionned in the github page. Any idea if I'm doing something wrong ?
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
280
Trophies
0
XP
1,098
Country
Israel
Hi,

I tried to install from GIT but the compilation is giving me an error:
me@microserver:~/wfslib$ make
make -C wfslib
make[1]: Entering directory '/home/me/wfslib/wfslib'
Makefile:21: .depend: No such file or directory
rm -f .depend
g++ -c -Wall -Werror -std=c++14 -MM Area.cpp Block.cpp DataBlock.cpp DeviceEncryption.cpp Directory.cpp File.cpp FileDevice.cpp KeyFile.cpp MetadataBlock.cpp Structs.cpp SubBlockAllocator.cpp Wfs.cpp WfsItem.cpp > .depend
g++ -c -Wall -Werror -std=c++14 Area.cpp -o Area.o
In file included from Area.cpp:13:0:
Structs.h:10:37: fatal error: boost/endian/buffers.hpp: No such file or directory
#include <boost/endian/buffers.hpp>
^
compilation terminated.
Makefile:13: recipe for target 'Area.o' failed
make[1]: *** [Area.o] Error 1
make[1]: Leaving directory '/home/me/wfslib/wfslib'
Makefile:19: recipe for target 'wfslib' failed
make: *** [wfslib] Error 2
I'm on Debian and installed the dependencies mentionned in the github page. Any idea if I'm doing something wrong ?
You need boost >= 1.60 I think. You are probably not on the newest Debian stable
 
  • Like
Reactions: snk4ever

snk4ever

Well-Known Member
Newcomer
Joined
May 22, 2006
Messages
60
Trophies
1
XP
374
Country
France
I upgraded my Debian, compiled the software but unfortunately I couldn't get my image or my drive to mount.
My goal was to try to recover my save files from a WiiU drive that the WiiU doesn't recognize anymore after a power outage.

I guess the partition is too damaged to have any hope to recover my saves.
I'm leaving the messages I got just in case someone has an idea or there is a forcing option I could try:

From my image:
me@microserver:~/wfslib/wfs-fuse$ sudo ./wfs-fuse /data/transmission/WiiU/WiiUHDDImage.dd /mnt/disque/ --otp ../mywiiukeys/otp.bin --seeprom ../mywiiukeys/seeprom.bin
Error: Wfs: Failed to detect sector size and sectors count​

From the HDD itself:
me@microserver:~/wfslib/wfs-fuse$ sudo ./wfs-fuse /dev/sdd /mnt/disque/ --otp ../mywiiukeys/otp.bin --seeprom ../mywiiukeys/seeprom.bin
Error: Wfs: Failed to detect sector size and sectors count​
 
Last edited by snk4ever,

FirmeBatera

New Member
Newbie
Joined
Dec 5, 2017
Messages
1
Trophies
0
Age
25
XP
51
Country
Brazil
wii u comando.png



I need help to extract the files from the usb drive on my computer, after executing command get message
. ERRO: Unexpected WFS version (bad Key?)
 

Pachee

Well-Known Member
Member
Joined
Nov 3, 2015
Messages
480
Trophies
0
XP
560
Country
United States
No idea why these failed, everything else was dumped perfectly fine.
Code:
Dumping...
Error: Failed to dump folder "usr\import"
Error: Failed to read "usr\title\00050000\1fa82000\code\title.fst"
Error: Failed to read "usr\title\00050000\1fa82000\meta\AboutWiiU00.mp4"
Error: Failed to read "usr\title\00050000\1fa82000\meta\AboutWiiU01.mp4"
Error: Failed to read "usr\title\00050000\1fa82000\meta\AboutWiiU05.mp4"
Error: Failed to read "usr\title\00050000\1fa82000\meta\bootDrcTex.tga"
Error: Failed to read "usr\title\00050000\1fa82000\meta\bootMovie.h264"
Error: Failed to read "usr\title\00050000\1fa82000\meta\bootTvTex.tga"
Error: Failed to read "usr\title\00050000\1fa82000\meta\Manual.bfma"
Error: Failed to read "usr\title\00050000\1fa82100\code\attractmode_wrapper.rpx"
Error: Failed to read "usr\title\00050000\1fa82100\code\title.fst"
Error: Failed to read "usr\title\00050000\1fa82100\code\title.tmd"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode00.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode01.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode02.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode03.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode04.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode05.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode06.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\AttractMode07.mp4"
Error: Failed to read "usr\title\00050000\1fa82100\meta\bootDrcTex.tga"
Error: Failed to read "usr\title\00050000\1fa82100\meta\bootLogoTex.tga"
Error: Failed to read "usr\title\00050000\1fa82100\meta\bootMovie.h264"
Error: Failed to read "usr\title\00050000\1fa82100\meta\bootTvTex.tga"
Error: Failed to read "usr\title\00050000\1fa82100\meta\iconTex.tga"
Error: Failed to read "usr\title\00050000\1fa82100\meta\Manual.bfma"
Error: Failed to read "usr\title\00050000\1fa82100\meta\meta.xml"
Error: Failed to read "usr\title\00050000\1fa82200\code\featured_wrapper.rpx"
Error: Failed to read "usr\title\00050000\1fa82200\code\title.fst"
Error: Failed to read "usr\title\00050000\1fa82200\code\title.tmd"
Error: Failed to read "usr\title\00050000\1fa82200\meta\bootDrcTex.tga"
Error: Failed to read "usr\title\00050000\1fa82200\meta\bootLogoTex.tga"
Error: Failed to read "usr\title\00050000\1fa82200\meta\bootMovie.h264"
Error: Failed to read "usr\title\00050000\1fa82200\meta\bootTvTex.tga"
Error: Failed to read "usr\title\00050000\1fa82200\meta\Featured.xml"
Error: Failed to read "usr\title\00050000\1fa82200\meta\iconTex.tga"
Error: Failed to read "usr\title\00050000\1fa82200\meta\Manual.bfma"
Error: Failed to read "usr\title\00050000\1fa82200\meta\meta.xml"
Error: Failed to read "usr\title\00050000\1fa82300\code\newreleases_wrapper.rpx"
Error: Failed to read "usr\title\00050000\1fa82300\meta\bootDrcTex.tga"
Error: Failed to read "usr\title\00050000\1fa82300\meta\bootLogoTex.tga"
Error: Failed to read "usr\title\00050000\1fa82300\meta\bootMovie.h264"
Error: Failed to read "usr\title\00050000\1fa82300\meta\bootTvTex.tga"
Error: Failed to read "usr\title\00050000\1fa82300\meta\iconTex.tga"
Error: Failed to read "usr\title\00050000\1fa82300\meta\meta.xml"
Error: Failed to read "usr\title\00050000\1fa82300\meta\NewReleases.xml"
Error: Failed to dump folder "usr\title\00050002"
Done!
 

Drak

Active Member
Newcomer
Joined
Oct 29, 2007
Messages
41
Trophies
0
Website
Visit site
XP
296
Country
Canada
Hi, I have a problem and it seems that this tool could help me.

Here's my topic: https://gbatemp.net/threads/wii-u-external-hard-drive-recovery.494111/

Here's in my mind what I would need to do after reading this thread:

DONE - 1- Buy another external drive;
DONE - 2- Format that Drive with the WII U;
3- Plug-in old hard drive (unallocated) and scan with software recovery tool;
4- Get the files otp.bin and seeprom.bin
5- Download this: https://gbatemp.net/threads/wfsdump-pc-util-for-dumping-wfs-devices-wiiu-file-system.478480/
6- Put the recovery data at the same place as wfs-extract.exe;
7- Open command prompt and use the following:

Dump USB device under Windows
(Needed to be run with administrator previliges, so run from privileged command line)
Code:
wfs-extract --input \\.\PhysicalDrive3 --output dump_dir --otp otp.bin --seeprom seeprom.bin

You need to replace PhysicalDrive3 with the correct device, you can figure it out with this PowerShell command:
Code:
Get-WmiObject Win32_DiskDrive

8- Use the file injector to inject the save folder into the new drive;
9- Redownload all the games on the new drive.

I can't seem to get a recovery tool to scan my unallocated drive to find the bin files. I tried Stellar Phoenix Windows Data Recovery, Recuva and testdisk. Testdisk/Stellar don't see the drive. Recuva has the error "cannot determine file system".

Any help would be appreciated.
 
  • Like
Reactions: Well

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,232
Country
Brazil
I can't seem to get a recovery tool to scan my unallocated drive to find the bin files. I tried Stellar Phoenix Windows Data Recovery, Recuva and testdisk. Testdisk/Stellar don't see the drive. Recuva has the error "cannot determine file system".

No recovery tool can recognize the Wii U filesystem.
What are you trying to recover? If you want save files then maybe you can dump them with wfs-extract, then reinstall the games and inject them back.
 

Drak

Active Member
Newcomer
Joined
Oct 29, 2007
Messages
41
Trophies
0
Website
Visit site
XP
296
Country
Canada
No recovery tool can recognize the Wii U filesystem.
What are you trying to recover? If you want save files then maybe you can dump them with wfs-extract, then reinstall the games and inject them back.

Yup I want save files. How do I dump them with wfs-extract though? It says in the thread I need the bin files? Where can I find them?
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,232
Country
Brazil
Ok thanks! My console is not hacked though. Do I need to do some steps to use that homebrew or should I just put the dumper on the sd card and it should work?
You can just set up the fies on the SD and run the homebrew launcher using the only the browser but the sucess rate isn't the greatest. You should install Haxchi for better results.
 

Drak

Active Member
Newcomer
Joined
Oct 29, 2007
Messages
41
Trophies
0
Website
Visit site
XP
296
Country
Canada
You can just set up the fies on the SD and run the homebrew launcher using the only the browser but the sucess rate isn't the greatest. You should install Haxchi for better results.

Hello I installed everything. After following this https://wiiu.hacks.guide/nand-backup, I get an error saying: "Failed to open /otp.bin for writing!"

Where are the save files located? Do I need to plug in my external hard drive at this point? From my understanding, all the save files should be on the console right?
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,232
Country
Brazil
Hello I installed everything. After following this https://wiiu.hacks.guide/nand-backup, I get an error saying: "Failed to open /otp.bin for writing!"
Check the little lock on the SD card to see if it is write-protected.

Where are the save files located? Do I need to plug in my external hard drive at this point? From my understanding, all the save files should be on the console right?
The save files are kept on the same drive that contains the game. If you had them on the USB HDD then you have to connect it to the PC to get the saves (once you have otp.bin and seeprom.bin)
 
Last edited by piratesephiroth,

tivu100

Well-Known Member
Member
Joined
Jun 6, 2015
Messages
2,260
Trophies
0
Age
34
XP
1,136
Country
United States
Can I just use this to dump just one specific save data folder? Got few games on, but only one game (BOTW) that I want to recover the save data.
 
Last edited by tivu100,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BakerMan @ BakerMan: just for the record, both are brain rot