Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot boot into encrypted root + btrfs subvolume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
linuxuser21
n00b
n00b


Joined: 02 Apr 2016
Posts: 3

PostPosted: Sat Apr 02, 2016 4:45 am    Post subject: [SOLVED] Cannot boot into encrypted root + btrfs subvolume Reply with quote

Quote:
Could not find the root block device in UUID=2f5c91b7-3345-4e09-9364-6e3f34727b43


I've been battling this issue for weeks and please understand, I really have to be at my whits end to ask for help. As the title suggests, I cannot boot into a new install on a btrfs subvolume inside an encrypted partition. I successfully installed & booted on a test install on the other hard drive on my computer; so, I don't think the problem lies with the kernel being unable to detect the sata controller; I could be incorrect though. I don't even get to the point where it asks me to enter the passphrase for decryption. It's a different setup, I know, but this setup works for my arch install with no problems. I've erased the last install and started a new one with genkernel to start fresh.

grub.cfg
.config

Code:
Kernel:
kernel-genkernel-x86_64-4.4.2-hardened-grsec

Code:
lsblk -f:
sda                                                                 
└─sda1       crypto_LUKS        d0cc5a26-a48f-466c-a00d-545424c3f5f9
  └─cryptroot
             btrfs 2f5c91b7-3345-4e09-9364-6e3f34727b43 #This is where all subvolumes are.

Code:
lspci:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM87 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation GK104M [GeForce GTX 780M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)
03:00.0 Ethernet controller: Qualcomm Atheros Killer E220x Gigabit Ethernet Controller (rev 13)
04:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)


Thank you for your time.


Last edited by linuxuser21 on Sun Apr 03, 2016 7:30 am; edited 2 times in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Apr 02, 2016 7:56 am    Post subject: Reply with quote

linuxuser21 ...

looking at the grub2.cfg you are expecting grub2 to prompt for the pass (I assume at least, but I'm completely unfamiliar with grub's 'cryptodisk' feature), I have no idea what grub does in this regard but I would suspect that it is would require the "device-mapper" useflags enabled on sys-boot/grub ... you didn't mention this, and as it seems that the issue is prior to whatever the initramfs would be doing I suspect the issue is with that specific feature. So, I would compare the grub2 installed on arch with that installed via gentoo (ie, ./configure switches).

HTH & best ... khay
Back to top
View user's profile Send private message
linuxuser21
n00b
n00b


Joined: 02 Apr 2016
Posts: 3

PostPosted: Sun Apr 03, 2016 5:01 am    Post subject: Reply with quote

khayyam wrote:
linuxuser21 ...

looking at the grub2.cfg you are expecting grub2 to prompt for the pass (I assume at least, but I'm completely unfamiliar with grub's 'cryptodisk' feature), I have no idea what grub does in this regard but I would suspect that it is would require the "device-mapper" useflags enabled on sys-boot/grub ... you didn't mention this, and as it seems that the issue is prior to whatever the initramfs would be doing I suspect the issue is with that specific feature. So, I would compare the grub2 installed on arch with that installed via gentoo (ie, ./configure switches).

HTH & best ... khay


Thank you for your answer.

I didn't even install grub2 this time around. Instead, I just used the menu entry, generated from the last time (the grub.cfg is on a seperate subvolume) However; I did install it with the device-mapper useflags just now, reinstalled grub2 to the mbr and regenerated the grub.cfg (now updated in the first post). Saddly though, it did not work and I am getting the same results. I would like to point out that when did the first install before I generated a grub.cfg via gentoo, I just copied the working Arch menuentry and modified it to use the subvolume "Gentoo" as root; which, obviously did not work either.
Back to top
View user's profile Send private message
linuxuser21
n00b
n00b


Joined: 02 Apr 2016
Posts: 3

PostPosted: Sun Apr 03, 2016 7:30 am    Post subject: Reply with quote

I got it! After analyzing the new grub configuration that was generated and the Gentoo DM-Crypt LUKS wiki, I realized that kernel line was incorrect.

Quote:
/Gentoo/boot/kernel-genkernel-x86_64-4.4.2-hardened-grsec root=UUID=2f5c91b7-3345-4e09-9364-6e3f34727b43 ro rootflags=subvol=Gentoo cryptdevice=/dev/sda1:cryptroot:allow-discards rootflags=subvol=Gentoo

Is supposed to be
Quote:
/Gentoo/boot/kernel-genkernel-x86_64-4.4.2-hardened-grsec crypt_root=UUID=d0cc5a26-a48f-466c-a00d-545424c3f5f9 ro cryptdevice=/dev/sda1:cryptroot:allow-discards rootflags=subvol=Gentoo root=/dev/mapper/root
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum