Hello everyone, in the past a few changes have been made to Unraid and the script did fail at some points. I updated the script with a few changes: the main array disks are now being mapped as /dev/mdX and the old script could not export the headers of those drives some drives have spaces in the name which lead to the name of the header being cut off and headers being skipped due to the same output name #!/bin/bash for i in {/dev/sd*,/dev/nvme*,/dev/md*}; do if cryptsetup luksDump $i &>/dev/null; then if [[ $(basename "$i") =~ ^md[0-9]+ ]]; then j=$(lsblk -o NAME,MOUNTPOINT -r | awk -v dev="${i##*/}" '$1 == dev { print $2 }' | sed 's|.*/||') cryptsetup luksHeaderBackup $i --header-backup-file $j.bin; echo succesfully exported LUKS Header of disk $j else cryptsetup luksHeaderBackup $i --header-backup-file udevadm info --query=property --name=$i | grep '^ID_SERIAL=' | cut -d= -f2 | tr ' ' '_'.bin; echo succesfully exported LUKS Header of disk $i fi; fi; done