You are not logged in.

#1 2009-11-28 20:56:06

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Mounting external drive encrypted with Luks

Hello guys,

since I'm using Luks for my whole system I'd like to backup it on my external hard drive that should be encrypted too.

So I used the following commands:

cryptsetup -c aes-xts-plain -s 512 luksFormat /dev/sdb

cryptsetup luksOpen /dev/sdb external

mkfs.ext4 /dev/mapper/external

I'm then able to mount it with

mount -t ext4 /dev/mapper/external /media/external

But I want to automise that, means my external drive should be mounted automatically by system (I guess it's only via udev possible?) after it was plugged in, without any passphrase scan and with complete user access, not just root.

How could I achieve that?

Thank you for your help. smile

Offline

Board footer

Powered by FluxBB