Hacking Question About migrating EmuMMC to new microsd

hiroakihsu

SUPREME LURKER OF THE WORLD
OP
Member
Joined
Aug 10, 2003
Messages
540
Trophies
2
Location
On the edge of my seat
XP
1,877
Country
Japan
So I have my switch set up with latest Kosmos/SD partition raw EmuMMC on fw 7.0.1/SysNand on fw 7.0.1 and I would like to migrate to a new bigger-sized microsd...For the SD files I know I could just copy them over but what about the EmuMMC? How do I migrate that over to the new microsd? Also anything else I need to watch out for when I migrate? Thanks!
 

RHOPKINS13

Geek
Member
Joined
Jan 31, 2009
Messages
1,350
Trophies
2
XP
2,574
Country
United States
This really depends on how you setup your emuMMC.

Throw your microSD card in your computer and open Disk Management. How many partitions do you see? If you see two partitions, you can use a free partition manager (I personally prefer gparted, but I know a lot of people use a free version of EaseUS. Clone the partitions to the new microSD card, and resize your FAT32/exFAT partition to take up all the additional space.

If it's only showing one partition, and a bunch of free unpartitioned space, then you're using the "hidden partition" method, which basically isn't a partition at all, but just raw data written to a particular section of the card. This is much trickier to work with. If this "free space" is at the beginning of the card (the left side), you can simply clone the card to the bigger one, and resize the FAT32/exFAT partition to fill the area on the right side. I like using dd in Linux for cloning.

If the "free space" is at the end of the card, it's going to be trickier. You can use dd to make an image of the data, starting at your emummc partition offset and going to the end of the card (you can find the offset in your emummc config). Then you can set up your bigger microSD card using any of the tutorials already available - just instead of building a rawnand.bin file, use the image you created with dd.

The latest version of Hekate includes some emuMMC tools, it might be easier for you to use those instead to make an emuMMC image and restore it on your new card.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    For batch operations.
  • Sicklyboy @ Sicklyboy:
    Massivley so. Glad I'm getting more experienced with it now
  • Veho @ Veho:
    "Hey can you make this [inane change] on 50 servers?" Yes.
  • Sicklyboy @ Sicklyboy:
    The scenario in question is to do disk erases on some storage servers at my job that have I think 12x 14TB spinners, SATA SSDs, and nvme disks. The process I'm using to erase the spinners is to kick off an ATA Security Erase in the disk's firmware, then once that's done do a dd zero-fill as a second pass.
  • Sicklyboy @ Sicklyboy:
    These spinners take like 22h per each of those operations
  • Veho @ Veho:
    I'll admit sometimes it takes me longer to write and debug a script that will do that for me, than it would take me to make the changes manually, but this is more fun.
    +1
  • Sicklyboy @ Sicklyboy:
    And running it over a serial console I'd either have to spin up a dozen and a half screen sessions or just run one operation at a time
  • Sicklyboy @ Sicklyboy:
    Wrote a horrifyingly long one-liner to do all of that - spin up a shitload of screen sessions, run these commands to it, pipe output to kmsg so it shows up in the default tty's shell, and some other shit on top of that.
  • Veho @ Veho:
    Can't you run pssh?
  • Sicklyboy @ Sicklyboy:
    Some day I'll write out a properly formatted shell script that lives on our firmware server or git repo and just call that, and have that handle every kind of server we run much more gracefully than my hobbled together atrocity does right now
  • Sicklyboy @ Sicklyboy:
    pssh - nope. 1, what I'm doing gets done from our bootable provisioning environment, and you can only interface with that via serial console - we don't accept ssh connections on the servers in that state, and 2, I don't even know if our bootable environment has pssh baked into it
  • Sicklyboy @ Sicklyboy:
    3, I've never even heard of it before lol
  • Sicklyboy @ Sicklyboy:
    Anyway I can open serial console sessions to multiple devices at the same time, and broadcast my input to all of them (iTerm on Mac is the terminal emulator I'm using). It's just a matter of how many commands I'd have to run by hand, and how long they'd take otherwise lol
  • Veho @ Veho:
    I just assumed you were working via SSH. I know my way around that. If a server is only accessible locally it's waaay beyond saving from my end so I let the DC team work on that :tpi:
  • Sicklyboy @ Sicklyboy:
    I *am* the DC team :P the remote arm of it, anyway
  • Sicklyboy @ Sicklyboy:
    Trust me, I wish I could do everything I need to do via ssh. Working through these serial console servers suuuuuucks in comparison
  • HiradeGirl @ HiradeGirl:
    SSH rules
    +1
  • Sicklyboy @ Sicklyboy:
    I love that there's a network filesystem that runs on top of ssh - sshfs
  • Sicklyboy @ Sicklyboy:
    I use it in most of my home network for mounting network storage in various *nix VMs
  • Veho @ Veho:
    sshfs you say...
  • Veho @ Veho:
    I use SFTP but it doesn't have the bells and whistles.
  • K3Nv2 @ K3Nv2:
    Dumb dx11 and lutris
  • Sicklyboy @ Sicklyboy:
    sshfs allows you to mount networked storage on a machine as a FUSE filesystem. It's sftp under the hood but has all of the interactivity and usability you'd expect of a locally mounted filesystem. Downside, it can slow down a little bit with massive directories, but I haven't personally run into that yet
  • Sicklyboy @ Sicklyboy:
    This perspective is all linux oriented fwiw. I believe there's an sshfs driver for Windows, but I haven't used it yet. and no idea for MacOS
  • K3Nv2 @ K3Nv2:
    Ftp is life if not on wifi
    K3Nv2 @ K3Nv2: Ftp is life if not on wifi