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

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Problem with linux cmake:
zlib-1.2.12.tar.gz is no longer available. cmake process aborted.

Current release: zlib 1.2.13

October 13, 2022

/zlib-1.2.13.tar.gz
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Error: Failed to download from mirror set:
SPAMPROTECTIONMAKESMECRAZYzlib.net/zlib-1.2.12.tar.gz: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
there is no zlib in home/username/

I should change the url in the cmake-files to the current version, because the zlib 1.2.12 is no longer available on zlibdotnet
Post automatically merged:

/wfs-tools/vcpkg/ports/zlib/portfile.cmake contains 1.2.12 . changed to 1.2.13
 
Last edited by Rabrec,

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
281
Trophies
0
XP
1,108
Country
Israel
Problem with linux cmake:
zlib-1.2.12.tar.gz is no longer available. cmake process aborted.

Current release: zlib 1.2.13

October 13, 2022

/zlib-1.2.13.tar.gz
Try to update the vcpkg submodule (go to that directory and git checkout master && git pull)
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
Thx, that helped to solve the zlib problem. but now: (cmake --preset default)

-- Found Boost: /home/ralf/wfs-tools/build/default/vcpkg_installed/x64-linux/include (found suitable version "1.80.0", minimum required is "1.64.0")
CMake Warning at /usr/share/cmake-3.24/Modules/FindBoost.cmake:1384 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/share/cmake-3.24/Modules/FindBoost.cmake:1507 (_Boost_COMPONENT_DEPENDENCIES)
/usr/share/cmake-3.24/Modules/FindBoost.cmake:2118 (_Boost_MISSING_DEPENDENCIES)
build/default/vcpkg_installed/x64-linux/share/boost/vcpkg-cmake-wrapper.cmake:11 (_find_package)
vcpkg/scripts/buildsystems/vcpkg.cmake:783 (include)
wfs-extract/CMakeLists.txt:16 (find_package)


and then: (cmake --build --preset release)

[1/19] Building CXX object wfslib/CMak...wfslib.dir/Release/src/directory.cpp.o
FAILED: wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o
/usr/bin/c++ -DCMAKE_INTDIR=\"Release\" -I/home/ralf/wfs-tools/wfslib/include -I/home/ralf/wfs-tools/wfslib/src -I/home/ralf/wfs-tools/wfslib/include/wfslib -isystem /home/ralf/wfs-tools/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o -MF wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o.d -o wfslib/CMakeFiles/wfslib.dir/Release/src/directory.cpp.o -c /home/ralf/wfs-tools/wfslib/src/directory.cpp
In file included from /home/ralf/wfs-tools/wfslib/src/area.h:14,
from /home/ralf/wfs-tools/wfslib/src/directory.cpp:10:
/home/ralf/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: Datei oder Verzeichnis nicht gefunden
11 | #include <span>
| ^~~~~~
compilation terminated.
 

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
that was great.

i updated gcc-9.4 to gcc-11


then another exit:

cmake --build --preset release
[17/19] Linking CXX executable wfs-file-injector/Release/wfs-file-injector
FAILED: wfs-file-injector/Release/wfs-file-injector
: && /usr/bin/c++ -O3 -DNDEBUG wfs-file-injector/CMakeFiles/wfs-file-injector.dir/Release/src/main.cpp.o -o wfs-file-injector/Release/wfs-file-injector wfslib/Release/libwfslib.a vcpkg_installed/x64-linux/debug/lib/libboost_program_options.a -static-libstdc++ -static-libgcc -s -lcryptopp-static && :
/usr/bin/ld: -lcryptopp-static kann nicht gefunden werden
collect2: error: ld returned 1 exit status
[18/19] Building CXX object wfs-extract/CMakeFiles/wfs-extract.dir/Release/src/main.cpp.o
ninja: build stopped: subcommand failed.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
try cmake --version in the terminal. you may have to update it. you can update an existing version of cmake with cmake, but I might start over, because sometimes that doesn't work properly.
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
281
Trophies
0
XP
1,108
Country
Israel
that was great.

i updated gcc-9.4 to gcc-11


then another exit:

cmake --build --preset release
[17/19] Linking CXX executable wfs-file-injector/Release/wfs-file-injector
FAILED: wfs-file-injector/Release/wfs-file-injector
: && /usr/bin/c++ -O3 -DNDEBUG wfs-file-injector/CMakeFiles/wfs-file-injector.dir/Release/src/main.cpp.o -o wfs-file-injector/Release/wfs-file-injector wfslib/Release/libwfslib.a vcpkg_installed/x64-linux/debug/lib/libboost_program_options.a -static-libstdc++ -static-libgcc -s -lcryptopp-static && :
/usr/bin/ld: -lcryptopp-static kann nicht gefunden werden
collect2: error: ld returned 1 exit status
[18/19] Building CXX object wfs-extract/CMakeFiles/wfs-extract.dir/Release/src/main.cpp.o
ninja: build stopped: subcommand failed.
I had to update the cmake file because of a change in the vcpkg package.
Anyway, I have updated the branches (wfs-tools & wfslib), pull from master and it should work now.
 
  • Like
Reactions: ber71 and godreborn

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
thanks for updating.
cmake runs without errors, but i can't find wfs-fuse. there are libraries (application/x-sharedlib) in the release folders but no application.

sudo wfs-fuse /dev/sdh /mnt --otp otp.bin --seeprom seeprom.bin -o default_permissions,allow_other

sudo: wfs-fuse: unknown command.

I feel lost. Need some further help...
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
@EyeKey , I'm trying to compile this, but I ran into this error with the last step:

FAILED: CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o
/usr/bin/c++ -DCRYPTOPP_INCLUDE_PREFIX=cryptopp -DCMAKE_INTDIR=\"Release\" -I/home/godreborn/wfs-tools/wfslib/include -I/home/godreborn/wfs-tools/wfslib/src -I/home/godreborn/wfs-tools/wfslib/include/wfslib -isystem /home/godreborn/wfs-tools/wfslib/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -MF CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o.d -o CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -c /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp
In file included from /home/godreborn/wfs-tools/wfslib/src/metadata_block.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp:8:
/home/godreborn/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: No such file or directory
 

EyeKey

Well-Known Member
OP
Member
Joined
Feb 10, 2017
Messages
281
Trophies
0
XP
1,108
Country
Israel
thanks for updating.
cmake runs without errors, but i can't find wfs-fuse. there are libraries (application/x-sharedlib) in the release folders but no application.

sudo wfs-fuse /dev/sdh /mnt --otp otp.bin --seeprom seeprom.bin -o default_permissions,allow_other

sudo: wfs-fuse: unknown command.

I feel lost. Need some further help...
wfs-fuse was disabled in the new build system, as I had to fix few things there.
Anyway I just did it, update wfs-tools and it should work now.
@EyeKey , I'm trying to compile this, but I ran into this error with the last step:

FAILED: CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o
/usr/bin/c++ -DCRYPTOPP_INCLUDE_PREFIX=cryptopp -DCMAKE_INTDIR=\"Release\" -I/home/godreborn/wfs-tools/wfslib/include -I/home/godreborn/wfs-tools/wfslib/src -I/home/godreborn/wfs-tools/wfslib/include/wfslib -isystem /home/godreborn/wfs-tools/wfslib/build/default/vcpkg_installed/x64-linux/include -O3 -DNDEBUG -Wall -Wextra -Wpedantic -Werror -std=gnu++2a -MD -MT CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -MF CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o.d -o CMakeFiles/wfslib.dir/Release/src/sub_block_allocator.cpp.o -c /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp
In file included from /home/godreborn/wfs-tools/wfslib/src/metadata_block.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.h:11,
from /home/godreborn/wfs-tools/wfslib/src/sub_block_allocator.cpp:8:
/home/godreborn/wfs-tools/wfslib/src/block.h:11:10: fatal error: span: No such file or directory
it is the same error that @Rabrec had. you are probably using an old compiler. The current requirements are gcc 11+ or clang 14+.
 
  • Like
Reactions: godreborn

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
I got it all setup, had to update cmake and gcc+ on ubuntu 22.04.

1668988694266.png

Post automatically merged:

@EyeKey , tried building the windows version, and this is what happened:

1668991193680.png

Post automatically merged:

Nm, the problem was that the recursive folders didn't download
 
Last edited by godreborn,

Rabrec

Member
Newcomer
Joined
Nov 10, 2022
Messages
8
Trophies
0
Age
51
XP
22
Country
Germany
thx for your support. After updating the compiler I could create the wfs-fuse.

Without the specific otp.bin and seeprom.bin of the console that formatted the drive I can't access it nevertheless. Right?
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
thx for your support. After updating the compiler I could create the wfs-fuse.

Without the specific otp.bin and seeprom.bin of the console that formatted the drive I can't access it nevertheless. Right?
Yeah, the otp and seeprom are needed to read a wiiu formatted drive.
 

CrazySquid

Well-Known Member
Member
Joined
May 27, 2017
Messages
232
Trophies
0
XP
868
Country
Hi, is it possible to write to a WFS HDD using wfs-fuse? or is it read-only? I found interesting that NUSSpli is capable of installing titles by reading them in USB:/install , so my idea would be to connect my Wii U HDD to the PC and put the contents I want to install there, using WFS utilities. The reason for this is because my Wii U is picky with SD Cards once I eject them... and it's a pain to make them work again.

Thanks!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • AncientBoi @ AncientBoi:
    :cry: You arent'? :cry:
  • AncientBoi @ AncientBoi:
    [tells my mom not to send you anymore Christmas presents] :evil: :rofl2: :tpi:
  • Xdqwerty @ Xdqwerty:
    im a minor
  • AncientBoi @ AncientBoi:
    So. I'm a Major
  • Xdqwerty @ Xdqwerty:
    im under 18
  • AncientBoi @ AncientBoi:
    I'm waaaaaaaaaay over 18. lol
  • Xdqwerty @ Xdqwerty:
    that makes you a pedo
  • AncientBoi @ AncientBoi:
    Pedo = 1. child 2. boy 3. ? I forgot. But I wish I were still a "Boy" :sad::cry::cry::cry:
  • Xdqwerty @ Xdqwerty:
    i meant simping over someone under 18 while you are over 18 makes you a pedophile
  • AncientBoi @ AncientBoi:
    And when did I "simp" you?
  • AncientBoi @ AncientBoi:
    Just go make me the darn coffee :angry:
  • AncientBoi @ AncientBoi:
    Tea?
  • AncientBoi @ AncientBoi:
    LoL lmao
  • AncientBoi @ AncientBoi:
    L8er dude. going to watch YT's on the Ukraine/ruskie war.
    +1
  • Xdqwerty @ Xdqwerty:
    @AncientBoi,tbh i think im
    not interested in whats going on irl
  • BakerMan @ BakerMan:
    tomorrow's memorial day, so i've been looking for a playlist, but it's all just country and alternative rock
  • Xdqwerty @ Xdqwerty:
    @BakerMan, memorial day for who?
  • BakerMan @ BakerMan:
    why the hell can't i find one with a song about the soldiers who died in battle, the very reason we celebrate
  • Sonic Angel Knight @ Sonic Angel Knight:
    Bake them a cake :ninja:
    +1
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    I can change my name back tomorrow
  • Xdqwerty @ Xdqwerty:
    @a_username_that_isnt_cool, what will your new username be?
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    My original one
    +1
  • RedColoredStars @ RedColoredStars:
    Stayin inside for memorial day. Just like other holidays, most people dont care or think about the actual reasons behind it. For most it's just another reason to get shit faced drunk and spout off hyper-patriotic nonsense. The Trumpers around here going to be out in full force with their trucks and guns and flags making noise all over town. Hard pass.
    +1
    RedColoredStars @ RedColoredStars: Stayin inside for memorial day. Just like other holidays, most people dont care or think about... +1