Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] HP Notebook - 15-db0125au Linux - Win10 dual boot
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
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 282
Location: Brisbane, Australia

PostPosted: Thu Mar 21, 2019 1:22 pm    Post subject: [SOLVED] HP Notebook - 15-db0125au Linux - Win10 dual boot Reply with quote

My 7 year old Notebook and Videorecorder died during a very bad Thunderstorm.

I purchased a new "HP Notebook - 15-db0125au" with a 125GiB SSHD (/dev/sdb) with Win10 and a 1TiB HDD (/dev/sda). Installed Gentoo with Grub2 on /dev/sda. Boots and works fine EXCEPT can only boot Gentoo after hitting ESC and F9 keys and selecting /dev/sda. (Default boot is /dev/sdb (Win10)). I can then select in Grub Gentoo or Win10.

There is no facility in the BIOS to select the default boot drive!!!.

Tried all available combinations I could think off, UEFI off, Legacy on/off, Secure Boot on/off. Also tried Devuan on /dev/sdb. Same result.

Does any one has solution how to get this thing on Powering On to go into Grub without using ESC and F9?
_________________
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as python, perl, C++, C#, Rust and the likes.


Last edited by C5ace on Sun Mar 31, 2019 8:31 am; edited 1 time in total
Back to top
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 282
Location: Brisbane, Australia

PostPosted: Sun Mar 31, 2019 8:30 am    Post subject: Reply with quote

[SOLUTION]
Was able to solve this.
1.) Mount /dev/sdb1 to /boot/efi.
2.) Copy /boot/EFI to /boot/EFI.OLD.
3.) Delete /boot/EFI/Boot
4.) Delete /boot/EFI/Microsoft

My /etc/fstab:
Code:
#<fs>               <mountpoint>    <type>  <opts>          <dump/pass>
# LABEL=HP_BOOT       /boot           ext4    noatime         1 2
LABEL=SYSTEM        /boot           vfat    noatime         1 2
LABEL=HP_ROOT       /               ext4    noatime         0 1
LABEL=HP_HOME       /home           ext4    noatime         0 2
LABEL=HP_VBOX       /VirtualBox     ext4    noatime         0 2
LABEL=HP_SWAP       none            swap    sw              0 0

Build and install the kernel and initram into /boot
emerge and install grub
Run
Code:
grub-mkconfig -o /boot/grub/grub.cfg

After coldboot the Grub screen appears.
Select and boot Gentoo.
Login as root.
Copy /boot/EFI.OLD/Boot to /boot/EFI.
Copy /boot/EFI.OLD/Microsoft to /boot/EFI.

ls -l /boot
Code:
total 17756
drwxr-xr-x 6 root root    4096 Mar 31 09:19  EFI
drwxr-xr-x 6 root root    4096 Mar 30 12:09  EFI.ORI
drwxr-xr-x 2 root root    4096 Feb 17 23:35 'System Volume Information'
-rwxr-xr-x 1 root root 3243832 Mar 28 18:02  System.map-genkernel-x86_64-4.19.27-gentoo-r1
drwxr-xr-x 6 root root    4096 Mar 31 14:31  grub
-rwxr-xr-x 1 root root 8055932 Mar 28 18:24  initramfs-genkernel-x86_64-4.19.27-gentoo-r1
-rwxr-xr-x 1 root root 6861696 Mar 28 18:02  kernel-genkernel-x86_64-4.19.27-gentoo-r1
Reboot and test that Gentoo boots as the default.

The missing RTL8821CE wireless driver can be obtained from the Zugaina Overlay.

To Do:
Get the extended functions keys to work.
_________________
Observation after 30 years working with computers:
All software has known and unknown bugs and vulnerabilities. Especially software written in complex, unstable and object oriented languages such as python, perl, C++, C#, Rust and the likes.
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