Hi,
I had to do a new install of DietPi, as my SD card died. I have installed DietPi on to a new USB stick with Nextcloud. The install of DietPi (on the now dead SD with Dietpi 9.0.2) was set up to use and external harddrive to save Nextcloud settings and data. I would like to set up the new install of DietPi (on the new USB stick) to use the external harddrive and “old” data to set up Nextcloud. I do not want to write over any data that is on the external harddrive.
I have searched the existing open and closed issues but not found a clear explanation on how to do this-
Required Information
DietPi version = v9.1.1
Distro version = Bookworm
Kernel version = 6.1.21-v8+
Architecture = arm64
SBC model = RPi 4 Model B (aarch64)
Power supply used | EG: 5V 1A
USB stick used 64Gb
Additional Information
Software title Nextcloud
Fresh install of Dietpi
Please could you help. I am a relative noobie to dietpi. Thank you!
Another wry question: Are your previous and current Debian and Nextcloud versions the same, i.e. was it a Bookworm image before and Nextcloud up-to-date?
hi, the last version of DietPi I was using on the SD card was 9.0.2 I believe what ever version of debian that runs. As for Nextcloud I’m not sure, it would have been a recent release of it. Sorry
There is no direct relation between DietPi version and Debian version.
It seems that the dietpi_userdata directory was on the hard drive in the past. We can recreate this and link the directory manually. After that, there may be problems with NextCloud. In this case, we may have to adapt the database user to the new situation.
The problem is that I am not sure whether newer MariaDB gracefully migrates a database directory from an older MariaDB version, hence the question regarding Debian. Newer Nextcloud should migrate an older data directory well, but still it is safer to either assure the versions match 100% or otherwise migrate with a database dump, instead of the raw directory.
But I guess the old system/SD card is not available anymore? If so, it might still work all well, but if possible, better have a backup of this old dietpi_userdata directory.
i booted down the DietPi on the raspberry pi 4, unpluggted the harddrive and plugged it into my raspberry pi 5, to get some data off of it and get this message:
This location could not be displayed. You do not have permissions necessary to view the contents of "eb96183d-69ca-422f-a187-3F5d706faa0
With or with out this usb harddrive attached to Dietpi on the rp4 the dietpi won’t boot. And get messages like the image attached.
ok you login to a desktop. Which user you are? Did you tried root user or sudo command?
Because the drive might be readable for user root only. You would need to check file system permission. But don’t change them on your HDD, otherwise you will have challenges on DietPi afterwards