Too big for 4GB card

Gustavo Niemeyer gustavo.niemeyer at canonical.com
Fri Feb 13 00:25:51 UTC 2015


Hey all,

It would be good to reduce the snappy image size just a little bit.
I have a Kingston MicroSD card that self-reports as 4GB, but it
is not large enough to hold the image. I had to take a few MB
out from the last partition to make it work.

Here is a working scheme, being reported from within snappy itself:


$ sudo fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 3.7 GiB, 3980394496 bytes, 7774208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000a208e

Device         Boot   Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *       8192  139263  131072   64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2       139264 2236415 2097152    1G 83 Linux
/dev/mmcblk0p3      2236416 4333567 2097152    1G 83 Linux
/dev/mmcblk0p4      4333568 7773437 3439870  1.7G 83 Linux



gustavo @ http://niemeyer.net



More information about the snappy-devel mailing list