# Change from OrangePi 4 to miniPC mantaining same external drive

**URL:** <https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155>\
**Category:** General Discussion\
**Created:** [21 May 2024 15:25 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155 "2024-05-21T15:25:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![metrolan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@metrolan](https://dietpi.com/forum/u/metrolan)\
**Post date:** [21 May 2024 15:25 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/1 "2024-05-21T15:25:55Z")

</div>

Hi!

I’ve searching for similar topics, but I’m keeping some questions.  
My current scenario is a OrangePi 4 with an external USB HD. Dietpi\_userdata is in the external drive.  
OrangePi is running some containers: filebrowser, npm, netalertx and portainer. I tried Immich but this SBC has not enough power for that and take a long time for the jobs.  
So I want to change OrangePi by a miniPC, with the same external drive.  
I want to do this with as less steps as possible, and as much safely as possible as well.  
Then, I ask you for some help and advice about the migration.  
I think that I must do:

1. Backup containers and volumes. Backup current dietpi\_userdata and personal files, just in case.
2. Install Debian (without graphic environment) in miniPC
3. Attach the drive to the miniPC
4. Run dietpi-installer from @MichaIng
5. In the first boot, in dietpi-config:  
A) Mount the external HD in the same path as current.  
B) Select to move dietpi\_userdata to the the path it has currently (and thus to the external HD)
6. Restore the containers backups.
7. Check that -hopefully- everything works fine.

In step 6, will Dietpi preserve the original contents in the dietpi\_userdata folder?  
Is there any missing steps I must take?

Thanks for your help!!!

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [21 May 2024 16:14 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/2 "2024-05-21T16:14:04Z")

</div>

Not sure if this will work when you switch from Orange Pi 4, which uses an ARM processor, to a mini PC, which probably uses x86\_64?!

---

<div class="post-metadata">

**Author:** ![metrolan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@metrolan](https://dietpi.com/forum/u/metrolan)\
**Post date:** [21 May 2024 18:04 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/3 "2024-05-21T18:04:57Z")

</div>

You mean dietpi\_userdata is related in some way to the architecture of the system?

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [22 May 2024 03:21 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/4 "2024-05-22T03:21:04Z")

</div>

No the kernel for the OS is compiled for a different architecture of processor…they are not cross compatible…like for like compile of the OS…otherwise it won’t work…

You can build the miniPC, then rsync over the user\_data from the ARM to the miniPC…migrate the userdata over

---

<div class="post-metadata">

**Author:** ![metrolan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@metrolan](https://dietpi.com/forum/u/metrolan)\
**Post date:** [22 May 2024 06:25 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/5 "2024-05-22T06:25:01Z")

</div>

Well, it seems that I didn’t explain myself.  
In step 1 I would backup _only_ user data: dietpi\_userdata  
In step 2, I would install a _new, fresh, amd64_ Debian in the miniPC and later would run dietpi-installer. Also I could install the nativePC version of Dietpi, I don’t know which is the preferred way for a miniPC.

As you can see, anything to do with arm64

So the question is about the quickest and safest way to recovering the old personal and configuration files

Anyway, I think I would do a backup of dietpi-userdata and later a restore with dietpi-sync. It is a lot of more time consuming as there is 1 TB already in the external disk, but it seems to be the better way.

Thanks.

---

<div class="post-metadata">

**Author:** ![StephanStS](https://dietpi.com/forum/user_avatar/dietpi.com/stephansts/32/2522_2.png) [@StephanStS](https://dietpi.com/forum/u/StephanStS)\
**Post date:** [22 May 2024 16:38 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/6 "2024-05-22T16:38:54Z")

</div>

In every case, installing the DietPi PC image is the safer and easier choice.

> **[DietPi.com Docs - How to install DietPi](https://dietpi.com/docs/install/#__tabbed_1_9)**
>
> Easy to follow tutorial to install & initially configure DietPi

Check out the correct installation media for you (UEFI, BIOS,…).

Which PC model do you plan to use?

---

<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:** [23 May 2024 17:29 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/7 "2024-05-23T17:29:15Z")

</div>

Generally it works, but do not run `dietpi-installer` after attaching the external drive, but before doing so:

1. Backup userdata and other non-arch data/configs.
2. Install fresh Debian and run `dietpi-installer` or flash our x86 image, as noted by Stephan.
3. Boot and finish first run setup without installing software yet.
4. Attach external drive and move userdata via `dietpi-drive_manager`. It won’t remove anything but just takes over what is there, in case merges what is on `/mnt/dietpi_userdata` already.
5. Install software as you like. It will migrate whichever data dirs it finds in `/mnt/dietpi_userdata`.

---

<div class="post-metadata">

**Author:** ![metrolan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@metrolan](https://dietpi.com/forum/u/metrolan)\
**Post date:** [1 June 2024 15:39 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/8 "2024-06-01T15:39:42Z")

</div>

It is a MinisForum GK41

---

<div class="post-metadata">

**Author:** ![metrolan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@metrolan](https://dietpi.com/forum/u/metrolan)\
**Post date:** [1 June 2024 15:40 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/9 "2024-06-01T15:40:23Z")

</div>

Thank you Michael.  
I’ll do that way.

---

<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:** [28 November 2024 15:41 UTC](https://dietpi.com/forum/t/change-from-orangepi-4-to-minipc-mantaining-same-external-drive/20155/10 "2024-11-28T15:41:19Z")

</div>

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