EFISTUB loader failure, Dell Latitude E6220
Tofloor
poster avatar
ravione
deepin
2018-03-08 07:32
Author
Edited by ravione at 2018-3-9 02:51

Hi,

I'm new Linux user and I'm searching for help.

I'm trying to speed up booting time on my Dell Latitude 6220. I've found out that I can bypass grub bootloader using the kernels built in efistub loader.

I've found tutorial for ubuntu herebut modified it to work on deepin with mixed results.

This is what I have done:

1. Created 3 partitions using gparted from live cd.
sda1 - efi (500mb)
sda2 - /
sda3 - home

2. Installed deepin on sda2 and pointed the efi and home partition. (system boots but using grub)

3. Created /etc/kernel/postinst.d/zz-update-efistub with the following contents:

  1. #!/bin/sh

  2. cp /vmlinuz /initrd.img /boot/efi/EFI/deep/
Copy the Code

4. Then made executable with parameters:

  1. sudo chmod +x /etc/kernel/postinst.d/zz-update-efistub

  2. sudo /etc/kernel/postinst.d/zz-update-efistub
Copy the Code

and i run it.

5. Added boot entry:

  1. sudo efibootmgr -c -d /dev/sda -p 1 -L "Deepin (efistub)" -l /EFI/deep/vmlinuz -u "root=/dev/sda2 rw initrd=/EFI/deep/initrd.img quiet splash"
Copy the Code

And now the pc boots from the kernel but gives an error: "vfs: unable to mount root fs on unknown block"

As I understand kernel cannot mount the root partition or as I found on the net it cannot find the initrd.img to point it to the root.

I've heard that I can hardcode the root path into the kernel but that's above my abilities.  

And to my question.. Does anybody have an idea how to successfuly boot the deepin using efistub loader?

Reply Favorite View the author
All Replies

No replies yet