Skip to content
Discussion options

You must be logged in to vote

Okay that is some magic that is probably difficult to detect in any generic way. It does not appear in

lsblk
blkid

Right? Looks like best we could do is detecting it from the hdd/.*-[0-9]*-disk-[0-9] source scheme.

We really need to switch from cp to rsync in this script. Looks like PostgreSQL PID file disappears a little after the service was stopped (command query released). Please try to stop the database first, respectively just all services:

dietpi-services stop
sleep 2 # failsafe
/boot/dietpi/func/dietpi-set_userdata /mnt/dietpi_userdata /mnt/storage

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MichaIng
Comment options

Answer selected by jwgn
Comment options

You must be logged in to vote
1 reply
@MichaIng
Comment options

Comment options

You must be logged in to vote
1 reply
@MichaIng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment