LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problem accessing encrypted drive with luksOpen (https://www.linuxquestions.org/questions/ubuntu-63/problem-accessing-encrypted-drive-with-luksopen-4175659701/)

Alinda 08-23-2019 08:24 PM

Problem accessing encrypted drive with luksOpen
 
Hi,

I had encrypted my ssd on my laptop using LUKS and I have been having troubles to boot from hard drive; I can boot using USB sticks and see the drive, but can not use cryptsetup luksOpen to access the drive:file:///home/ubuntu/Pictures

Code:

ubuntu@ubuntu:/dev$ ls
autofs          disk        hugepages  lightnvm      mapper              nvme0      pts    snapshot  tty11  tty21  tty31  tty41  tty51  tty61  ttyS13  ttyS23  ttyS5      vcs    vcsa4
block            dri          hwrng      log          mcelog              nvme0n1    random  snd      tty12  tty22  tty32  tty42  tty52  tty62  ttyS14  ttyS24  ttyS6      vcs1  vcsa5
bsg              drm_dp_aux0  i2c-0      loop-control  media0              nvme0n1p1  rfkill  stderr    tty13  tty23  tty33  tty43  tty53  tty63  ttyS15  ttyS25  ttyS7      vcs2  vcsa6
btrfs-control    drm_dp_aux1  i2c-1      loop0        mei0                nvme0n1p2  rtc    stdin    tty14  tty24  tty34  tty44  tty54  tty7    ttyS16  ttyS26  ttyS8      vcs3  vfio
bus              drm_dp_aux2  i2c-2      loop1        mem                nvme0n1p3  rtc0    stdout    tty15  tty25  tty35  tty45  tty55  tty8    ttyS17  ttyS27  ttyS9      vcs4  vga_arbiter
char            ecryptfs    i2c-3      loop2        memory_bandwidth    nvram      sda    tpm0      tty16  tty26  tty36  tty46  tty56  tty9    ttyS18  ttyS28  ttyprintk  vcs5  vhci
console          fb0          i2c-4      loop3        mqueue              port      sda1    tpmrm0    tty17  tty27  tty37  tty47  tty57  ttyS0  ttyS19  ttyS29  uhid      vcs6  vhost-net
core            fd          i2c-5      loop4        net                ppp        sdb    tty      tty18  tty28  tty38  tty48  tty58  ttyS1  ttyS2  ttyS3  uinput    vcsa  vhost-vsock
cpu              full        initctl    loop5        network_latency    psaux      sg0    tty0      tty19  tty29  tty39  tty49  tty59  ttyS10  ttyS20  ttyS30  urandom    vcsa1  video0
cpu_dma_latency  fuse        input      loop6        network_throughput  ptmx      sg1    tty1      tty2  tty3  tty4  tty5  tty6  ttyS11  ttyS21  ttyS31  userio    vcsa2  zero
cuse            hpet        kmsg      loop7        null                ptp0      shm    tty10    tty20  tty30  tty40  tty50  tty60  ttyS12  ttyS22  ttyS4  v4l        vcsa3
ubuntu@ubuntu:/dev$ cryptsetup luksOpen /dev/nvme0n1p3 z1
Device /dev/nvme0n1p3 doesn't exist or access denied.
ubuntu@ubuntu:/dev$ cd disk/by-uuid
ubuntu@ubuntu:/dev/disk/by-uuid$ ls
0E36-B247  3db6083d-b6a5-4e22-a5d8-c0edf4f0fd88  7caf54af-29f5-477c-927b-6c24ac9153de  F6F4-4682
ubuntu@ubuntu:/dev/disk/by-uuid$ cryptsetup luksOpen /dev/disk/by-uuid/3db6083d-b6a5-4e22-a5d8-c0edf4f0fd88 z1
Device /dev/disk/by-uuid/3db6083d-b6a5-4e22-a5d8-c0edf4f0fd88 doesn't exist or access denied.
ubuntu@ubuntu:/dev/disk/by-uuid$


berndbausch 08-24-2019 05:56 PM

It looks like you are running cryptsetup as a non-root user. This explains "access denied".


All times are GMT -5. The time now is 02:01 PM.