Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I was trying to clone one Raspberry PI Image and write it to a new SD card. Unfortunately after tests i have found that the orginal SD 4G card is actually 3.69G and the new 4G SD card is actually 3.68G. :(

Am i screwed?

Cheers for looking

share|improve this question
add comment

1 Answer

You're not screwed. That is not to say my solution will work, but one way or another this can be worked out.

The easiest way might be to start by using the image that was the original source of the card you want to copy (presuming it is not also 3.69G). Put that on the new card. Next, use gparted or whatever to size the data partition (for raspbian, that's the second one) on the card up. Then mount both data partitions, and update the new one from the old one with rsync:

rsync -aE /mnt/data-old /mnt/data-new

The -aE switches ensure permissions (including the executable bit) remain the same.

I have done this (for different reasons) before with raspbian and there were no problems.

Just to be clear: make sure you do this with the two cards mounted on a computer. Although you could use rsync over a network to update / on a running Rpi system, it is a very bad idea, if the pi is the destination of the sync.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.