Restore nanad with broken emunand

  • Thread starter Thread starter LuckyCat
  • Start date Start date
  • Views Views 2,519
  • Replies Replies 14

LuckyCat

Member
Newcomer
Joined
Nov 25, 2022
Messages
11
Reaction score
0
Trophies
0
Age
30
XP
67
Country
Poland
Hi All!

I have switch v2 and after installation hwfly v5, I load hikate and did nand backup. After that I go to emuMMC and create it using nand backup (on this moment I pulled out SD without turning out switch and copy all to PC). When I put SD back and try to load atmosphere I have some error. I panic and restore nand form backup (it’s my mistake) and after that I have purple screen when I try to load OFW or start without hwfly. When I start atmospehere I have error ‘Pkg2 read failed! Failed to launch HOS!’.

I think I did failed backup and restore it to nand. I try dump keys using lockpick and its complete with mistakes, but I have prod.keys file.

Can you pleas answer I have some chance to fix my switch or it completely broken?

Thanks
 

Attachments

Hi All!

I have switch v2 and after installation hwfly v5, I load hikate and did nand backup. After that I go to emuMMC and create it using nand backup (on this moment I pulled out SD without turning out switch and copy all to PC). When I put SD back and try to load atmosphere I have some error. I panic and restore nand form backup (it’s my mistake) and after that I have purple screen when I try to load OFW or start without hwfly. When I start atmospehere I have error ‘Pkg2 read failed! Failed to launch HOS!’.

I think I did failed backup and restore it to nand. I try dump keys using lockpick and its complete with mistakes, but I have prod.keys file.

Can you pleas answer I have some chance to fix my switch or it completely broken?

Thanks
There may be hope. See if you can mount the backup files using NXNandManager.

This might prove useful…just sticking it here for now. Do NXNandManager first…
https://gbatemp.net/threads/emutool...r-sd-switch-emu-type-on-sxos-and-more.550756/
 
  • Like
Reactions: LuckyCat
I cant mount backup files using NXNandManager, i have this in Debug console

Code:
22:08:45.904 : NxStorage::NxStorage() begins for C
22:08:45.905 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:08:45.905 : NxStorage::NxStorage() size is 2147483648 (diskFreeBytes = 32)
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 43414C30 (CAL0) at offset 0000000000
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 434552544946 (CERTIF) at offset 0000000680
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000000200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000800200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0001800200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 010021000E00000009000000 () at offset 0000000530
22:08:46.161 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013B4
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013F0
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000001424
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012E8
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012D0
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012F0
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AF8
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ADC
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ACC
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AC0
22:08:46.163 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:08:46.164 : NxStorage::NxStorage() - TYPE IS UNKNOWN
22:08:46.164 : NxStorage::NxStorage() ends. Size is 2147483648 (diskFreeBytes = 32). type is UNKNOWN - not splitted
 
I cant mount backup files using NXNandManager, i have this in Debug console

Code:
22:08:45.904 : NxStorage::NxStorage() begins for C
22:08:45.905 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:08:45.905 : NxStorage::NxStorage() size is 2147483648 (diskFreeBytes = 32)
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 43414C30 (CAL0) at offset 0000000000
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 434552544946 (CERTIF) at offset 0000000680
22:08:45.906 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000000200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000800200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0001800200
22:08:45.907 : NxStorage::NxStorage() - Looking for magic 010021000E00000009000000 () at offset 0000000530
22:08:46.161 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013B4
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013F0
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000001424
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012E8
22:08:46.162 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012D0
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012F0
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AF8
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ADC
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ACC
22:08:46.163 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AC0
22:08:46.163 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:08:46.164 : NxStorage::NxStorage() - TYPE IS UNKNOWN
22:08:46.164 : NxStorage::NxStorage() ends. Size is 2147483648 (diskFreeBytes = 32). type is UNKNOWN - not splitted
Did you supply the prod.keys? See red #1 below…

1666457166714.png
 
  • Like
Reactions: LuckyCat
Did you supply the prod.keys? See red #1 below…
After supplying keys i have similar error
Code:
22:16:20.072 : NxStorage::NxStorage() begins for C
22:16:20.073 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:16:20.073 : NxStorage::NxStorage() size is 2147483648 (diskFreeBytes = 32)
22:16:20.073 : NxStorage::NxStorage() - Looking for magic 43414C30 (CAL0) at offset 0000000000
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 434552544946 (CERTIF) at offset 0000000680
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000000200
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000800200
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0001800200
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 010021000E00000009000000 () at offset 0000000530
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013B4
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013F0
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000001424
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012E8
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012D0
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012F0
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AF8
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ADC
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ACC
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AC0
22:16:20.079 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:16:20.080 : NxStorage::NxStorage() - TYPE IS UNKNOWN
22:16:20.080 : NxStorage::NxStorage() ends. Size is 2147483648 (diskFreeBytes = 32). type is UNKNOWN - not splitted
22:16:20.081 : NxStorage::setKeys() => Not a valid NxStorage
 
After supply keys i have similar error
Code:
22:16:20.072 : NxStorage::NxStorage() begins for C
22:16:20.073 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:16:20.073 : NxStorage::NxStorage() size is 2147483648 (diskFreeBytes = 32)
22:16:20.073 : NxStorage::NxStorage() - Looking for magic 43414C30 (CAL0) at offset 0000000000
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 434552544946 (CERTIF) at offset 0000000680
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000000200
22:16:20.076 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0000800200
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 4546492050415254 (EFI PART) at offset 0001800200
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 010021000E00000009000000 () at offset 0000000530
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013B4
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000013F0
22:16:20.077 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000001424
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012E8
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012D0
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 00000012F0
22:16:20.078 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AF8
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ADC
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040ACC
22:16:20.079 : NxStorage::NxStorage() - Looking for magic 504B3131 (PK11) at offset 0000040AC0
22:16:20.079 : NxHandle::initHandle() set for NxStorage, current pointer is 0000000000 - m_off_start = 0000000000, m_off_end = 007FFFFFFF, crypto_mode = 0
22:16:20.080 : NxStorage::NxStorage() - TYPE IS UNKNOWN
22:16:20.080 : NxStorage::NxStorage() ends. Size is 2147483648 (diskFreeBytes = 32). type is UNKNOWN - not splitted
22:16:20.081 : NxStorage::setKeys() => Not a valid NxStorage
This is not a good sign. Looks like your backups are unknown. If you restored an unknown backup over your Sysnand…we’re not in a good place. How about the emunand you created? Any chance you can read it with NXNandManager?
 
  • Like
Reactions: LuckyCat
This is not a good sign. Looks like your backups are unknown. If you restored an unknown backup over your Sysnand…we’re not in a good place. How about the emunand you created? Any chance you can read it?
I try it on emunand copy (backup i did form this emunand copy)...
It possible to restore nand form another one switch and add my keys to this backup (from another switch) ?
 
I try it on emunand copy (backup i did form this emunand copy)...
Keep us posted. It’s our last chance.
It possible to restore nand form another one switch and add my keys to this backup (from another switch) ?
You can but it will not be able to connect to Nintendo. You will be, for all intents and purposes, permanently self banned.
 
  • Like
Reactions: LuckyCat
Keep us posted. It’s our last chance.
Its didnt work. The same error.

You can but it will not be able to connect to Nintendo. You will be, for all intents and purposes, permanently self banned.
Ok, now its only way to save my switch... How can i inject my keys to backup form another switch?
 
  • Like
Reactions: LuckyCat
Damn. Before we get radical let’s try maintenance mode:


We want to try everything before we admit defeat and accept the perma-ban.
I tryed to do this, but just purple screen after pressing POWER button...
I think on this case its acceptebel lose online.
 
  • Like
Reactions: LuckyCat
Finally, I open my broken backup by HacDiskMount. I seen error about fail to read first GPT, but it open secondary GPT. A did dump form all things like prodinfo, pordinfof, system, uesrs itp. Next I integrate it on backup form another switch and did restore form it. After that my switch start but frozen on second screen… I check prodinfo on NxNandManager but it cant decrypt it (using my kyes)… Then I just did PikaFix guide and integrate new prodinfo. Now my switch can start normally, but I lose online.
 

Site & Scene News

Popular threads in this forum