Re: cryptsetup luksAddKey == Can't open device:

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

 



Hi,
> Thanks for your reply.  I'm providing all the information I know to
> include---I'm a 2-3 year Linux user (write papers, check email, turn-off
> computer), not a developer nor Linux hobbyist:
no offense meant ...

> > I guess, /media/??? is a mountpoint and /dev/hd?? is a block
> > device - is that valid for you, too?
> /media/sda1 is the hot-mount location for, in this case, my USB flash
> drive; should I be using something else?  To debug I tried a more
> traditional location /dev/hda1, [...]
that is the problem:
 * /media/sda1 is a a mount location - just a directory
 * /dev/hda1 is a block device

so the output of the following commands should be different:
 cryptsetup luksAddKey /media/sda1 KEYFILE
 cryptsetup luksAddKey /dev/hda1 KEYFILE

the first outputs "failed to open device" and the other one "no luks device".

Just as Dick Middelton suggested in his mail: use the device instead of the
mountpoint (as written in the manual) - in your case: /dev/sda1

hope that helps,
regards,
Lars

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux