23

I started out with a 2GB SD card, but I'm finding this a bit cosy, so I've bought a 16GB card to replace it. With a single Pi, can I transfer all my work between the cards, or do I need to start from scratch?

Tom Medley
  • 4,089
  • 8
  • 33
  • 46

2 Answers2

23

You should be able to copy the image, using the same application you flashed it with (or the dd command in Linux):

dd if=/dev/sdx of=/path/to/image

Where sdx represents the SD card.

This can then be flashed onto the new SD card just like the original one:

dd if=/path/to/image of=/dev/sdx

For more information, see this question:

How do I backup my Raspberry Pi?

And you can see how to increase the size of the image here:

How can I resize my / (root) partition?

Jivings
  • 22,656
  • 11
  • 94
  • 140
1

There is an app pre-installed with raspbian that can copy the whole sdcard into a new sdcard through USB. The name of the app is sd card copier. It can be found in accessories.

Sohan Arafat
  • 1,852
  • 2
  • 12
  • 43