# How to use the Pi4 to Pi5 migration script?

**URL:** https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956
**Category:** Troubleshooting
**Tags:** raspberry-pi-4
**Created:** [14 November 2024 09:45 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956 "2024-11-14T09:45:37Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Heisenberg](https://dietpi.com/forum/user_avatar/dietpi.com/heisenberg/32/3994_2.png) [@Heisenberg](https://dietpi.com/forum/u/Heisenberg)
#### Post date: [14 November 2024 09:45 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/1 "2024-11-14T09:45:37Z")

</div>

I want to start the migration script but I get error message 23.

I have a Raspberry Pi 4, boot is on SD, I have dietpi root FS and pushed everything to a usb-ssd.

I wanted to move to a Raspberry Pi 5 but it doesn’t work:

```auto
dietpi@DietPi:~$ sudo bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/dev/.meta/dietpi-rpi-firmware-migration')
bash: /dev/fd/63: Datei oder Verzeichnis nicht gefunden
dietpi@DietPi:~$ curl: (23) Failed writing body

```

---

<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: [14 November 2024 10:15 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/2 "2024-11-14T10:15:33Z")

</div>

pls try again as user root and move into `/tmp` beforehand.

---

<div class="post-metadata">

### Author: ![Heisenberg](https://dietpi.com/forum/user_avatar/dietpi.com/heisenberg/32/3994_2.png) [@Heisenberg](https://dietpi.com/forum/u/Heisenberg)
#### Post date: [14 November 2024 12:04 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/4 "2024-11-14T12:04:40Z")

</div>

As root it worked, but iobroker was no longer there and everything else couldn’t be accessed after a few seconds. I have now set up the system from scratch.

Now everything seems to be working except dietpidashboard, which is not accessible.

---

<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: [14 November 2024 12:42 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/5 "2024-11-14T12:42:17Z")

</div>

> [@Heisenberg](#):
>
> Now everything seems to be working except dietpidashboard, which is not accessible.

pls try using the latest nightly build instead of stable

> [@Heisenberg](#):
>
> but iobroker was no longer there and everything else couldn’t be accessed after a few seconds.

Something we could have checked 😉 Would be interesting on the cause of these issues. Because we plan to use these migration script for all RPi users at a later stage. All hints and challenges would be helpful to ensure a smooth transition at the end.

---

<div class="post-metadata">

### Author: ![Heisenberg](https://dietpi.com/forum/user_avatar/dietpi.com/heisenberg/32/3994_2.png) [@Heisenberg](https://dietpi.com/forum/u/Heisenberg)
#### Post date: [14 November 2024 13:24 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/6 "2024-11-14T13:24:18Z")

</div>

Ah, sorry, I was a bit hasty. I wanted to get everything up and running quickly so that, for example, PIhole and so on would work again before the kids got home from school. 😅

Edit:

now is nextcloud crashed:

Internal Server Error

The server encountered an internal error and was unable to complete your request.  
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.  
More details can be found in the server log.

---

<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: [14 November 2024 14:25 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/7 "2024-11-14T14:25:13Z")

</div>

can you check following if all services are up

```auto
dietpi-services status

```

---

<div class="post-metadata">

### Author: ![Heisenberg](https://dietpi.com/forum/user_avatar/dietpi.com/heisenberg/32/3994_2.png) [@Heisenberg](https://dietpi.com/forum/u/Heisenberg)
#### Post date: [19 November 2024 18:22 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/8 "2024-11-19T18:22:00Z")

</div>

I identified the problem, it was the external USB nvme enclosure.

I have now purchased an Argon Neo 5 to integrate the nvme natively.

---

<div class="post-metadata">

### Author: ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)
#### Post date: [17 February 2025 18:22 UTC](https://dietpi.com/forum/t/how-to-use-the-pi4-to-pi5-migration-script/21956/9 "2025-02-17T18:22:41Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
