SD Card size

Started by neslekkim, September 29, 2013, 05:44:19 PM

Previous topic - Next topic

neslekkim

Is it possible to trim the os images a bit?, for some reason, all my sandisk cards have 7744512 sectors, just to small for the image, which requires 7774208 sectors.
(I have both normal sdcard and microsd cards, all report same size)

I found an 8gb card so I'm ok now, but I guess trimming should be possible?

rzr

I had to repart my sdcard copy the the files using rsync and dump the boot thing on 1sts blocks

hansvi

I had the same problem. I fixed it by dumping the cards' content back to disk and re-creating a partition on it, then copying all the data to the new partition and write it back to the card.

I've written it down here:http://hansvi.be/mediawiki/index.php?title=OLinuXino

It's a bit overly complicated, you could just delete the partition on the SD card itself, but I already had dumped the content to see the correct size. And it was a good exercise to test some advanced loopback options.

sanzoghenzo

Hi,
I have the same problem. I manually partitioned the SD and I've managed to mount and copy the two partitions of the image (from here, at 1.3.2), now I need to copy u-boot. how many sectors should I copy? is it good to copy the first 446bytes (so the partition table stays intact)?

rzr

NO dont erase partition table (mbr) just use offset

This worked for me :

* http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi/u-boot-sunxi-latest/u-boot-sunxi-a20-olinuxino_micro.tar.xz
# sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8
https://github.com/linux-sunxi/u-boot-sunxi/wiki


BTW, any more doc on the boot process is welcome !


JohnS

There is LOTS and LOTS of doc on the linux-sunxi site.

John