Problems modifying grub

2 respostas [Última entrada]
richardEU
Desconectado
Joined: 05/11/2017

Hi,

I am having some problems trying to modify grub on my X200.

This was my first time installing Libreboot. I have managed to flash libreboot, and have installed Debian with full encryption using the guide. I can manually boot and all is working well.

I am having problems understanding how to modify grub. I have been following the guide at Libreboot.

1)I modified the grubtest.cfg.
2)I renamed it libreboot_grub.cfg and moved it to /boot/grub

On boot:

1)I get the following:

error: disk 'ata0' not found.
error: disk 'lvm/matrix-rootvol' not found.
error: disk 'lvm/matrix-boot' not found.
Attempting to decrypt master key...
Enter passphrase for ahci0,msdos1 (alphanumeric code here):

I enter the password. There is a delay of about a minute

2)I get the following:

Slot 0 opened
error: disk 'ata0,1' not found
error: no such partition
error: disk 'ata0,2' not found

this repeats - i.e. 0,1 0,2, 0,3 and so on
--MORE-- (I have to press enter)
more of the same
error: seriel port 'com0' isn't found.
error: terminal 'serial' isn't found.
--MORE--

3) I press enter, the screen goes back to the main menu, then automatically start to boot. I am presented with the familiar 'Please unlock disk sda1_crypt:' prompt.

4) I enter the password and the laptop boots into Debian.

My guess is that I have edited the grub file incorrectly as I am able to boot but in an inefficient manner. I have tried to read through the information at Libreboot, but it is quite difficult for me to follow.

I did not that on the Libreboot guide where it says to look in the grub file for:
menuentry 'Load Operating System [o]' --hotkey='o' --unrestricted

My file said:
menuentry 'Load Operating System (incl. fully encrypted disks) [o]' --hotkey='o'

So slightly different. Perhaps I there are additional parts of the grub config I need to remove?

Thank you in advance for any help. I am proud of myself for getting this far with librebooting so I hope to get this issue fixed!

amenex
Desconectado
Joined: 01/03/2015

My grub difficulties are minimized when I run "sudo update-grub" upon restarting after any
change in my HDD hardware, such as adding a USB-connected hard drive or flash drive. That
makes the next restart uneventful.

George Langford

richardEU
Desconectado
Joined: 05/11/2017

Thank you. Unfortunately, I have already tried that with no success.

Instead I have opted to reinstall without following the guide for encrypted /boot. I installed with encryption as I normally do, i.e. using the installer. The laptop boots rapidly and without issues now.

At least I know have an up and running libreboot'd X200 to use.