Moving from SX OS SD-emunand to SD-hidden_emunand

Greetings, here's some instructions to move your emunand from <=2.3 to >=2.4 SX OS. You will need to fill in your own info.

Code:
dd if=/dev/rdisk* of=first1024.bin bs=1024 count=1
Code:
cat first1024.bin boot0.bin boot1.bin full.00.bin full.01.bin full.02.bin full.03.bin full.04.bin full.05.bin full.06.bin full.07.bin > /Volumes/WhereYouWantToStoreIt/emunand.bin
Write the backup with pv:
Code:
sudo dd if=/Volumes/WhereYouStoredIt/emunand.bin | pv -s 29G | sudo dd of=/dev/rdisk* bs=2m conv=noerror,notrunc
Without pv:
Code:
sudo dd if=/Volumes/WhereYouStoredIt/emunand.bin of=/dev/rdisk* bs=2m conv=noerror,notrunc

Let me know if you have any questions. This is for mac but should work on linux, with minor adjustments.
 

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
677
Trophies
1
Age
43
Location
Spain
XP
1,595
Country
Spain
Hey...

Thank you

I wrote a small explaination of the first 1024 bytes' content:

So, and sorry if it's an stupid question, could we resize our emunand partition?

I'm missing with the ending sector and size of partition but as they are fixed values in the first 1024 I'd wish to resize my emunand to 15Gb...

Code:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
01 00 07 FE 7F 9E 02 20 A4 03 FE DF 2B 1A 00 00

Here's my hex data (256Gb exfat)
 

massijay

Member
Newcomer
Joined
Dec 15, 2011
Messages
20
Trophies
1
XP
1,114
Country
Italy
Hey...



So, and sorry if it's an stupid question, could we resize our emunand partition?

I'm missing with the ending sector and size of partition but as they are fixed values in the first 1024 I'd wish to resize my emunand to 15Gb...

Code:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
01 00 07 FE 7F 9E 02 20 A4 03 FE DF 2B 1A 00 00

Here's my hex data (256Gb exfat)

I don't know how sx os recognizes the emunand "partition" but I think that it always looks for the same sectors, so I assume we cannot resize the microsd emunand yet.
If you want to try, you should first make a backup of all your data and then resize the fat32 (or exfat) partition with GParted or similar software, but I think it wouldn't work
 

Alex0520

New Member
Newbie
Joined
Apr 11, 2019
Messages
1
Trophies
0
Age
33
XP
45
Country
Colombia
Hello, I am trying to move from a 128gb microsd to a 256gb, I have a hide partition emunand and I want to migrate it, could someone explain me how to do that?
 

Ferras2

Active Member
Newcomer
Joined
Dec 24, 2016
Messages
43
Trophies
0
Age
32
XP
148
Country
Brazil
It is absurdly simpler and easier to use the same method that was used in the early days of emunand in 3ds, use the HDD RAW Copy Tool to create an SD image and then inject into the other (or copy entirely from one to the other directly), after that use the Minitool Partition Wizard (or any other similar program) to resize the partition (if it is in fat32 you should give it to resize directly, if it is exfat you need to copy the visible files from the SD to PC, then "delete" the visible partition and recreate, taking care to create the partition just after where the emunand is) It sounds complicated, but it's quiet, there's a video (it's not mine, I found it on youtube):

 
  • Like
Reactions: britain4

MasterJ360

Well-Known Member
Member
Joined
Jan 10, 2016
Messages
2,801
Trophies
1
Age
35
XP
3,451
Country
United States
All I did was backup my sd card. Created a new hidden emunand with sxos and then copied over the emutendo folder (not overwriting anything) it seems to be working with all my games/saves etc.
Thanks for the info this is very helpful to those who use xci often & keeps everything on the sd card
 

ThePeter

Member
Newcomer
Joined
Jan 4, 2020
Messages
5
Trophies
0
Age
29
XP
66
Country
United States
Hey, so I tried doing this on Windows. But after creating the combined emunand.bin file I tried to copy it back, but it always gives me access denied. What can I do about this?
 

lisko

Well-Known Member
Member
Joined
Oct 28, 2018
Messages
125
Trophies
0
Age
33
XP
634
Country
Italy
Hi I successfully migrated from system partition emunand to sd files and then, following this tutorial, to hidden partition emunand and switched to atmosphere. The problem is that the emunand on system partition was of 20GB instead of 32 and now I have a 32GB hidden partition but a 20GB emummc. To not waste space is there something I can do for resizing the emummc? Thank you

EDIT: in case someone has this problem too I found a little python script (there's also a windows app) which resize the user partition from emunand.bin.

Code:
 https://gist.github.com/ckurtz22/5748f3f761e0a546675f2720a1e5e486
The default user partition size is 0x680000000 bytes and the tool accepts the size in decimal GiB so 26 GiB should be the correct default size. I still haven't tried this but I plan to do it later this day and report.

EDIT2: I successfully resized the emunand with the python script above. The emunand input file it takes is a concat of boot0, boot1 and all full.xx.bin so without first1024.bin. After resizing is done you can concat first1024.bin with resized emunand and burn to SD as OP.
Beware that while you will retain your profiles and play statistics all other things will be lost, including saves so make sure you have a verified backup of them first. After booting the new emunand you will notice that your saves seems to be there but you will receive an error trying to start your games. You'll have to remove the saves for the game manually from system settings and, if needed, restore them from a backup and your game will load fine.
 
Last edited by lisko,

TonyNESgri

Well-Known Member
Member
Joined
Sep 16, 2021
Messages
172
Trophies
0
Age
24
XP
505
Country
France
[Original Post from :]

https://gbatemp.net/threads/emutool...on-sxos-and-more.550756/page-18#post-10024190


Excuse me, I didn't quite understand the part about converting emuNAND files into a partition. What exactly is the initial sector of the partition I'm about to create ? I took a look at this tutorial, but to be honest, I'm not sure whether I would need to input the same data as it is in the tutorial or is that data specific to each Switch user ? If the latter, how can I find it ?



Also, is it safe for my two SD cards ? Nothing's going to get deleted during the emuNAND conversion and transfer, is it ?



Thank you in advance 🙏🏼
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: https://www.tomshardware.com/pc-components/liquid-cooling/intel-and-exxonmobil-working-on-advance...