NANO SD: How to migrate to a larger SD card (the pro way)
Posted: Wed May 28, 2025 12:56 pm
These are the steps to migrate from a microSD card to larger one. Please notice that you do this on your own and that the NANO will go out of warranty when changing cards. Getting the microSD card out of the socket can easily damage the NANO when done with force or without patience.
- Power down NANO SD, extract old SD card.
- Connect old an new card to your PC. Both cards need to be connected to do a successful cloning.
- You cannot use normal file copy commands for disk content cloning, it needs to be a low level copy of raw disk data.
- PC/Mac: Use Balena Etcher to do a low level cloning of your old card (source) to the new one (target).
- Linux: You can use "dd if=/dev/sdx of=/dev/sdy bs=1M" where "sdx" is the old card and "sdy" is the target card. "sdx" and "sdy" need to address the complete device, not a partition on the device like "sdx1".
- Remove old and new card from the PC. Leave old card untouched as a backup in case the cloning or further migration steps don't go well.
- Insert new card into NANO SD and power up NANO SD. When NANO SD starts operating everything will look as before. If not, you are in trouble, abort here and go back to old card. Card cloning has failed.
- Although the physical size of the card is larger now, neither the partition, nor the filesystem in that partition does know of it. Following steps enlarge partition (1st step) and then enlarge filesystem (2nd step). It will need you to give commands on a Linux shell, just to let you feel like a pro
- Login via SSH, user is "root", password is the same password you defined for HTTP access with your browser.
- When prompted give command "/home/meteohub/maxdisk". Operation will take a wile. When it concludes with "done" you are fine.
- Logging in with your browser should show larger SD card on "System - Info" tab. If errors occur, please report here: viewforum.php?f=61
Code: Select all
Current usable size of SD card is 1.8G
Shutting down services logger, wnet, database, samba ... done
Unmount SD card ... done
Do file system check (and repair if needed) ... done
SD card size is 15 GB (31116288 sectors a 512 byte)
DOS Partion table patched at pos 458-461
Syncing disks ... done
Resizing file system ... done
Remount SD card ... done
Restarting services database, logger, wnet, samba ... done
New usable size of SD card is 14.6G