LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 06-24-2021, 01:09 PM   #1
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Rep: Reputation: 25
Decrypting BTRFS root partition when on battery !! Doozie


I rarely post because most of the time it just works; or I find the solution on the internet. This one is, for me at least, a very weird one. Nor do I have logs but there is also nothing on the internet to guide me. I decided to post in the hope someone could help me.

Arch with LTS Kernel
Lenovo Legion 5
XFCE
Disk encryption with BTRFS/Luks.

Issue:
When on Battery, the root partition cannot be decrypted.

Workaround:
Plugin the laptop and the root partition CAN be decrypted.

Please, tell me I am not crazy and this is a real problem. I apologize as there is no log. I checked and could not find anything relevant. Since its a laptop, I kind of need to use as such but with this issue its not possible. It needs to remain plugged in..

Thank you for your time and help

Amendment:
After a lot of tries, the issue is not specifically with the laptop being plugged in or not. Simply, it takes a couple of tries before the password is accepted for the decryption of the root partition. That sounds already more logical The message is "no password with this passphrase"

Last edited by riganta; 06-24-2021 at 10:17 PM.
 
Old 06-25-2021, 06:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
hi
1. did you try bios upgrade already?
2. did you check if your HDD/SSD is working properly?
3. any other hardware related error ?
 
Old 06-25-2021, 07:45 AM   #3
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Thanks for r reply.
1. BIOS has been upgraded to the latest.
2. As far as I can tell SSD (Samsung EVO) is working properly. I run diag using spinrite. This is the only test I did on the SSD.
3. No other hardware errors at all. Everything else is working as smooth as one could expect.

Trying to dig a bit further, I am probably (cannot really say for sure) having the same issue as described in this blog --> https://bit.ly/3vQ0mME

The Arch forum is full of the same but with no resolve. BTW, the message is "No Key Available with this passphrase" (sorry messed it up in my first post). It started after latest LTS upgrade about 2 days ago.

I need to retype the same password over and over to have it finally accept it and let me boot into my system. Its a pain.
I also did "mkinitcpio -p linux-lts" and vconsole reports keymap=US which is correct. In any case my password is accepted after multiple tries.
 
Old 06-25-2021, 08:10 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,945

Rep: Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325Reputation: 7325
hm. Probably I would revert to a previous version of cryptsetup.
 
Old 06-25-2021, 12:08 PM   #5
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Won't be trying to downgrade. I have an external encrypted disk and it works with no issue.
Finally, when testing the passphrase, it is successful.
Quote:
sudo cryptsetup --verbose open --test-passphrase /dev/mapper/lvm-lvroot
Enter passphrase for /dev/mapper/lvm-lvroot:
Key slot 0 unlocked.
Command successful.
 
Old 06-25-2021, 03:29 PM   #6
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
went down the rabbit hole.
It seems (I can't say for sure) some type of resolve has come my way. I am posting for max visibility for others. The 'No Key available with this passphrase' seems to be a pretty wide spread issue and it has been for a while.
First Post --> https://bit.ly/3xTDX2h
Quote:
sed -i 's/CONSOLEFONT/FONT/' /lib/initcpio/install/consolefont
Second Post (Bug) --> https://bit.ly/3qDxMNH - Interestingly enough, I have the variable 'quiet' setup in my grub. I can't go in any more details than that because I was having a hard time to comprehend what was said. I will let the gurus take a stab at it if need be.

PS: I guess, I have somewhat got to a point where the issue is bearable. I need to enter the password only twice after the change following those posts. I am happy with the resolve. In any case, all the technical jargon is flying way above my head so I am stopping my descent into this rabbit hole

Last edited by riganta; 06-25-2021 at 03:56 PM.
 
  


Reply

Tags
btrfs, root partition



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
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM
LXer: 2doĆ¢??s todos are a doozie LXer Syndicated Linux News 0 04-01-2012 04:31 AM
[SOLVED] Initramfs with decrypting a luks root partition questions dman777 Linux - Software 3 05-18-2011 09:58 AM
a doozie... ethereal Linux - General 4 07-28-2003 03:36 AM

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

All times are GMT -5. The time now is 08:46 PM.

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
Open Source Consulting | Domain Registration