Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4990

Advanced users • Re: Image File Utilities

$
0
0
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
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:

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
Which I think is trying to give the same label to the loop device (/dev/loop0p2) as exists on the root device (/dev/sda2)?
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
Yep.

Statistics: Posted by tinker2much — Sun Jan 28, 2024 10:11 am



Viewing all articles
Browse latest Browse all 4990

Trending Articles