freeman wrote:I have working debian on 16GB SD, how to transfer it to 8GB SD. Simple DD image not works. How to do it?
There are probably "magic incantation" ways of doing it, that no doubt others will post about, but I think the most straightforward way is just to copy the files.
That is (roughly, you'll have to fill in the exact command line details):
- Use "fdisk" to partition the new card into two partitions.
Format the first one FAT and the second one ext4
Mount them both - as /mnt/newboot and /mnt/newrootfs
cp -av /boot/* /mnt/newboot
cp -av / /mnt/newrootfs
Note that the last command above isn't really right - although I think it will actually work OK in most simple setups - it is not optimal (as others will no doubt point out for my benefit...). In fact, there are a couple of optimizations you might employ:
- Best is to do this on another Linux machine (not on the Pi itself), in which case, it is much easier since you'll be copying from /mnt/whereverThePiSDCardIsMounted instead of from /
Or you can figure out how to use "find" so as not to copy stuff you shouldn't be copying (instead of a blanket "cp -av").
And some folks need to stop being fanboys and see the forest behind the trees.
(One of the best lines I've seen on this board lately)