Hacking Package2 is too big or too small - can I save this emuMMC?

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
Ok, so for some reason Windows sees the emuMMC partition on my memory card as a partition it can actually access (and the really weird thing is that normally with USB drives it only accepts one partition but the emuMMC partition is after the data partition.) Unfortunately, when I was trying to update Atmosphere I accidentally extracted to the wrong drive letter and it started putting files on that partition. I suppose this must mean that it overwrote several megabytes of the emuMMC and upon booting the Atmosphere payload I received the error that package2 is too big or too small. Now, unfortunately, I do not have a backup of my emuMMC (yeah, I know, I know.) The current version of Atmosphere is approximately 16 megabytes once extracted, but I think I managed to catch it before it did the full thing (still, I have to count on it at least being close to that. I forget exactly where it stopped at.)

Now I noticed on the eMMC it's possible in Hekate to backup all those partitions separately without having to backup the full GPP and if you go to restore it it will only restore the ones that are present which I presume means it's possible even to restore those without having to restore user or system (is the database of installs/etc in user or system btw?) However, if you switch to emuMMC mode it grays out that one specific button! I had hoped since my eMMC and emuMMC are on the same base firmware version I could backup and restore just the necessary partitions (since it only should have corrupted a few megabytes or so) but it only would let me do this with the boot partitions and not any of the rest. The closest I could do there is a full raw GPP restore. I don't know if this would work anyway since the emuMMC was formatted and the prodinfo cleared along with 90dns so it could hopefully go online relatively safely in homebrew so things may not really line up the same without just restoring all those partitions including system (which is why I wonder if the database for things like install would be in the user partition or system partition.) I couldn't find any other tools that would do more than Hekate in this respect

I'm really hoping I don't have to lose everything on the emuMMC and have to redo it. Not only is it a lot of work to redo, but I'm worried about losing saves and such since the last backups (I'm a bit better about backing them up) plus most of those are games I have on both the eMMC and emuMMC (ex Breath of the Wild which I play modded in the emuMMC and obviously unmodded in the eMMC) so I worry a bit about conflicts even potentially. If at all possible I'd like to save it without having to start over. Is this possible?
 

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
Ok, an update for anyone who may ever have a similar problem. I finally found a program that is able to work on the individual partitions of an emuMMC called NxNandManager: https://github.com/eliboa/NxNandManager I had to run it in a Windows 7 VM to get it to work right, but it was able to restore the individual package2 partitions (I just went ahead and did everything but system even though it probably only needed one or two restored) and it was even able to incognito the prodinfo for me to save me the trouble of having to redo that in homebrew (since I went ahead and restored that backup too.) Restoring the partitions fixed the issue and I was once again able to boot into my emuMMC thankfully.

I guess this also comes with a warning to anyone else connecting their memory cards to a Windows PC: you should definitely go into the disk manager in Windows and remove the drive letter for the emuMMC area if Windows is showing it (falsely) as a FAT32 partition to prevent it from messing things up. (And I've been worried all along about it placing its usual unnecessary and definitely bad idea "System Volume Information" folder and files automatically without asking. I guess this confirms that it could possibly damage something if it put enough data in there to overwrite more than just the boot.)
 

heisenberghdf

New Member
Newbie
Joined
Feb 28, 2021
Messages
4
Trophies
0
Age
32
XP
35
Country
Spain
hello. i have the same problem the last week. i decided to create a new emummc, nobody give me a solution or help, so... Now, i have a copy of the SD with the old emummc. can i put on working again the old emummc? i don´t want to lost my savegames or nothing.
Thanks!
 

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
If all that was corrupted was the first bit, yeah. I don't know how much of these first partitions (if any) gets changed by updates, but you might have to have the same system version if you've updated any since (seems unlikely, but worth mentioning.) These first few partitions are mostly for booting up and accessing a recovery mode, so overwriting them doesn't overwrite installed data, saves, etc. Just replace the first few partitions, not user and probably it's better not to replace system (I'm not sure if that one has any data or not, so I'll just say don't replace it unless you have to.) Don't replace user though.
 
Last edited by Nazosan,

heisenberghdf

New Member
Newbie
Joined
Feb 28, 2021
Messages
4
Trophies
0
Age
32
XP
35
Country
Spain
as I told you, that I did not find a solution, I formatted the SD card and created a new Emunand. My question is if it is possible to somehow recover my previous user or restore my savegames.
Thanks
 

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
Ah, I thought you were saying you made a new card. If you formatted and remade a partition you overwrote all your old data and are out of luck.
 

heisenberghdf

New Member
Newbie
Joined
Feb 28, 2021
Messages
4
Trophies
0
Age
32
XP
35
Country
Spain
Yes, i formatted. But i have a copy of the data of the SD, exactly of the folder Emummc with all the data and savegames. Can be put this old savegames on the new profile of the new emunand?
 

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
If you exactly imaged it as it was before you could first make a backup of your current partitions, restore the old image, and then restore the backups you just made of the package2 partitions but not system or user. Restoring the full backup WILL overwrite whatever you have on there now however. You're going to have to choose one or the other. If the new one is pretty recent there may not be much to save though. You could just backup your saves via homebrew first and then restore them after doing the transfer.
 

heisenberghdf

New Member
Newbie
Joined
Feb 28, 2021
Messages
4
Trophies
0
Age
32
XP
35
Country
Spain
The copy of the old emummc is only a copy of the files, no the partitions completes. Now only want to put my old savegames in the new user :(
 

Nazosan

Well-Known Member
OP
Member
Joined
May 12, 2009
Messages
576
Trophies
1
XP
1,089
Country
United States
Saves are stored in a partition in the eMMC (or emuMMC as the case may be.) If you didn't back them up with homebrew then backing up the files on the SD card won't do anything in regards to preserving your saves.
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,005
Trophies
2
Age
29
Location
New York City
XP
13,371
Country
United States
The copy of the old emummc is only a copy of the files, no the partitions completes. Now only want to put my old savegames in the new user :(
Saves are stored in the internal memory not on the SD card. In the case of emuMMC, this would mean the save data would be in the partition itself and not the files. This is why nobody can help you because the files you kept have no relation to save data.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtu.be/IihvJBjUpNE?si=CsvoEbwzNKFf0GAm cool