rje Posted October 7, 2020 Share Posted October 7, 2020 So I've got 8gb SD cards, and used dd to get a blank image to play with. Thing is... I frankly don't currently need 8 gigs in an SD image on the X16. I mean, 64 mb would be sufficient. So, is there a way to truncate an SD image? Or otherwise get a small SD image? Quote Link to comment Share on other sites More sharing options...
0 JimmyDansbo Posted October 7, 2020 Share Posted October 7, 2020 Quote dd if=/dev/zero of=cx16-sd.img bs=1M count=64 sudo losetup /dev/loop0 cx16-sd.img # Use fdisk, parted, gparted or other partitioning program to partition /dev/loop0 gparted /dev/loop0 # Created msdos partition table and a single primary FAT32 partition sudo losetup -d /dev/loop0 # Now you should be able to use cx16-sd.img as an SDcard image in the emulator. I have added a 64MB image that seems to work with the emulator. Just unzip and you are ready to go. cx16-sd.img.zip 2 Quote Link to comment Share on other sites More sharing options...
0 SlithyMatt Posted October 7, 2020 Share Posted October 7, 2020 Just be aware that the X16 only supports SDHC or higher, meaning an SD image 2 GB or smaller is not a realistic test. 1 Quote Link to comment Share on other sites More sharing options...
0 JimmyDansbo Posted October 7, 2020 Share Posted October 7, 2020 Well then, here is a 4GB image cx16-4gb.img.zip 1 Quote Link to comment Share on other sites More sharing options...
0 rje Posted October 7, 2020 Author Share Posted October 7, 2020 (edited) Ha! Found the answer in the emulator project. Quote The file sdcard.img.zip in this repository is an empty 100 MB image in this format. Edited October 7, 2020 by rje Quote Link to comment Share on other sites More sharing options...
Question
rje
So I've got 8gb SD cards, and used dd to get a blank image to play with.
Thing is... I frankly don't currently need 8 gigs in an SD image on the X16. I mean, 64 mb would be sufficient.
So, is there a way to truncate an SD image? Or otherwise get a small SD image?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.