You are not logged in.

#1 2021-06-22 07:43:33

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

[SOLVED] Cannot connect my external disk via terminal

Is there a way to connecting & accessing my Archbackup disk by just switching the tty and then try it from there? I can access the encrypted Archbackup disk via DE. DIsk format is ext3/ext4.

I ask this because months ago,my DE failed, which has been fixed pretty fast, and I realized that I weren't aviable to access my external,encrypted, Archbackup Disk via tty.

Sorry, I don't remember what it said back then why I couldn't access it and I'd like to redo the procedure so I can access my encrypted external Archbackup Disk once again in worst case scenario I got a terminal left to use only and DE would fail on a much worse grade.

Last edited by ArchNewbieKernel (2021-06-23 14:46:31)

Offline

#2 2021-06-22 08:03:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: [SOLVED] Cannot connect my external disk via terminal

Yes you decrypt it and then you mount it.

If this is insufficient information you need to provide more. How did you encrypt the disk? There are likely cmdline alternatives for whatever your DE uses to identify that the disk is encrypted and needs a passphrase but to know that you need to know how you've encrypted it.

Offline

#3 2021-06-22 09:45:54

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

Re: [SOLVED] Cannot connect my external disk via terminal

V1del wrote:

Yes you decrypt it and then you mount it.

If this is insufficient information you need to provide more. How did you encrypt the disk? There are likely cmdline alternatives for whatever your DE uses to identify that the disk is encrypted and needs a passphrase but to know that you need to know how you've encrypted it.

I encrypted it by using the software "disks" which uses LUKS.

Offline

#4 2021-06-22 10:28:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: [SOLVED] Cannot connect my external disk via terminal

Offline

#5 2021-06-22 13:04:57

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

Re: [SOLVED] Cannot connect my external disk via terminal

Looks promising but I used

fdisk

and the external disk is

sdd           8:48   0  1.8T  0 disk

without additional info.
By using

sudo cryptsetup open device sdd

I get

Device device does not exist or access denied.

It's also strange it shows up as ssd but without giving me string of

└─ssd        8:34   0  1.8T  0 part  
  └─luksdev 254:0    0  1.8T  0 crypt /

like it does on my encrypted PC's disk....its just "ssd".

Offline

#6 2021-06-22 14:00:05

Khere
Member
From: Italy
Registered: 2020-03-04
Posts: 170

Re: [SOLVED] Cannot connect my external disk via terminal

ArchNewbieKernel wrote:

By using

sudo cryptsetup open device sdd

I get

Device device does not exist or access denied.

Typing mistake, you have to use

 cryptsetup open $YOURDEVICE $DEVICEMAPPER

instead of

crypstsetup open device $YOURDEVICE

For example:

cryptsetup open /dev/sda2 cryptoroot

Last edited by Khere (2021-06-22 14:05:28)


Fan of Giorgio Moroder & Mohammad Ammax enemy

Offline

#7 2021-06-23 11:39:40

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

Re: [SOLVED] Cannot connect my external disk via terminal

Khere wrote:
ArchNewbieKernel wrote:

By using

sudo cryptsetup open device sdd

I get

Device device does not exist or access denied.

Typing mistake, you have to use

 cryptsetup open $YOURDEVICE $DEVICEMAPPER

instead of

crypstsetup open device $YOURDEVICE

For example:

cryptsetup open /dev/sda2 cryptoroot

this works but I get problems by mounting it.

 username  username  ~  $  sudo cryptsetup open /dev/sdd ArchBackup
[sudo] username for username: 
Enter passphrase for /dev/sdd: 
 username  username  ~  $  mount /dev/sdd
mount: /dev/sdd: can't find in /etc/fstab.
 username  username  ~  $  mount /dev/sdd ArchBackup
mount: ArchBackup: mount point does not exist.
 username  username  ~  $  mount /mnt
mount: /mnt: can't find in /etc/fstab.
 username  username  ~  $  mount /sdd
mount: /sdd: can't find in /etc/fstab.
username  username  ~  $  lsblk -f

sdd          crypto_LUKS 1                54340bv-422h-9321-8rd3-3dg3653g4420
└─ArchBackup ext4        1.0   ArchBackup k329kesd-f324-9231-7b28-4g5420r137gha

PS:
I have changed the UUIDs in this post.

Offline

#8 2021-06-23 12:09:54

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,331

Re: [SOLVED] Cannot connect my external disk via terminal

You need to mount the device mapped path. and you mount things into a directory you designate as the mount point. So

mount /dev/mapper/ArchBackup /mnt

Last edited by V1del (2021-06-23 12:11:48)

Offline

Board footer

Powered by FluxBB