ok, tried with a 10y old card reader that i found and the sd card was recognised immediately…
not i get a new error, from what i can see it’s something with /dev/sda3:
+ select_blkdev '^sd' 'Setup SD mirroring' 'Select USB device to copy the internal SD card data to'
+ [[ -z 1 ]]
+ array=()
+ declare -a array
+ read -r id foo foo size foo foo foo
++ lsblk -i
++ tr -d '`\\|'
++ grep -E '^sd'
++ tr -d '\\-'
+ array+=("$id" "$size")
+ read -r id foo foo size foo foo foo
+ [[ 2 -eq 0 ]]
++ whiptail --title 'Setup SD mirroring' --cancel-button Cancel --ok-button Select --menu 'Select USB device to copy the internal SD card data to' 12 76 4 sda 29.7G
+ retval=sda
+ [[ -z sda ]]
+ dest=/dev/sda
++ blockdev --getsize64 /dev/sda
+ [[ ! -n 31914983424 ]]
++ mount
++ grep /dev/sda
+ [[ -n '' ]]
+ infoText='DANGEROUS OPERATION, USE WITH PRECAUTION!\n\nThis will *copy* your system root from your SD card to a USB attached card writer device. Are you sure /dev/sda is an SD card writer device equipped with a dispensible SD card ? Are you this will destroy all data on that card and you want to proceed writing to this device ?'
++ blockdev --getsize64 /dev/mmcblk0
+ srcSize=15931539456
+ minSize=30269924966
++ blockdev --getsize64 /dev/sda
+ destSize=31914983424
+ [[ 31914983424 -lt 30269924966 ]]
+ sfdisk -d /dev/mmcblk0
+ sfdisk /dev/sda
Checking that no-one is using this disk right now ... OK
Disk /dev/sda: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Card Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xed06c8bf
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 62332927 62330880 29.7G 83 Linux
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0x63d526e8.
/dev/sda1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 256 MiB.
/dev/sda2: Created a new partition 2 of type 'Linux' and of size 14.6 GiB.
/dev/sda3: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x63d526e8
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
++ fdisk -l /dev/mmcblk0
++ head -1
++ cut '-d ' -f7
+ start=31116288
+ fdisk /dev/sda
+ partprobe
+ cond_redirect mke2fs -F -t ext4 /dev/sda3
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mke2fs -F -t ext4 /dev/sda3 \033[39;49;00m'
$ mke2fs -F -t ext4 /dev/sda3
+ mke2fs -F -t ext4 /dev/sda3
mke2fs 1.44.5 (15-Dec-2018)
The file /dev/sda3 does not exist and no size was specified.
+ return 1
+ mkdir -p /storage
+ sed -e 's|%DEVICE|3|g' -e 's|%BKPDIR|/storage|g' /opt/openhabian/includes/storage.mount
+ cond_redirect systemctl enable --now storage.mount
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now storage.mount \033[39;49;00m'
$ systemctl enable --now storage.mount
+ systemctl enable --now storage.mount
Created symlink /etc/systemd/system/local-fs.target.wants/storage.mount → /etc/systemd/system/storage.mount.
Created symlink /etc/systemd/system/zram-config.service.wants/storage.mount → /etc/systemd/system/storage.mount.
Job for storage.mount failed.
See "systemctl status storage.mount" and "journalctl -xe" for details.
+ return 1
+ echo 'FAILED (enable storage mount)'
FAILED (enable storage mount)
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n "50 | Backup/Restore"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
+ true
+ show_main_menu
[13:09:47] openhabian@ohab2:~$ sudo systemctl status storage.mount
● storage.mount - /storage mount
Loaded: loaded (/etc/systemd/system/storage.mount; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-09-16 13:05:56 CEST; 3min 58s ago
Where: /storage
What: 3
Sep 16 13:05:56 ohab2 systemd[1]: Mounting /storage mount...
Sep 16 13:05:56 ohab2 mount[28906]: mount: /storage: special device 3 does not exist.
Sep 16 13:05:56 ohab2 systemd[1]: storage.mount: Mount process exited, code=exited, status=32/n/a
Sep 16 13:05:56 ohab2 systemd[1]: storage.mount: Failed with result 'exit-code'.
Sep 16 13:05:56 ohab2 systemd[1]: Failed to mount /storage mount.
[13:09:54] openhabian@ohab2:~$ sudo journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An n/a= process belonging to unit storage.mount has exited.
--
-- The process' exit code is 'exited' and its exit status is 32.
Sep 16 13:05:56 ohab2 systemd[1]: storage.mount: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit storage.mount has entered the 'failed' state with result 'exit-code'.
Sep 16 13:05:56 ohab2 systemd[1]: Failed to mount /storage mount.
-- Subject: A start job for unit storage.mount has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit storage.mount has finished with a failure.
--
-- The job identifier is 1973 and the job result is failed.
Sep 16 13:06:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:06:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:06:01 ohab2 influxd[689]: ts=2020-09-16T11:06:01.669851Z lvl=info msg="Executing query" log_id=0PGc5i90000 service=query query="SELECT mean(value) FROM openhab_db.autogen.DW_TempIst WHERE time >= now() - 1d G
Sep 16 13:06:01 ohab2 influxd[689]: ts=2020-09-16T11:06:01.679656Z lvl=info msg="Executing query" log_id=0PGc5i90000 service=query query="SELECT mean(value) FROM openhab_db.autogen.DW_TempSoll WHERE time >= now() - 1d
Sep 16 13:06:01 ohab2 influxd[689]: ts=2020-09-16T11:06:01.713968Z lvl=info msg="Executing query" log_id=0PGc5i90000 service=query query="SELECT mean(value) FROM openhab_db.autogen.DW_HeizungStatus WHERE time >= now()
Sep 16 13:06:01 ohab2 influxd[689]: [httpd] 192.168.178.53, 192.168.178.53,127.0.0.1 - grafana [16/Sep/2020:13:06:01 +0200] "GET /query?db=openhab_db&epoch=ms&q=SELECT+mean%28%22value%22%29+FROM+%22DW_TempIst%22+WHERE+
Sep 16 13:06:06 ohab2 sudo[28041]: pam_unix(sudo:session): session closed for user root
Sep 16 13:07:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:07:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:08:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:08:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:09:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:09:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:09:21 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:09:21 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:09:47 ohab2 sudo[29025]: openhabian : TTY=pts/1 ; PWD=/home/openhabian ; USER=root ; COMMAND=/bin/systemctl status storage.mount and journalctl -xe
Sep 16 13:09:47 ohab2 sudo[29025]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 16 13:09:47 ohab2 sudo[29025]: pam_unix(sudo:session): session closed for user root
Sep 16 13:09:54 ohab2 sudo[29034]: openhabian : TTY=pts/1 ; PWD=/home/openhabian ; USER=root ; COMMAND=/bin/systemctl status storage.mount
Sep 16 13:09:54 ohab2 sudo[29034]: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 16 13:09:54 ohab2 sudo[29034]: pam_unix(sudo:session): session closed for user root
Sep 16 13:10:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [16/Sep/2020:13:10:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.
Sep 16 13:10:18 ohab2 sudo[29052]: openhabian : TTY=pts/1 ; PWD=/home/openhabian ; USER=root ; COMMAND=/bin/journalctl -xe
Sep 16 13:10:18 ohab2 sudo[29052]: pam_unix(sudo:session): session opened for user root by (uid=0)
For some reason that fdisk command didn’t create the third partition to become /storage.
Please change /opt/openhabian/functions/backup.bash:
remove the “&> /dev/null” from the fdisk line 473, then try again.
You’ll see a scripted editing of the partition table. If that does not work to create partition #3, try doing that interactively (fdisk /dev/sda, then enter those characters and ).
i think it was line 472, now looking like this: fdisk "$dest" <<EOF
still didn’t work:
Disk /dev/sda: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Card Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x63d526e8
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0x0dc1ab62.
/dev/sda1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 256 MiB.
/dev/sda2: Created a new partition 2 of type 'Linux' and of size 14.6 GiB.
/dev/sda3: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x0dc1ab62
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
++ fdisk -l /dev/mmcblk0
++ head -1
++ cut '-d ' -f7
+ start=31116288
+ fdisk /dev/sda
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): Partition number (3,4, default 3): First sector (2048-62333951, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951): Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951): Value out of range.
Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951): Value out of range.
Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951): Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951):
Command (m for help):
+ partprobe
+ cond_redirect mke2fs -F -t ext4 /dev/sda3
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mke2fs -F -t ext4 /dev/sda3 \033[39;49;00m'
$ mke2fs -F -t ext4 /dev/sda3
+ mke2fs -F -t ext4 /dev/sda3
mke2fs 1.44.5 (15-Dec-2018)
The file /dev/sda3 does not exist and no size was specified.
?
anyway… i’m stuck with the command “t” after $start
[16:34:29] root@ohab2:/home/openhabian# fdisk /dev/sda
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (3,4, default 3): 3
First sector (2048-62333951, default 2048): 31116288
Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951): t
Last sector, +/-sectors or +/-size{K,M,G,T,P} (31116288-62333951, default 62333951):
should it be capital “T”?
no idea why first sector default is 2048, when
[16:38:59] root@ohab2:/home/openhabian# fdisk -l /dev/sda
Disk /dev/sda: 29.7 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Card Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0dc1ab62
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
i used the file from your link (as you suggested yesterday), now sda3 is created, but there’s still errors:
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new DOS disklabel with disk identifier 0x93d25d6d.
/dev/sda1: Created a new partition 1 of type 'W95 FAT32 (LBA)' and of size 256 MiB.
/dev/sda2: Created a new partition 2 of type 'Linux' and of size 14.6 GiB.
/dev/sda3: Created a new partition 3 of type 'Linux' and of size 14.9 GiB.
/dev/sda4: Done.
New situation:
Disklabel type: dos
Disk identifier: 0x93d25d6d
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 31116287 30583808 14.6G 83 Linux
/dev/sda3 31116288 62333951 31217664 14.9G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
+ partprobe
+ cond_redirect mke2fs -F -t ext4 /dev/sda3
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ mke2fs -F -t ext4 /dev/sda3 \033[39;49;00m'
$ mke2fs -F -t ext4 /dev/sda3
+ mke2fs -F -t ext4 /dev/sda3
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 3902208 4k blocks and 977280 inodes
Filesystem UUID: 7d357d22-2250-4d96-b5ce-042d6468ec40
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
+ return 0
+ mkdir -p /storage
+ sed -e 's|%DEVICE|3|g' -e 's|%BKPDIR|/storage|g' /opt/openhabian/includes/storage.mount
+ cond_redirect systemctl enable --now storage.mount
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl enable --now storage.mount \033[39;49;00m'
$ systemctl enable --now storage.mount
+ systemctl enable --now storage.mount
Job for storage.mount failed.
See "systemctl status storage.mount" and "journalctl -xe" for details.
[10:44:59] root@ohab2:/opt/openhabian/functions# journalctl -xe
-- this directory become inaccessible. To see those over-mounted files,
-- please manually mount the underlying file system to a secondary
-- location.
Sep 17 10:44:53 ohab2 systemd[1]: Mounting /storage mount...
-- Subject: A start job for unit storage.mount has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit storage.mount has begun execution.
--
-- The job identifier is 3108.
Sep 17 10:44:53 ohab2 mount[22143]: mount: /storage: special device 3 does not exist.
Sep 17 10:44:53 ohab2 systemd[1]: storage.mount: Mount process exited, code=exited, status=32/n/a
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An n/a= process belonging to unit storage.mount has exited.
--
-- The process' exit code is 'exited' and its exit status is 32.
Sep 17 10:44:53 ohab2 systemd[1]: storage.mount: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit storage.mount has entered the 'failed' state with result 'exit-code'.
Sep 17 10:44:53 ohab2 systemd[1]: Failed to mount /storage mount.
-- Subject: A start job for unit storage.mount has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit storage.mount has finished with a failure.
--
-- The job identifier is 3108 and the job result is failed.
Sep 17 10:45:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [17/Sep/2020:10:45:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.0" 123fa2d5-f8c2-11ea-8a7c
Sep 17 10:45:01 ohab2 CRON[22213]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 17 10:45:01 ohab2 CRON[22217]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Sep 17 10:45:01 ohab2 CRON[22213]: pam_unix(cron:session): session closed for user root
Sep 17 10:46:00 ohab2 influxd[689]: [httpd] 127.0.0.1 - openhab [17/Sep/2020:10:46:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1" 204 0 "-" "okhttp/2.4.0" 3602ebc1-f8c2-11ea-8a7d
[10:46:50] root@ohab2:/opt/openhabian/functions# systemctl status storage.mount
● storage.mount - /storage mount
Loaded: loaded (/etc/systemd/system/storage.mount; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-09-17 10:44:53 CEST; 2min 6s ago
Where: /storage
What: 3
Sep 17 10:44:53 ohab2 systemd[1]: Mounting /storage mount...
Sep 17 10:44:53 ohab2 mount[22143]: mount: /storage: special device 3 does not exist.
Sep 17 10:44:53 ohab2 systemd[1]: storage.mount: Mount process exited, code=exited, status=32/n/a
Sep 17 10:44:53 ohab2 systemd[1]: storage.mount: Failed with result 'exit-code'.
Sep 17 10:44:53 ohab2 systemd[1]: Failed to mount /storage mount.
In L475 of /opt/openhabian/functions/backup.bash (the one with “sed …”) replace backupdrive with dest and try again. Show earlier debug output next time as well please.
NEXT LEFT LAST PASSED UNIT ACTIVATES
Sat 2020-09-19 02:00:00 CEST 17h left Fri 2020-09-18 02:00:16 CEST 6h ago sdrsync.timer sdrsync.service
imho it’s not very clear. maybe add another paragraph for “later” installation via openhabian-config where you mention the openhabian-config option (53) and that amanda in this case must be set up separately.
[13:18:44] root@ohab2:/home/openhabian# systemctl start sdrawcopy.service
Job for sdrawcopy.service failed because the control process exited with error code.
See "systemctl status sdrawcopy.service" and "journalctl -xe" for details.
[13:18:46] root@ohab2:/home/openhabian# systemctl status sdrawcopy.service
● sdrawcopy.service - SD card raw device copy to external card reader device
Loaded: loaded (/etc/systemd/system/sdrawcopy.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-09-18 13:18:46 CEST; 4s ago
Process: 25784 ExecStart=/usr/local/sbin/mirror_SD raw /dev/sda (code=exited, status=1/FAILURE)
Main PID: 25784 (code=exited, status=1/FAILURE)
Sep 18 13:18:46 ohab2 systemd[1]: Starting SD card raw device copy to external card reader device...
Sep 18 13:18:46 ohab2 mirror_SD[25784]: blockdev: cannot open : No such file or directory
Sep 18 13:18:46 ohab2 mirror_SD[25784]: FAILED (bad destination)
Sep 18 13:18:46 ohab2 systemd[1]: sdrawcopy.service: Main process exited, code=exited, status=1/FAILURE
Sep 18 13:18:46 ohab2 systemd[1]: sdrawcopy.service: Failed with result 'exit-code'.
Sep 18 13:18:46 ohab2 systemd[1]: Failed to start SD card raw device copy to external card reader device.
[13:18:51] root@ohab2:/home/openhabian# journalctl -xe
-- A start job for unit sdrawcopy.service has finished with a failure.
--
-- The job identifier is 1894 and the job result is failed.
Sep 18 13:18:30 ohab2 sudo[25755]: pam_unix(sudo:session): session closed for user root
Sep 18 13:18:44 ohab2 sudo[25770]: openhabian : TTY=pts/0 ; PWD=/home/openhabian ; USER=root ; COMMAND=/bin/bash
Sep 18 13:18:44 ohab2 sudo[25770]: pam_unix(sudo:session): session opened for user root by openhabian(uid=0)
Sep 18 13:18:46 ohab2 systemd[1]: Starting SD card raw device copy to external card reader device...
-- Subject: A start job for unit sdrawcopy.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit sdrawcopy.service has begun execution.
--
-- The job identifier is 1964.
Sep 18 13:18:46 ohab2 mirror_SD[25784]: blockdev: cannot open : No such file or directory
Sep 18 13:18:46 ohab2 mirror_SD[25784]: FAILED (bad destination)
Sep 18 13:18:46 ohab2 systemd[1]: sdrawcopy.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit sdrawcopy.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Sep 18 13:18:46 ohab2 systemd[1]: sdrawcopy.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit sdrawcopy.service has entered the 'failed' state with result 'exit-code'.
Sep 18 13:18:46 ohab2 systemd[1]: Failed to start SD card raw device copy to external card reader device.
-- Subject: A start job for unit sdrawcopy.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit sdrawcopy.service has finished with a failure.
--
-- The job identifier is 1964 and the job result is failed.
Sep 18 13:19:00 ohab2 influxd[660]: [httpd] 127.0.0.1 - openhab [18/Sep/2020:13:19:00 +0200] "POST /write?consistency=one&db=openhab_db&p=%5BREDACTED%5D&precision=n&rp=autogen&u=openhab HTTP/1.1"
[13:19:05] root@ohab2:/home/openhabian#
You can (as root) also manually run /usr/local/sbin/mirror_SD "raw" /dev/sda,
eventually add a “-x” to first line of /usr/local/sbin/mirror_SD to see debug output