# uninstalling Pihole

**URL:** <https://dietpi.com/forum/t/uninstalling-pihole/5445>\
**Category:** Troubleshooting\
**Created:** [19 June 2021 09:17 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445 "2021-06-19T09:17:47Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [9 February 2022 19:15 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/21 "2022-02-09T19:15:41Z")

</div>

No, I’m running Windows in this one.

Would it be any good to run Ubuntu on a VM?

---

<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:** [9 February 2022 19:22 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/22 "2022-02-09T19:22:01Z")

</div>

DietPi VM would be fine as well 😉

In theory you could try to mount the SD card as well as the USB stick into the VM and move your backup. Anyway, before doing anything I would recommend to clone your SD card using Win32 Disk Imager. This way you would have a 1:1 backup in case needed.

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [9 February 2022 19:25 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/23 "2022-02-09T19:25:11Z")

</div>

Yes, I’m backing up the damaged system with Win32 Disk Imager as we speak.

So for now, after I finish setting up Ubuntu VM on my machine, should I then mount the micro SD on it, insert a USB stick, and then copy and paste the contents of it into the USB stick?

Thank you again.

---

<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:** [9 February 2022 19:27 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/24 "2022-02-09T19:27:46Z")

</div>

I would recommend to use rsync to keep all file/folder permissions. As an alternativ our could try using move command mv. Just using copy will not prevent loosing permissions.

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [9 February 2022 20:19 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/25 "2022-02-09T20:19:23Z")

</div>

Okay, I finished installing Ubuntu. But I don’t know how to see the USB drive and the sdcard. Do you know which would be the steps?

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [9 February 2022 20:22 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/26 "2022-02-09T20:22:57Z")

</div>

Edit: Nevermind, I think the rsync command is now complete between the 2 devices.

Should I now reinstall dietpi, plug in the usb drive on Orange Pi Zero and then restore the backup from the USB drive?

---

<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:** [9 February 2022 22:25 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/27 "2022-02-09T22:25:22Z")

</div>

ok you where able to mount the SD card as well as USB stick? good if rsync complete.

To be able to restore the backup during Initial setup:

1. flash SD card with a new image
2. adjust /boot/dietpi.txt before first boot and adjust following.

```nohighlight
# Restore a DietPi-Backup on first boot: 0 => disable | 1 => interactive restore (show list of found backups) | 2 => non-interactive restore (restore first found backup)
# - Simply attach the drive/disk/stick with contains the backup. All attached drives will be mounted temporarily and searched automatically.
AUTO_SETUP_BACKUP_RESTORE=0

```

1. You could set it to 1
2. connect SD card + USB stick to the SBC
3. boot your SBC
4. usually the initial setup should detect your backup now

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [9 February 2022 22:35 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/28 "2022-02-09T22:35:29Z")

</div>

Thanks again! I’ll leave it running and see how it goes in the morning.  
Now that I think of, there might be some issues since my backup was made using Stretch or Buster, and I don’t even recall which exact version, whereas now we are in Bullseye.

I’ll let you know how it goes.  
Thanks!

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [10 February 2022 08:32 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/29 "2022-02-10T08:32:00Z")

</div>

No luck after all 😕  
System crashes or hangs when booting up. It was worth the try anyway!

Thanks 🙂

---

<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:** [10 February 2022 08:40 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/30 "2022-02-10T08:40:27Z")

</div>

But you where able to start the setup and select the backup to restore?

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [10 February 2022 09:07 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/31 "2022-02-10T09:07:56Z")

</div>

Yep, but when restoring it took ages and wasn’t moving forward. Could it have been because my previous Dietpi installation backup was based off Stretch and now I was restoring on a fresh Bullseye?

---

<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:** [10 February 2022 09:59 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/32 "2022-02-10T09:59:47Z")

</div>

Theoretically it should not matter what the backup was, as it is a simple rsync. But probably the differences between Stretch and Bullseye are to huge meanwhile. Unfortunately we don’t know what’s going as you are not able to attach a screen.

---

<div class="post-metadata">

**Author:** ![gasto](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/g/8e7dd6/32.png) [@gasto](https://dietpi.com/forum/u/gasto)\
**Post date:** [10 February 2022 10:21 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/33 "2022-02-10T10:21:28Z")

</div>

Yeah I know, I’m very fond of my Orange Pi Zero to be honest, it just works hehe. I’ll be sure to backup the image from time to time with Win32 Disk Imager next time.

Thank you!

---

<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:** [10 February 2022 10:31 UTC](https://dietpi.com/forum/t/uninstalling-pihole/5445/34 "2022-02-10T10:31:19Z")

</div>

at least before and after major upgrades like the switch from Stretch to Buster to Bullseye. 🙂

[Previous page](https://dietpi.com/forum/t/uninstalling-pihole/5445.md?page=1)
