I'm continuing to follow through the code using bashdb. At the point of the complaint, which for both me and the original script is line 172:I tried running an incremental backup with this change, and it avoided the previous error and ran in the expected time, with one new error:Code:
e2label: Bad magic number in super-block while trying to open /dev/sda2
Code:
Breakpoint 1 hit (1 times).(/home/pi/bin/image-backupt:172):172: e2label "${LOOP}p2" "$(e2label ${ROOT_DEV_P}2)" &> /dev/nullbashdb<2> pr $LOOP/dev/loop0bashdb<3> pr $ROOT_DEV_P/dev/sda
Trying to run that line outside the debugger, I get the following further info:
Code:
pi@pi5:~/Documents/bashdb-5.0-1.1.2 $ sudo e2label /dev/sda2e2label: Bad magic number in super-block while trying to open /dev/sda2/dev/sda2 contains a crypto_LUKS file system
Statistics: Posted by tinker2much — Sun Jan 28, 2024 10:11 am