Sample Header Ad - 728x90

Problem creating a disk image of an SD card

0 votes
1 answer
595 views
I have built a custom image of Armbian with a partition size of 3.1 GB, and I am now finished working with it. It is currently written to a bootable 64 GB SD card which is using a GUID partition table (GPT). My problem is, is that when I want to make an image of the card using Ubuntu, I get an image file 63 GB in size, but I don't want an image file with 60 GB of empty space. I looked for other ways of shortening the image file by using truncate command, and creating an image using dd count= and it isn't working. When I use dd it creates an image file that when mounted is all "free space" and PMBR, and truncate breaks a working image file. So (unless I'm doing it wrong), how can I create a 3 GB image of my SD card that will contain the boot information?
Asked by Chris Hudlin (33 rep)
May 27, 2022, 06:51 AM
Last activity: May 27, 2022, 08:45 AM