User avatar
dstuttgen
Posts: 18
Joined: Mon Jun 17, 2013 11:06 pm
Location: Oconto, WI USA

Transfer from 8 to 32 gb card

Fri Aug 23, 2013 11:36 pm

Hi all, I have an order out for a low profile sd card holder and would like to know if it is possible to transfer my Raspbian Wheezy setup from the 8 to a 32 gb card. What say you? Is it possible? How would I go about it?

Thanks, Dan

User avatar
Mortimer
Posts: 923
Joined: Sun Jun 10, 2012 3:57 pm

Re: Transfer from 8 to 32 gb card

Fri Aug 23, 2013 11:42 pm

Use a computer to take an image of the 8GB card.
Restore the image to then 32GB card.
Boot the 32GB card in the Raspberry Pi and use Raspi-Config to expand the image to fill the new card.
--------------
The purpose of a little toe is to ensure you keep your furniture in the right place.

User avatar
dstuttgen
Posts: 18
Joined: Mon Jun 17, 2013 11:06 pm
Location: Oconto, WI USA

Re: Transfer from 8 to 32 gb card

Fri Aug 23, 2013 11:47 pm

Mortimer wrote:Use a computer to take an image of the 8GB card.
Restore the image to then 32GB card.
Boot the 32GB card in the Raspberry Pi and use Raspi-Config to expand the image to fill the new card.
Can i do this in Ubuntu of should I use Windows? Also what software do I need to buy to do it.
Thanks for your quick reply.

Dan

Addendum; I found this. In Ububtu, Applications Menu/Accessories/Disks. From there you can choose the SD card and click on the little gears and choose "create disk image". Hope this helps someone else.

Cheers, Dan
Last edited by dstuttgen on Sat Aug 24, 2013 12:42 am, edited 2 times in total.

User avatar
Mortimer
Posts: 923
Joined: Sun Jun 10, 2012 3:57 pm

Re: Transfer from 8 to 32 gb card

Sat Aug 24, 2013 12:08 am

You can use either, but if you have Ubuntu available that would probably be recommended.

Are you familiar with the 'dd' command?
--------------
The purpose of a little toe is to ensure you keep your furniture in the right place.

User avatar
dstuttgen
Posts: 18
Joined: Mon Jun 17, 2013 11:06 pm
Location: Oconto, WI USA

Re: Transfer from 8 to 32 gb card

Sat Aug 24, 2013 12:44 am

Mortimer wrote:You can use either, but if you have Ubuntu available that would probably be recommended.

Are you familiar with the 'dd' command?
O hi, Yeah, I was Googling how to do it when I figured out the back door. As far the dd method, don't I need to know the file path? I wasn't able to figure that one out yet.

Cheers, Dan

User avatar
dstuttgen
Posts: 18
Joined: Mon Jun 17, 2013 11:06 pm
Location: Oconto, WI USA

Re: Transfer from 8 to 32 gb card

Sat Aug 24, 2013 1:36 am

Yeah, I am kind of stumbling around with this dd command.

Dan

ramstrong
Posts: 36
Joined: Thu Aug 15, 2013 11:14 pm
Contact: Website

Re: Transfer from 8 to 32 gb card

Sat Aug 24, 2013 2:14 am

Use a computer to take an image of the 8GB card.
Restore the image to then 32GB card.
Boot the 32GB card in the Raspberry Pi and use Raspi-Config to expand the image to fill the new card.
I did dd if=/dev/mmcblko of=/dev/sda
from 16GB to 32 GB. Does not even boot.
from 16GB to 16 GB. Aborted due to lack of space. Boot yields kernel panic.
Raspberry Pi Journal: http://simpletongeek.blogspot.com/p/raspberry-pi-journal-directory_4.html

User avatar
Mortimer
Posts: 923
Joined: Sun Jun 10, 2012 3:57 pm

Re: Transfer from 8 to 32 gb card

Sat Aug 24, 2013 10:33 am

I am not very familiar with Ubuntu, I am more familiar with Mac OS X, which also has the DD command of course.

I use:

Code: Select all

dd bs=1m if={source} of={destination}
I don't know how important the 'bs=1m' is, but it seemed to appear in every blog and post detailing how to use DD for imaging Raspberry Pi cards, and it always seems to work.

The other thing that is quite important with the Mac is getting the path to the SD-card right. There are two ways of referencing a SD-card in Mac OS X. One is 'disk{x}s{y}' where {x} and {y} will be digits representing the actual device {x} and the partition {y}. As we are imaging the whole device, we ignore the partition identifier. The path is then converted to 'rdisk{x}'. Rdisk is much faster, and works at block level rather than file level I believe, resulting in much faster transfers too. I don't know if there is an equivalent in Ubuntu.

I suspect that you didn't unmount the volume before coping, which is required on Mac OS X, and perhaps not all was copied, because some of it was in use.

There is a write up HERE that might help you.
--------------
The purpose of a little toe is to ensure you keep your furniture in the right place.

ramstrong
Posts: 36
Joined: Thu Aug 15, 2013 11:14 pm
Contact: Website

Re: Transfer from 8 to 32 gb card

Sun Aug 25, 2013 5:24 am

Mortimer wrote: I don't know how important the 'bs=1m' is, but it seemed to appear in every blog and post detailing how to use DD for imaging Raspberry Pi cards, and it always seems to work.
BlockSize=1m is there for efficiency reason, so I don't think it matters.
I suspect that you didn't unmount the volume before coping, which is required on Mac OS X, and perhaps not all was copied, because some of it was in use.

There is a write up HERE that might help you.
I was copying from Raspbian to SD card. The input was in use (obviously), but the destination was not. If there is trouble regarding mounted status, then the whole thing would have failed immediately, instead of blindly copying for 4 hours straight, or so I imagine.

The writeup is for installing fresh image, not copying existing live image to another card. I didn't have trouble with the former, but yet to be successful with the latter.
Raspberry Pi Journal: http://simpletongeek.blogspot.com/p/raspberry-pi-journal-directory_4.html

Return to “Beginners”