User talk:Sakaki/Sakaki's EFI Install Guide/Final Preparations and Reboot into EFI

From Gentoo Wiki
Jump to:navigation Jump to:search
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 05:49, 18 June 2024 (UTC)
:: Your reply ~~~~

Hi Sakaki, great guide you've made here! Very clear and well motivated instructions.

However, I experience a problem at the end of this chapter. When I reboot, the system finds the USB-drive and prompts for the passphrase. When I enter the passphrase the root partition fails to mount. I get the following message on startup:

...output supressed...

>> Removable device /dev/disk/by-partuuid/[correct PARTUUID for my USB-drive] mounted
>> luks-key.gpg on device /dev/disk/by-partuuid/[correct PARTUUID for my USB-drive] found
Enter passphrase:

...loads some additional USB-devices and then waits for passphrase...
...I enter passphrase here...

>> LUKS device /dev/disk/by-partuuid/[correct PARTUUID for my SSD] opened
>> Activating Logical Volume Groups
  2 logical volume(s) in volume group "vg1" now active
>> Activating Logical Volume Groups
  2 logical volume(s) in volume group "vg1" now active
>> Detected real_resume=/dev/mapper/vg1-swap
PM: Starting manual resume from disk
>> Initializing root device...
>> Mounting /dev/mapper/vg1-root as root...
>> Detected fstype: ext4
>> Using mount fstype: ext4
>> Using mount opts: -o ro
EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
!! The filesystem /dev/mapper/vg1-root, mounted at /newroot does not contain a valid init=/usr/lib/systemd/systemd
!! Could not find the root block device in /dev/mapper/vg1-root.
!! Please specify another value or:
!! - press Enter for the same
!! . type "shell" for a shell
!! - type "q" to skip...
root block device(/dev/mapper/vg1-root) :: 

I have rebuilt the kernel two times with different manual configurations without any success. I have also tried the other tips at the end og the chapter without any success.

I have followed the guide to the letter with two exceptions:

  • I only have one partition on my SSD as i don't intend to dualboot.
  • I don't have a /home partition, only swap and root

Any ideas what the problem may be?

Lavic 20:00, 26 June 2015 (UTC)
Hi, did you definitely set a systemd profile and update @world during this previous step of the guide? That should have created the required init (/usr/lib/systemd/systemd) on your mapped vg1-root. Try dropping to a shell where prompted (at the end of the failed boot, above) and having a look at what is actually present in your root directory.
Sakaki (talk) 18:57, 26 June 2015 (UTC)
That did the trick! I had chosen the wrong profile. When I changed this and updated @world it worked like a charm.

Thanks for the quick reply!

Lavic 20:00, 26 June 2015 (UTC)