LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-23-2019, 08:24 PM   #1
Alinda
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Rep: Reputation: Disabled
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$
 
Old 08-24-2019, 05:56 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,472

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I have an encrypted HD and a non-encrypted HD in the same computer? grumpyskeptic Linux Mint 1 02-15-2017 05:21 PM
LXer: Two Tips to Keep Your Phone's Encrypted Messages Encrypted LXer Syndicated Linux News 0 05-02-2016 11:21 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03:44 AM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
Accessing encrypted windows hard drive with live CD furry3331 Linux - General 2 06-29-2007 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration