# Cloning to a larger microsd

**URL:** https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967
**Category:** General Discussion
**Created:** [22 November 2021 00:19 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967 "2021-11-22T00:19:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![AJRobson](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@AJRobson](https://dietpi.com/forum/u/AJRobson)
#### Post date: [22 November 2021 00:19 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967/1 "2021-11-22T00:19:36Z")

</div>

I’m currently running dietpi on a 200gb micro SD, Amazon have 512GB cards on sale for Black Friday.

If I make a copy of my card with something like win32 disk imager and write it to a larger card well everything just work? Will all my in progress torrents resume? My files be intact? My PiHole instance continue to work etc?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 November 2021 09:00 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967/2 "2021-11-22T09:00:17Z")

</div>

yes this should work. But at the end your new disk will show 200GB after the copy because the disk will be cloned 1:1. You would need to resize the RootFS afterwards. But honestly I would not use such a big SD card. Better to use a SSD/HDD if you download constantly files. Otherwise you will run the risk of physical issues on the SD card as a SD card is not designed for constant r/w operation.

---

<div class="post-metadata">

### Author: ![AJRobson](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@AJRobson](https://dietpi.com/forum/u/AJRobson)
#### Post date: [22 November 2021 14:28 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967/3 "2021-11-22T14:28:14Z")

</div>

Thanks for the reply. Once it’s up and running and the torrents are complete it won’t be used for downloading much anymore but I’ll look at getting an ssd if I have issues.

How would I resize the rootFS once it’s cloned? Is there an option in DietPi-config? I think I did it before on raspian through the raspi-config menu.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 November 2021 14:35 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967/4 "2021-11-22T14:35:43Z")

</div>

The following user guide was created to describe on how to migrate from SD to SSD. But it should work similar way from SD to SD

[https://dietpi.com/forum/t/raspberrypi4-rpi4-upgrading-from-existing-sd-card-setup-to-boot-from-ssd/4555/1](https://dietpi.com/forum/t/raspberrypi4-rpi4-upgrading-from-existing-sd-card-setup-to-boot-from-ssd/4555/1)

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [22 November 2021 15:58 UTC](https://dietpi.com/forum/t/cloning-to-a-larger-microsd/5967/5 "2021-11-22T15:58:45Z")

</div>

Puhh that is a long guide. In short:

1. On the original running sytem: systemctl enable dietpi-fs\_partition\_resize
2. Use a tool like win32 disk imager to do a full image clone of the SD card (not a single partition or filesystem only).
3. Use your favourite tool to flash this image file to the new drive.
4. The enabled service above will automatically resize partition and filesystem when booting the the new drive, all services will function as before, as UUIDs and mount points have not changed.
