# Moving everything over to a larger memory card

**URL:** <https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597>\
**Category:** Q&A\
**Created:** [September 4, 2018, 7:26pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597 "2018-09-04T19:26:39Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 4, 2018, 7:26pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/1 "2018-09-04T19:26:39Z")

</div>

Is there a way to copy everything i’ve done on my current memory card over to another larger one, as im about to run out of space!

Thanks!

---

<div class="post-metadata">

**Author:** ![sickeningjar](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/sickeningjar/32/975_2.png) [@sickeningjar](https://forum.clockworkpi.com/u/sickeningjar)\
**Post date:** [September 4, 2018, 7:34pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/2 "2018-09-04T19:34:30Z")

</div>

I believe it is possible to clone your SD card’s image onto another larger card, in linux. But of course that would require a USB device to clone it to, but I am sure that in theory, its possible in linux (like for instance, rpi-clone on the raspberry pi)

There is card cloning software available in windows, but I don’t know if they’ll work on a linux based card image.

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [September 5, 2018, 7:18am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/3 "2018-09-05T07:18:48Z")

</div>

Its done with dd command.

> dd bs=4M if=/dev/mmcblk0 of=file.img

Then you can dd it back to the new card and then expand the file system.

---

<div class="post-metadata">

**Author:** ![sickeningjar](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/sickeningjar/32/975_2.png) [@sickeningjar](https://forum.clockworkpi.com/u/sickeningjar)\
**Post date:** [September 5, 2018, 7:34am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/4 "2018-09-05T07:34:23Z")

</div>

How do you export it? I presume it needs to be transferred to the new card at the same time, or at least to a suitable external directory?

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 8:26am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/5 "2018-09-05T08:26:54Z")

</div>

I dont understand how to to do that, could you explain abit further please?

Also would it be possible to just download everything that’s currently on the card with FileZilla? And put that into a new card?

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [September 5, 2018, 8:44am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/6 "2018-09-05T08:44:08Z")

</div>

You take out the card connect it to the pc with a card reader and dump it into an image file.

> **[How to Clone Your Raspberry Pi SD Card for Super Easy Reinstallations](https://lifehacker.com/how-to-clone-your-raspberry-pi-sd-card-for-super-easy-r-1261113524)**
>
> If you've ever turned a Raspberry Pi into a media center or retro gaming station, you know how frustrating it can be when it crashes and corrupts your SD card. Here's a little trick to making that a little less painful.

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 9:52am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/7 "2018-09-05T09:52:26Z")

</div>

I’ve made a clone now, but it says its only 43mb. The whole card is actually almost 8gb though. I don’t understand how i can get everything.

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [September 5, 2018, 10:12am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/8 "2018-09-05T10:12:54Z")

</div>

That looks like the boot partition only which is small and the other one is the main one but windows can´t see it.

I used dd from console: [http://kamilslab.com/2017/02/15/how-to-backup-the-raspberry-pi-sd-card-using-linux/](http://kamilslab.com/2017/02/15/how-to-backup-the-raspberry-pi-sd-card-using-linux/)

You need a linux OS for that thought.

![image](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/1/1b34a7dacb833f63ec3171816e045a5be881ef37.png)

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 10:40am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/9 "2018-09-05T10:40:29Z")

</div>

Im actually using a mac, i used the dd command from the console. Got it too work… For the boot partition only. Still wont recognise anything else on there. Is there a way I can tell my mac to just copy everything?

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [September 5, 2018, 10:43am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/10 "2018-09-05T10:43:18Z")

</div>

You have to find the device and use dd over that device instead of the partition according to this site  
[How to Clone Raspberry Pi SD Cards Using the Command Line in OS X | Envato Tuts+](https://computers.tutsplus.com/articles/how-to-clone-raspberry-pi-sd-cards-using-the-command-line-in-os-x--mac-59911) on mac you can list the storage devices with:

> diskutil list

---

<div class="post-metadata">

**Author:** ![sickeningjar](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/sickeningjar/32/975_2.png) [@sickeningjar](https://forum.clockworkpi.com/u/sickeningjar)\
**Post date:** [September 5, 2018, 11:39am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/11 "2018-09-05T11:39:33Z")

</div>

Thanks for this link @Petrakis, I must admit I forgot that win32diskimager has the read function.

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 2:36pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/12 "2018-09-05T14:36:30Z")

</div>

I’ve used paragon and finally found the hidden files. However now I have to image files. The boot files and what was hidden. Can I combine them somehow?

---

<div class="post-metadata">

**Author:** ![lasvegas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lasvegas/32/769_2.png) [@lasvegas](https://forum.clockworkpi.com/u/lasvegas)\
**Post date:** [September 5, 2018, 3:07pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/13 "2018-09-05T15:07:11Z")

</div>

On the Mac, you need to use dd for the whole card. To backup:

> diskutil list

to get the drive id.

> dd if=/dev/diskx of=Path/To/clockworkos.dmg bs=4m

To restore:

> dd if=Path/To/clockworkos.dmg of=/dev/rdiskx bs=4m

(rdisk works better when writing to the card)

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 3:16pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/14 "2018-09-05T15:16:39Z")

</div>

I thought I might of done it, but now my gameshell won’t turn on, either with the new card, or the old one.

Have a messed it up for good somehow?

EDIT: fixed that, just put the original card in, and pushed the rest button

---

<div class="post-metadata">

**Author:** ![lasvegas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lasvegas/32/769_2.png) [@lasvegas](https://forum.clockworkpi.com/u/lasvegas)\
**Post date:** [September 5, 2018, 4:06pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/15 "2018-09-05T16:06:52Z")

</div>

I always find it best to write the original virgin clockworkos.dmg to a new card and use Linux Live and GParted to expand the image. Then I use scp to restore my home folder to restore my games.

to backup home folder (on a Mac):

> scp -r [cpi@192.168.2.2](mailto:cpi@192.168.2.2):/home/cpi ~/Desktop/

to restore:

> scp -r ~/Desktop/cpi [cpi@192.168.2.2](mailto:cpi@192.168.2.2):/home/

then restart the GameShell. Force restart by pressing and holding the power button! The menu probably won’t work.

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 5, 2018, 4:50pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/16 "2018-09-05T16:50:33Z")

</div>

I got it too work finally! Using a mixture of your help and various things on the internet.

One last thing, is there a way to expand the storage now its on a larger card (32gb), as it still says 8gb.

And can I do this from the terminal if I connect to the Gameshell? As i don’t have unbunto, I’m only using a mac.

Thanks!

---

<div class="post-metadata">

**Author:** ![lasvegas](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lasvegas/32/769_2.png) [@lasvegas](https://forum.clockworkpi.com/u/lasvegas)\
**Post date:** [September 5, 2018, 10:43pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/17 "2018-09-05T22:43:25Z")

</div>

As I said, the only way I’ve been successful expanding the image to fill the card is using the GParted app from a Linux booted image.

---

<div class="post-metadata">

**Author:** ![Petrakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/petrakis/32/256_2.png) [@Petrakis](https://forum.clockworkpi.com/u/Petrakis)\
**Post date:** [September 6, 2018, 8:08am UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/18 "2018-09-06T08:08:42Z")

</div>

Thats great for games and stuff but if you configured alot of things and manually edited alot of files, then the other option is better.

---

<div class="post-metadata">

**Author:** ![Philip\_Yarnell](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@Philip\_Yarnell](https://forum.clockworkpi.com/u/Philip_Yarnell)\
**Post date:** [September 6, 2018, 4:02pm UTC](https://forum.clockworkpi.com/t/moving-everything-over-to-a-larger-memory-card/1597/19 "2018-09-06T16:02:49Z")

</div>

Yea sorry, I did see that you’d said that. Just restoring my home file. Fingers crossed it all works

EDIT: It finally Works. Thanks for all your help!
