You are not logged in.

#26 2020-11-28 21:18:05

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Encrypted disk asks for password twice

That sounds strange to me. There's not key configuration in my /boot/loader/entries/arch.conf nor in my /etc/crypttab. I tried to open the crypted partition from a live USB media and it prompted for the password once:

IMG-20201128-215354.jpg

Also, I don't have an history for when I created the encrypted partition because I was doing it from the live media. If there was a key setup should I see that in /etc/crypttab file, right? But there's nothing there.

Offline

#27 2020-11-28 22:23:18

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Encrypted disk asks for password twice

The keyfile to be used with the encrypt hook would be specified in the bootloader config.  As you stated it is not specified so the encrypt hook prompts for a password which fails then works on the second attempt.
At a guess perhaps something is caught in the keyboard buffer on the first attempt.

Offline

#28 2020-11-28 22:29:41

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Encrypted disk asks for password twice

Well, to get a clearer view lets take '/mnt/external750' out of the equation, disable it and reboot.
It seems strange for 2 key slots seem to be used!?

Offline

#29 2020-11-28 22:33:56

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Encrypted disk asks for password twice

loqs wrote:

At a guess perhaps something is caught in the keyboard buffer on the first attempt.

That would be really bad( I hope you're not right wink, my guess is a dual slot or that second partition

He could check by doing a 'luksDump'

Offline

#30 2020-11-29 09:44:51

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Encrypted disk asks for password twice

I disabled external750 both in /etc/fstab and /etc/crypttab, rebooted and it still asks for the password twice

Offline

#31 2020-11-29 21:26:37

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Encrypted disk asks for password twice

I'm still not sure why it's happening, is your locale.conf okay?
Have no idea if it will help, but, regenerate your initramfs and try again..

If have read some topics about this issue on the net but there seem to be various answers.

Offline

#32 2020-11-30 12:24:01

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Encrypted disk asks for password twice

locale.conf seems OK

~ % cat /etc/locale.conf 
LANG=en_US.UTF-8
~ % mkinitcpio -P            
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.9.10-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.9.10-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful

Still asking twice sad

Offline

#33 2020-12-04 19:32:24

daniel_shub
Member
Registered: 2012-06-21
Posts: 82

Re: Encrypted disk asks for password twice

I am not sure I fully follow what is going on, but according to the wiki (which is what I used to setup my system), you need to add a keyfile to the initramfs via the FILE array in mkinitcpio.conf.

EgidioCaprino wrote:

I'm sorry. I just realized I posted it from another Arch machine, not the one having the problem. This is the one with the problem:

~ % cat /etc/mkinitcpio.conf

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

Offline

#34 2020-12-04 20:01:18

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Encrypted disk asks for password twice

But I'm OK with entering the password at every boot.

Offline

#35 2020-12-04 22:16:41

frostschutz
Member
Registered: 2013-11-15
Posts: 1,417

Re: Encrypted disk asks for password twice

What do the password prompts look like?

Your previous picture showed two prompts but the first one was "no key available with this passphrase" which suggests you mistyped it the first time...

Offline

#36 2020-12-04 22:43:23

EgidioCaprino
Member
Registered: 2016-03-13
Posts: 102

Re: Encrypted disk asks for password twice

It asks for the password twice every single time. Also I'm sure I'm putting the right password in. Look, I've found this on Reddit. I'm gonna try it this weekend.

Offline

Board footer

Powered by FluxBB