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

Re: Stretch : mount Jessie encrypted HDD via USB



On Wed 01 Nov 2017 at 19:59:25 (+0100), MPhil. Emanoil Kotsev wrote:
> David Wright wrote:
> 
> > And one query while we're on the topic. Obviously
> > umount is necessary and will be noticed later if
> > it's not performed. However, what about vgchange -an
> > and locking? AFAICT failing to lock has no later
> > consequences for the device itself.
> > 
> 
> I don't know what you mean, but I like the proper closing of the lvm before 
> cryptsetup closes the partition. Indeed vgchange -an ist just hiding the lvm 
> from the kernel, but anyway.

OK, so that sounds as if removing the USB device before   vgchange -an
will not affect the device but only the host PC.

And my own experience suggests that the same is true if the
unlocked device is removed before locking it.

It's not that I don't perform the correct sequence of steps,
but just that accidents happen and I like to be prepared for
the consequences. The effects of removing a device without
unmounting it are well documented and have been for years.
OTOH I have found a deafening silence about the effects of
not locking an encrypted device.

> Thanks for the udisksctl.

Glad to help.

Cheers,
David.


Reply to: