Gogy1
Posts: 5
Joined: Tue May 19, 2020 3:29 pm

Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Tue May 19, 2020 3:49 pm

Hi, I have Raspberry pi4 2 gb with Raspbian OS installation on it , 32 gb sd card . I received Raspberry pi4 4 gb as a gift . Is it possible just to take sd card from Pi4 2 gb and to put it in Pi4 4 gb.? :) If yes , What I have to do to transfer the data ( scripts, programs ) from old board to the new one?

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Wed May 20, 2020 7:41 am

Yes you should be able to move the SD card from the 2GB to the 4GB without any problem.

If you move the SD card you move *everything* that is installed on the old Pi, there is nothing stored on the old Pi, it has no inbuilt storage.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Wed May 20, 2020 11:20 am

topguy wrote:
Wed May 20, 2020 7:41 am
Yes you should be able to move the SD card from the 2GB to the 4GB without any problem.

If you move the SD card you move *everything* that is installed on the old Pi, there is nothing stored on the old Pi, it has no inbuilt storage.
+1
However, if you have another uSD card, you could use Raspbian's, "built-in"** , SD card Copier to "clone" the card instead. (Good practice for a basic backup too!) .
Trev.

** FWIW, a few screenshots of the process can be seen here: https://www.cpmspectrepi.uk/raspberry_p ... OnP4B.html
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

LTolledo
Posts: 3321
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Use microSD card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Wed May 20, 2020 11:27 am

you can move (transfer) that microSD card throughout the entire Raspberry Pi board ecosystem...which has microSD slots.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Wed May 20, 2020 2:25 pm

This is one of the reasons why Raspberry Pies are so awesome.
You can easily switch the OS just by switching the SD cards.

I have 3 RPis setup in different places. One is portable. When I want to work in a new location, I just power down the current Pi, take the SD card out, and pop it into the new Pi.
And there you have it - your own roaming profile. ;)
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

Gogy1
Posts: 5
Joined: Tue May 19, 2020 3:29 pm

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Wed May 20, 2020 2:48 pm

That's awesome! Thank you ! ;) :)

Gogy1
Posts: 5
Joined: Tue May 19, 2020 3:29 pm

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Tue May 26, 2020 4:56 pm

Now another problem . I chenged Raspberry pi4 2g with raspberry pi4 4g. It was set a web server with weather site on it. When I moved the old cd card to the new device , I saw that the raspberry pi4 4g use now new IP address . What can I do to use my old web server and old my data on it .? Is it possible? Maybe i have to set everything from the beginning ? :o :?

W. H. Heydt
Posts: 12430
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Tue May 26, 2020 5:34 pm

Gogy1 wrote:
Tue May 26, 2020 4:56 pm
Now another problem . I chenged Raspberry pi4 2g with raspberry pi4 4g. It was set a web server with weather site on it. When I moved the old cd card to the new device , I saw that the raspberry pi4 4g use now new IP address . What can I do to use my old web server and old my data on it .? Is it possible? Maybe i have to set everything from the beginning ? :o :?
There are several solutions.... If the other machines are set up correctly, you can access the Pi by hostname. Or you can set up the Pi to have a static IP address (then the IP address will move the SD card). Or you can assign a reserved IP address in your router, but you'll have to change that if the Pi is changed, as it will go by MAC address.

W. H. Heydt
Posts: 12430
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Tue May 26, 2020 5:37 pm

topguy wrote:
Wed May 20, 2020 7:41 am
If you move the SD card you move *everything* that is installed on the old Pi, there is nothing stored on the old Pi, it has no inbuilt storage.
*Minor* correction... Pi4Bs have a writable EEPROM bootloader (and, for that matter, PCIe to USB device firmware). That *may* be different from one Pi to another, depending on how you go about keeping your Pis up to date.

Gogy1
Posts: 5
Joined: Tue May 19, 2020 3:29 pm

Re: Use cd card from Raspberry pi4 2 gb. to Raspberry pi4 4 gb

Tue May 26, 2020 6:08 pm

Everything is working now on the local web server with the new ip and the new Raspberry pi 4 4gig. Now maybe I have to assign the new ip to my domain name , so i will have the site in the internet . Is it right?

Return to “General discussion”