{"id":203,"date":"2022-08-22T20:13:48","date_gmt":"2022-08-22T19:13:48","guid":{"rendered":"https:\/\/theroamingworkshop.cloud\/b\/?p=203"},"modified":"2023-11-19T15:32:06","modified_gmt":"2023-11-19T14:32:06","slug":"move-your-raspberry-os-to-a-new-larger-sd-card","status":"publish","type":"post","link":"https:\/\/theroamingworkshop.cloud\/b\/en\/203\/move-your-raspberry-os-to-a-new-larger-sd-card\/","title":{"rendered":"Move your Raspberry Pi into a new SD card."},"content":{"rendered":"\n<p>There are plenty of lenghty explanations around the web on how to clone a Linux OS onto a new device, but I came through this great tool on my Pi which reduces it to a few minutes and no typing at all.<\/p>\n\n\n\n<p>It is a built-in \u00abSD Card Copier\u00bb which you can use to regularly backup your OS, or upgrade your file system to a larger SD card, which is my case. <\/p>\n\n\n\n<div id=\"menu\" style=\"padding:20px 20px 20px 20px; border-left:2px solid darkgrey;\">\n<p style=\"font-weight:bold;\">Content<\/p>\n<\/div>\n<script>\nvar text;\nvar element;\n\nfunction fillmenu(){\n\nfor (let i=0; i<window.document.getElementsByTagName(\"h2\").length; i++){\nelement = window.document.getElementsByTagName(\"h2\")[i];\ntext = \"\u25b9 \"+element.innerHTML;\nvar newelement = document.createElement(\"a\");\nnewelement.innerHTML=text;\nvar postid=window.document.getElementsByTagName(\"article\")[0].id;\nvar url = \"https:\/\/theroamingworkshop.cloud\/b\/?p=\"+postid.substr(5,postid.length)+\"#\"+element.id;\nnewelement.setAttribute(\"href\", url);\nnewelement.appendChild(document.createElement(\"br\"));\nwindow.document.getElementById(\"menu\").appendChild(newelement);\nconsole.log(text);\n}\n}\nif(window.location.href.includes(\"tag\")){\n\n}else{\nwindow.setTimeout(fillmenu,2000);\n}\n\n<\/script>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"setup\">1. Setup.<\/h2>\n\n\n\n<p>As mentioned, I want to move my Raspbian OS to a larger and faster SD card. Both cards need to be accessible on your Pi, so I got it set up like this:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Raspberry Pi 4B with Raspbian 10 Buster <\/li><li>32Gb SD card on Pi's SD card slot.<\/li><li>128Gb fast SD card on USB adapter via Pi's USB<\/li><li><em>For a backup, you can plug in a USB stick and transfer the  backup onto it.<\/em><\/li><\/ul>\n\n\n\n<p>We will be using the \"SD Card Copier\" or \"piclone\", which should be built-in but you can install it on Raspbian via:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">sudo apt-get update\n\nsudo apt-get install piclone<\/pre>\n\n\n\n<p><em>[Not tested!] Piclone should work for other Linux distributions, if you're skillful enough to build all the required dependencies. In that case, you can access the github repository and follow the instructions there:<\/em><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/raspberrypi-ui\/piclone\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/raspberrypi-ui\/piclone<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"transfer-OS\">2. Transfer your OS via piclone.<\/h2>\n\n\n\n<p>Open the \"SD Card Copier\" either by finding the app launcher or via terminal, and make sure you have superuser <strong>permissions<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">sudo piclone<\/pre>\n\n\n\n<p>The software is very simple and just looks like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"436\" height=\"186\" src=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone1.png\" alt=\"\" class=\"wp-image-211\" srcset=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone1.png 436w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone1-300x128.png 300w\" sizes=\"auto, (max-width: 436px) 100vw, 436px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p>Select each device from the drop down lists, and click \"Start\".<\/p>\n\n\n\n<p>After a little while you will have a bootable copy of your current OS.<\/p>\n\n\n\n<p>Help documentation mentions a 10-15minutes wait, but it took quite longer as it depends on your storage size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"launch-OS\">3. Launch your new card.<\/h2>\n\n\n\n<p>Finally:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>shut down your Pi<\/li><li>swap cards, and<\/li><li>check it is all up and running<\/li><li>with the upgraded storage<\/li><\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone3.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"701\" height=\"279\" src=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone3.png\" alt=\"\" class=\"wp-image-218\" srcset=\"https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone3.png 701w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone3-300x119.png 300w, https:\/\/theroamingworkshop.cloud\/b\/wp-content\/uploads\/2021\/07\/piclone3-676x269.png 676w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><figcaption>Using GParted to check the new partition details<\/figcaption><\/figure>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>There are plenty of lenghty explanations around the web on how to clone a Linux OS onto a new device, but I came through this great tool on my Pi which reduces it to a few minutes and no typing at all. It is a built-in \u00abSD Card Copier\u00bb which you can use to regularly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":221,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[605,14],"tags":[],"class_list":["post-203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-en","category-raspi-en","post-preview"],"_links":{"self":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":15,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/posts\/203\/revisions\/1591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/media\/221"}],"wp:attachment":[{"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroamingworkshop.cloud\/b\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}