SD Card not working

Sorry for the delay, but unfortunately i run out of time…

I have now tried the following procedure on linux which worked for me. The new Card was accepted by Toniebox.

Check device

root@host~ # lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda           8:0    1 14,8G  0 disk                       <-- EXTERNAL SD-CARD == TARGET
├─sda1        8:1    1  256M  0 part                                        
└─sda2        8:2    1 14,6G  0 part
mmcblk0     179:0    0 59,5G  0 disk                       <-- INTERNAL SD-CARD. 
├─mmcblk0p1 179:1    0  512M  0 part /boot/firmware
└─mmcblk0p2 179:2    0   59G  0 part /

In my case, the SD Card is /dev/sda because i am on a PiOS. Be aware to adjust the device Name according to you setup!

Create a DUMP of original SD Card [8 GB]

# Create a backup of your SD-Card
dd if=/dev/sda of=<box-id>.img bs=1M status=progress

Restore DUMP

Option A) Restore DUMP on original SD Card

  • Write DUMP
  • SYNC: Clean buffers to ensure all data is written correctly
# Option A) Restore backup to new SD-Card of same size
dd if=<box-id>.img of=/dev/sda bs=1M status=progress
sync

Option B) Restore DUMP on new (bigger) SD Card [64 GB]

  • Write DUMP
  • Unmount SD Card, if mounted
  • Check free space
  • Increase partition size
  • Check filesystem
  • SYNC: Clean buffers to ensure all data is written correctly
# Option B) Restore backup to new SD-Card of bigger size, grow partition and resize filesystem
dd if=<box-id>.img of=/dev/sda bs=1M status=progress
umount /dev/sda1
parted /dev/sda print free
parted /dev/sda resizepart 1 100%
dosfsck -t -a -w /dev/sda1
sync

Hope it will also work for you. Good luck & do not hasitate to ask if you have still problems.



Hint: Additional information about partition tables can be found here:

2 Likes