Problem using iso2usb.sh LUKS encryption
by business_kid from LinuxQuestions.org on (#4QN69)
I'm having a problem, in that this freezes at a point. The processes in top show a few more kworker jobs than I'm used to, and usb-storage, but nothing's working. I'm booting on the 4.19.59*huge kernel, have it's modules installed, etc, and have cryptsetup, & squashfs. Nothing is complaining to ldd about lack of support. Here's the error: Code:mount: /mnt/alieniso.8fGU7K: WARNING: device write-protected, mounted read-only.
147501 blocks
--- Copying files from ISO to USB... takes some time.
732,273,237 100% 136.68MB/s 0:00:05 (xfr#75, to-chk=0/83)
--- Creating 1024 MB container file using 'dd if=/dev/urandom', patience please...
0+0 records in
0+0 records out
0 bytes copied, 0.00404137 s, 0.0 kB/s
--- Encrypting the container file with LUKS; enter 'YES' and a passphrase...
WARNING!
========
This will overwrite data on /dev/loop1 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
--- Unlocking the LUKS container requires your passphrase again...
Enter passphrase for /mnt/alienusb.WmxCPt/slhome.img:
# FROZEN HERE AND NEVER PROGRESSES. Processes die away to 0%.I have entered the passphrase. If I enter a wrong password, it makes me do it over, so I don't think the script is hanging. I have every compression algorithm except one (ztsd?) which I never heard of. If I do it without the encrypted home, iso2usb.sh is fine.
My line was: iso2usb.sh -i slackware64-live-xfce-current.iso -o /dev/sdb -c 1G -w 10
Ctrl_C doesn't kill it. I have to do a kill -9 on the appropriate bash terminal. 'ps -e |grep tty3' reports 2 bash processes and cryptsetup. I presume it's cryptsetup that has diminished interest. Sending a HUP to cryptsetup gives me an offer to press Ctrl_C to abort. But it doesn't throw an error or restart work.


147501 blocks
--- Copying files from ISO to USB... takes some time.
732,273,237 100% 136.68MB/s 0:00:05 (xfr#75, to-chk=0/83)
--- Creating 1024 MB container file using 'dd if=/dev/urandom', patience please...
0+0 records in
0+0 records out
0 bytes copied, 0.00404137 s, 0.0 kB/s
--- Encrypting the container file with LUKS; enter 'YES' and a passphrase...
WARNING!
========
This will overwrite data on /dev/loop1 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
--- Unlocking the LUKS container requires your passphrase again...
Enter passphrase for /mnt/alienusb.WmxCPt/slhome.img:
# FROZEN HERE AND NEVER PROGRESSES. Processes die away to 0%.I have entered the passphrase. If I enter a wrong password, it makes me do it over, so I don't think the script is hanging. I have every compression algorithm except one (ztsd?) which I never heard of. If I do it without the encrypted home, iso2usb.sh is fine.
My line was: iso2usb.sh -i slackware64-live-xfce-current.iso -o /dev/sdb -c 1G -w 10
Ctrl_C doesn't kill it. I have to do a kill -9 on the appropriate bash terminal. 'ps -e |grep tty3' reports 2 bash processes and cryptsetup. I presume it's cryptsetup that has diminished interest. Sending a HUP to cryptsetup gives me an offer to press Ctrl_C to abort. But it doesn't throw an error or restart work.