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

Beginners • Re: Need to mount encrypted external drives to specific mount point

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

Code:

sudo cryptsetup luksOpen "$(blkid --uuid 393b354b-a2c4-6b7b-a542-aa44d3043299  -o device)" Harddisk1
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.

Statistics: Posted by Hallonett — Thu Sep 04, 2025 6:50 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles