Hacking Question Dumping SX OS Emunand partition

nachuz

Well-Known Member
OP
Member
Joined
May 21, 2017
Messages
636
Trophies
0
XP
2,113
Country
Chile
So I updated my emunand to 7.0.0 due to nobody telling that updating via local wireless updates the system too and since I don't have tickets from nsps installed on the emunand on my sysnand and my saves are on the emunand, I want to backup the emunand, restore it on sysnand and switch to Atmosphere because SX OS doesn't seem to update anytime soon (and Atmosphere is better anyways, I don't care about $25 spent one year ago)
The problem is that the SX payload doesn't let you backup your emunand and as far as I know, there's no software to backup your emunand on another partition, so how I do that, I'm fucked up for using fucking SX?
 
Joined
Jan 19, 2019
Messages
755
Trophies
0
XP
947
Country
United Kingdom
So I updated my emunand to 7.0.0 due to nobody telling that updating via local wireless updates the system too and since I don't have tickets from nsps installed on the emunand on my sysnand and my saves are on the emunand, I want to backup the emunand, restore it on sysnand and switch to Atmosphere because SX OS doesn't seem to update anytime soon (and Atmosphere is better anyways, I don't care about $25 spent one year ago)
The problem is that the SX payload doesn't let you backup your emunand and as far as I know, there's no software to backup your emunand on another partition, so how I do that, I'm fucked up for using fucking SX?
Use win32 disk imager to img your sd to dump it
 

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,236
Trophies
1
XP
2,590
Country
Australia
Backup
dd bs=512 if=/dev/disk2 of=/Users/khoa/Desktop/boot0.bin skip=2 count=8192
dd bs=512 if=/dev/disk2 of=/Users/khoa/Desktop/boot1.bin skip=8194 count=8192
dd bs=512 if=/dev/disk2 of=/Users/khoa/Desktop/rawnand.bin skip=16386 count=61071360

Restore
dd bs=512 if=/Users/khoa/Desktop/boot0.bin of=/dev/disk2 seek=2 conv=notrunc
dd bs=512 if=/Users/khoa/Desktop/boot1.bin of=/dev/disk2 seek=8194 conv=notrunc
dd bs=512 if=/Users/khoa/Desktop/rawnand.bin of=/dev/disk2 seek=16386 conv=notrunc
 

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
old post, but following up since nachuz is still whining about emuNAND in other threads - this is how you extract the hidden partition emuNAND and convert it to files.

I highly recommend to ALL SX OS users that use emuNAND to use it as files on SD, not the hidden partition. Makes it easier to backup, you can edit it with hacdisk etc.

https://gbatemp.net/posts/8602506
 

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
673
Trophies
1
Age
43
Location
Spain
XP
1,584
Country
Spain
old post, but following up since nachuz is still whining about emuNAND in other threads - this is how you extract the hidden partition emuNAND and convert it to files.

I highly recommend to ALL SX OS users that use emuNAND to use it as files on SD, not the hidden partition. Makes it easier to backup, you can edit it with hacdisk etc.

https://gbatemp.net/posts/8602506

But when your sd becomes corrupt your emunand could be too...
 

gizmomelb

Well-Known Member
Member
Joined
Jul 13, 2006
Messages
926
Trophies
1
XP
1,658
Country
Australia
But when your sd becomes corrupt your emunand could be too...

while it is possible it is also as possible for hidden partition to become corrupt. FAT32 at least has some ''protection'' to file allocation tables due to two copies of it on the storage media, EXFAT corrupts more easily due to it only having one file allocation table - so if that corrupts, goodbye all data.

my personal obervation - I have less errors from coming out of sleep more since I have converted to SD files, than what I had when running a hidden partition emuNAND.

But everyone may have different experiences.
 
Last edited by gizmomelb,

xs4all

Well-Known Member
Member
Joined
Jun 9, 2008
Messages
720
Trophies
1
Location
37°16'55.2"N 115°47'58.6"W
XP
2,800
Country
Australia
But when your sd becomes corrupt your emunand could be too...

Yes this is true, think of it this way, what if you want to backup your EmuNand?

EmuNand as files on microSD <= Copying your EmuNand files is quick, fast and easy.
EmuNand as hidden partition <= Very slow using DD method.

If your using a minimum 64GB SD CARD and combined that with a USB3 card reader, the transfer speeds are pretty fast if you want to make backup of your EmuNand.
Try to do the same backup using DD command for EmuNand as hidden partition, since it's doing a raw backup, it takes ages!

Touch wood I haven't had any SD CARD corruptions but I'm one of those that prefer EmuNand as files on microSD over EmuaNand as hidden partition for backup purposes.
 
  • Like
Reactions: gizmomelb

josete2k

Well-Known Member
Member
Joined
Apr 24, 2009
Messages
673
Trophies
1
Age
43
Location
Spain
XP
1,584
Country
Spain
I made a backup with DD in 2 hours... Not bad.

Restoring is faster... Around 45 minutes because I use a bigger block size.
 

xs4all

Well-Known Member
Member
Joined
Jun 9, 2008
Messages
720
Trophies
1
Location
37°16'55.2"N 115°47'58.6"W
XP
2,800
Country
Australia
I made a backup with DD in 2 hours... Not bad.

Restoring is faster... Around 45 minutes because I use a bigger block size.

I was going to ask how long it takes on average to backup using DD? Your 2 hours seems to be quicker than me.

I've tried on a couple different laptops with built in SD CARD readers and also USB card readers and I followed your detailed guide on that Spanish site that you posted. For some reason the backup process was very slow, nothing like your 2 hours completion time, from memory it took me more that 8 hours to complete to backup using DD.
Restore is roughly the same as yours, anything I should know about the DD backup process? I pretty much followed all the steps to backup, but still slow, that is why in my previous reply I said it was slow, but maybe slow only for me?
 

xs4all

Well-Known Member
Member
Joined
Jun 9, 2008
Messages
720
Trophies
1
Location
37°16'55.2"N 115°47'58.6"W
XP
2,800
Country
Australia
I had long time for backup too... Until I tested this MicroSD adapter:

https://www.amazon.es/dp/B07416LQVM/ref=cm_sw_r_cp_awdb_t1_L3TXCbD4EGKX6

Interesting, with this adapter, are you still using the bs=1024 when dumping in the dd command?

I managed to find a few more SD CARD readers lying around, I did a test of dumping for about 1 minute, in that 1 minute, with all my readers, I manage to find a reader that dumps roughy about 80mb per minute, all the other readers I have dumps at around 50mb per minute.

So it works out, the reader that was the fastest that I had will take roughly 6 hours to fully dump the 29.1GB rawnand, while the slower ones take about 9.7 hours to fully dump the 29.1GB rawnand. The 9.7 hours which it took to backup my hidden emunand backup a few weeks back sounds about right.

So the SD CARD reader does play a role as to how fast it dumps the rawnand from hidden EmuNand partition, does changing the bs=1024 when dumping makes a difference? I did a test with bs=1M and 5M and the backup speeds was pretty fast, but I assume this will mess up the dumping process of the rawnand?
 
Last edited by xs4all,
  • Like
Reactions: gizmomelb

Garou

Well-Known Member
Member
Joined
Jan 13, 2015
Messages
1,213
Trophies
0
XP
1,667
Country
I did a test with bs=1M and 5M and the backup speeds was pretty fast, but I assume this will mess up the dumping process of the rawnand?
pretty sure it will
because the skip parameter used in dd means skipping data based on the block size. so if you're using bs=1M then the starting offset of your dumped data will change too
 
  • Like
Reactions: xs4all

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ salazarcosplay: How are you @AncientBoi :tpi: :tpi: :tpi: :tpi: :tpi: