I tackled the problem but with a different solution.
i modified my script to find the right harddrive from UUID and create a device of my choosing.That will open the luks encrypted drive and prompt for passphrase then create device /dev/mapper/Harddisk1 that can be mounted.
Since i run my script by ssh to the raspberry pi it does what i need and i don't need crypttab that prevented me to unlock the drives via ssh.
i modified my script to find the right harddrive from UUID and create a device of my choosing.
Code:
sudo cryptsetup luksOpen "$(blkid --uuid 393b354b-a2c4-6b7b-a542-aa44d3043299 -o device)" Harddisk1Since i run my script by ssh to the raspberry pi it does what i need and i don't need crypttab that prevented me to unlock the drives via ssh.
Statistics: Posted by Hallonett — Thu Sep 04, 2025 6:50 pm