1

I was using a 16 GB micro sd card with raspberry pi4. Now I need to expand my memory . This is why I want to move the installed raspbian from 16 gb to 32 gb. How am I supposed to do that?

5

Raspbian includes a "SD Card Copier" on the tools menu. That will copy just the used part of your 16GB SDCard to your 32GB SDCard and give you a bootable clone.

It's been there since 2016 and there's some docs at: https://www.raspberrypi.org/blog/another-update-raspbian/

  • can I use the whole #@ GB then? – Sohan Arafat Oct 2 at 14:45
  • 2
    It will do that for you automatically. – Dougie Oct 2 at 14:46
  • Yes this is a great option if you have another bootable RPi to work with. – mrSidX Oct 2 at 20:44
2

Easy..

Get a cloning program like Apple-Pi Baker for Mac, Win32 Disk Imager or Windows freebies maybe.

Make an image of your SD card you want to expand. This will make an ISO file that is a clone of that disk.

Insert the blank 32gb SD into a reader, and select in the baker program, and then it will write the image of the 16GB card to the new 32GB card.

You can keep the 16GB for backup or repurpose it.

If you like the Linux command line version, look up a duplicate post of how to run a 'dd' command line... or use one of the GUI based SD cloning tools.

https://unix.stackexchange.com/questions/144172/full-dd-copy-from-hdd-to-hdd

It's a little tricky at first, but try not to mix up your disks, as you don't want to accidentally make your 16GB a target. dd might let you do directly though, so you won't need to dump the image to another storage. You might find a GUI program that has this function.

This might help

  • All this only copies the 16GB card to a 32GB card, but does not expand the final image to the full 32GB! – SiKing Oct 2 at 17:44
  • Try using 'sudo raspi-config' in the terminal on the 32gb SD boot up, go to Advanced Options and there (option A1) you can expand the file system. Hope that helps. – mrSidX Oct 2 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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