[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to attach a fully encrypted drive to Stretch



On Tue, Jun 27, 2017 at 10:34:45AM +0200, Erwan David wrote:
> Le 06/27/17 à 10:16, Hans a écrit :
> > Hi!
> > I believe, first of all is to check, how youz device is seen at the usb-port.
> > 
> > As root start "tail -f /var/log/syslog" and then plugin your device. Check the 
> > messages.
> > 
> > When you know the device, check the partionin. Just start "fdisk" and print 
> > out your partitions. Be careful, not to change anything!
> > 
> > End fdisk, then open your encrypted partition (i.e. sdc3) using 
> > "cryptsetup luksOpen /dev/sdc3 somename" and enter your correct password.
> > 
> > The term "somename"  can freely be chosen, I personally are using something 
> > like "usr2" or "home2" whatever.
> > 
> > When your device is opened, you can mount it somewhere, I am using 
> > either "/mnt" or create a new directory (i.e. /disk1)
> > 
> > So, mount it using "mount /dev/mapper/somename /mnt".
> > 
> 
> It won't work : the disk is an lvm volume (as said in first message), so
> there is some lvm stuff to do before this. Sorry I do not know lvm to
> give the right commands to use.

When the drive is LVM it should me mapped to /dev/mapper/ automatically
after being opened by cryptsetup, you can then mount it like so:

"mount /dev/mapper/volume_name /mnt"

Attachment: signature.asc
Description: PGP signature


Reply to: