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.
 

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
This is well tested
Backup emunand from hidden emunand
dd bs=512 if=/dev/disk* of=./boot0.bin skip=2 count=8192
dd bs=512 if=/dev/disk* of=./boot1.bin skip=8194 count=8192
dd bs=512 if=/dev/disk* of=./rawnand.bin skip=16386 count=61071360
 
Last edited by thaikhoa,
  • Like
Reactions: gnilwob

GraFfiX420

Well-Known Member
OP
Member
Joined
Oct 14, 2009
Messages
465
Trophies
1
XP
1,573
Country
United States
This is well tested
Backup emunand from hidden emunand

I'm just curious is this slow to backup rawnand? If so, it would be related to blocksize, 512 is 1 block at a time, also /dev/rdisk* would be used on mac to speed backup. If it is indeed slow because of blocksize, I would recommend you back up the entire hidden area, then keep that to restore later. If you do it that way, you can increase the blocksize to 2m, which will increase the speed substantially.
 

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
I'm just curious is this slow to backup rawnand? If so, it would be related to blocksize, 512 is 1 block at a time, also /dev/rdisk* would be used on mac to speed backup. If it is indeed slow because of blocksize, I would recommend you back up the entire hidden area, then keep that to restore later. If you do it that way, you can increase the blocksize to 2m, which will increase the speed substantially.

Around 6MB/s . rdisk / bs 1024 even slower than. Idk why.
I'd like to backup rawnand for hacdiskmount to read. Backup a whole one is good too
 
Last edited by thaikhoa,

comput3rus3r

Well-Known Member
Member
Joined
Aug 20, 2016
Messages
3,579
Trophies
1
Age
122
XP
4,879
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.
 

GraFfiX420

Well-Known Member
OP
Member
Joined
Oct 14, 2009
Messages
465
Trophies
1
XP
1,573
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.

All your saves etc must have been stored to SD, then. For people who have made changes to files on nand, this is definitely relevant.
 

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
Nand injector should be
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
 

GraFfiX420

Well-Known Member
OP
Member
Joined
Oct 14, 2009
Messages
465
Trophies
1
XP
1,573
Country
United States
Nand injector should be

While this is accurate, it's not the recommended way to do it, at least on mac. My post in the tutorials section has the best route, dump the first 1024 bytes of your SD , concatenate that with your boot0/1 and rawnand, then write it back with dd, to /dev/rdisk* with a bs of 2m. While this will work, with a blocksize of 512bytes on a 29 gig file it will take forever, do yourself a favor and quickly dump the first 1024, concatenate, and write.
 

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
While this is accurate, it's not the recommended way to do it, at least on mac. My post in the tutorials section has the best route, dump the first 1024 bytes of your SD , concatenate that with your boot0/1 and rawnand, then write it back with dd, to /dev/rdisk* with a bs of 2m. While this will work, with a blocksize of 512bytes on a 29 gig file it will take forever, do yourself a favor and quickly dump the first 1024, concatenate, and write.

Idk why using bs 1024 or larger (won't support larger than bs 1024 for extracting with skip or seek) won't increase the speed but longer waiting time. Extract or inject with bs 512 for 29GB takes around 1 hour.
 

GraFfiX420

Well-Known Member
OP
Member
Joined
Oct 14, 2009
Messages
465
Trophies
1
XP
1,573
Country
United States
Idk why using bs 1024 or larger (won't support larger than bs 1024 for extracting with skip or seek) won't increase the speed but longer waiting time. Extract or inject with bs 512 for 29GB takes around 1 hour.

This is not accurate, try to restore a rawnand with a 512byte blocksize, let me know how long it takes. A blocksize of 512 may be fine for dumping, but for writing larger the better. Same with traditional disk access versus raw, using /dev/disk versus /dev/rdisk, /dev/rdisk is rawdisk, and will increase speed dramatically.
 
  • Like
Reactions: thaikhoa

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
This is not accurate, try to restore a rawnand with a 512byte blocksize, let me know how long it takes. A blocksize of 512 may be fine for dumping, but for writing larger the better. Same with traditional disk access versus raw, using /dev/disk versus /dev/rdisk, /dev/rdisk is rawdisk, and will increase speed dramatically.

I've tried many times but I won't see any changes on speed using rdisk when dumping. I will try to restore a whole nand back to the SD.
 

GraFfiX420

Well-Known Member
OP
Member
Joined
Oct 14, 2009
Messages
465
Trophies
1
XP
1,573
Country
United States
I've tried many times but I won't see any changes on speed using rdisk when dumping. I will try to restore a whole nand back to the SD.

This would make sense, as dumping is accessing the raw device by default, try restoring, first with /dev/disk then with /dev/rdisk. I should also correct myself, when writing, a larger blocksize is faster to a point, there's a "sweet spot" for most systems. On macos, however, the limit on blocksize for the version of dd that's running is 2m, so this is the best that can be done.
 
  • Like
Reactions: thaikhoa

thaikhoa

Well-Known Member
Member
Joined
Sep 16, 2008
Messages
2,227
Trophies
0
XP
2,525
Country
Australia
While this is accurate, it's not the recommended way to do it, at least on mac. My post in the tutorials section has the best route, dump the first 1024 bytes of your SD , concatenate that with your boot0/1 and rawnand, then write it back with dd, to /dev/rdisk* with a bs of 2m. While this will work, with a blocksize of 512bytes on a 29 gig file it will take forever, do yourself a favor and quickly dump the first 1024, concatenate, and write.

Just successfully restored my rawnand backup to the hidden partition using dd bs512, took 3 hours.
 

enarky

owls?
Member
Joined
Jul 31, 2003
Messages
1,224
Trophies
1
XP
2,098
Country
Afghanistan
With a 2m blocksize writing to rdisk it takes me ~20 minutes to restore a rawnand.
31276925952 bytes transferred in 689.570969 secs (45357080 bytes/sec)

A bit more than 11 minutes for me. Switched SD cards, tried it with a raw copy of the smaller SD card to the bigger one and annoyingly found out that you can't just resize ExFat partitions on any OS (without expensive software). So I set up a new EmuNAND and transferred the old one to the new card.
 

enarky

owls?
Member
Joined
Jul 31, 2003
Messages
1,224
Trophies
1
XP
2,098
Country
Afghanistan
Last edited by enarky,
  • Like
Reactions: Kikolasi3D

intucabutucrowt

New Member
Newbie
Joined
Jan 5, 2019
Messages
1
Trophies
0
Age
54
XP
47
Country
United States
Thanks a lot to GraFfiX420 for figuring this out. I was prepared to do some research on my own to try and figure out how the hidden partition worked, but thanks to you I didn't need to and was able to successfully copy my emunand.
 
  • Like
Reactions: GraFfiX420
General chit-chat
Help Users
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
  • K3N1 @ K3N1:
    Your favorite activity
    K3N1 @ K3N1: Your favorite activity