# CLONE Nextcloudpi SD to SD

**URL:** <https://help.nextcloud.com/t/clone-nextcloudpi-sd-to-sd/167653>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** ncp\
**Created:** [August 6, 2023, 2:08pm UTC](https://help.nextcloud.com/t/clone-nextcloudpi-sd-to-sd/167653 "2023-08-06T14:08:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robcop](https://help.nextcloud.com/letter_avatar/robcop/32/5_5575768a8748004e209b776fc1b2916d.png) [@robcop](https://help.nextcloud.com/u/robcop)\
**Post date:** [August 6, 2023, 2:08pm UTC](https://help.nextcloud.com/t/clone-nextcloudpi-sd-to-sd/167653/1 "2023-08-06T14:08:23Z")

</div>

To prevent update problems i want to clone Nexcloudpi which is currently running on SD.  
The Clone will be done on an SD card like the one currently in use.  
I have used to do it Easus Patition Master but as soon I have inserted the SD the sistema doesn’t stand.  
Anyone can tel me how to do it.  
Thanks in advance

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 20.0.5)_: `replace me`  
Operating system and version _(eg, Ubuntu 20.04)_: `replace me`  
Apache or nginx version _(eg, Apache 2.4.25)_: `replace me`  
PHP version _(eg, 7.4)_: `replace me`

The issue you are facing:

Is this the first time you’ve seen this error? _(Y/N)_:

Steps to replicate it:

1. 
2. 
3. 

The output of your Nextcloud log in **Admin \> Logging** :

```auto
PASTE HERE

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
PASTE HERE

```

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

PASTE HERE

```auto

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

```

---

<div class="post-metadata">

**Author:** ![anon75456558](https://help.nextcloud.com/letter_avatar/anon75456558/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon75456558](https://help.nextcloud.com/u/anon75456558)\
**Post date:** [August 6, 2023, 2:16pm UTC](https://help.nextcloud.com/t/clone-nextcloudpi-sd-to-sd/167653/2 "2023-08-06T14:16:22Z")

</div>

Hi, first thought is… are you sure you actually made a copy.  
Then, confirm how you are mounting the disk as this can be done by label or uuid.

When you add disks they end up assigned with an available identifier like `/dev/sdb`  
Which will change for each new thing plugged in and removed.  
So, that could be the issue right there.

Easiest solution is to use the tool fstab to make sure you mount the disk by either label or uuid.  
uuid is the way to go because it is a unique sequence that confirms exactly which disk you are uniquely using. _You can write an fstab rule for each SD card to make sure they are mounted properly._ See:

> [@Mounting an external drive using UUID and fstab | Linux admin junior](https://help.nextcloud.com/t/mounting-an-external-drive-using-uuid-and-fstab-linux-admin-junior/97757):
>
> Create a mountpoint for the external drive for ncdata sudo mkdir /media/ncp Find UUID of external drive ls -lh /dev/disk/by-uuid/ (Mine looks like this) total 0 lrwxrwxrwx 1 root root 15 Aug 11 09:10 29075e46-f0d4-44e2-a9e7-55ac02d6e6cc -\> …/…/mmcblk0p2 lrwxrwxrwx 1 root root 10 Aug 11 09:10 35e98a80-8895-41f4-93e7-39940a1fda70 -\> …/…/sda1 lrwxrwxrwx 1 root root 15 Aug 11 09:10 9304-D9FD -\> …/…/mmcblk0p1 To add a ligne to /etc/fstab sudo nano /etc/fstab add line for your drive (cop…

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 12:52pm UTC](https://help.nextcloud.com/t/clone-nextcloudpi-sd-to-sd/167653/3 "2024-12-14T12:52:40Z")

</div>


