Boot problem / messed up installation? [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Boot problem / messed up installation? [SOLVED]

Post by VinLin » Wed May 31, 2017 4:16 am

Hi,

On startup i need to select F9 Ubuntu every time. In the BIOS I can't set Ubuntu as preferred OS.
Could you help me out where to look for the 'problem'?
I bought a laptop, out of insecurity wanted to keep windows on it. Tried to make a dual boot system, didn't like it, because I couldn't boot Linux automatically. Now I've changed my mind. I just want Linux Mint on it, since it is incredibly good with an active community supporting it!
So from reading the forum and other sources on the web I figured out that the laptop is booting in Legacy BIOS and Linux is on EFI.
What happens is: Grub starts, after a second it changes to a HP screen, if I don't push F9 (boot selection) nothing happens. F9 gives me the opportunity to boot Ubuntu (Linux Mint).

Here's some code output:

Code: Select all

mint@mint ~ $ ls /sys/firmware
acpi  dmi  efi  memmap
mint@mint ~ $ sudo parted --list
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size   File system  Name                  Flags
 1      1049kB  538MB   537MB  fat32        EFI System Partition  boot, esp
 2      538MB   1050MB  512MB  ext2
 3      1050MB  250GB   249GB


Model: SanDisk Cruzer Glide (scsi)
Disk /dev/sdb: 31.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  31.5GB  31.5GB  primary  fat32        boot, lba


mint@mint ~ $ inxi -Fxz
System:    Host: mint Kernel: 4.4.0-53-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.2.6 (Gtk 3.18.9-1ubuntu3.1) Distro: Linux Mint 18.1 Serena
Machine:   System: Hewlett-Packard (portable) product: HP EliteBook 840 G2 v: A3008D410B03
           Mobo: Hewlett-Packard model: 2216 v: KBC Version 96.5B
           Bios: Hewlett-Packard v: M71 Ver. 01.18 date: 09/26/2016
CPU:       Dual core Intel Core i5-5200U (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 8779
           clock speeds: max: 2700 MHz 1: 2183 MHz 2: 2101 MHz 3: 1801 MHz 4: 2167 MHz
Graphics:  Card: Intel Broadwell-U Integrated Graphics bus-ID: 00:02.0
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.01hz
           GLX Renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2)
           GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio:     Card-1 Intel Wildcat Point-LP High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Broadwell-U Audio Controller driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.4.0-53-generic
Network:   Card-1: Intel Ethernet Connection (3) I218-LM
           driver: e1000e v: 3.2.6-k port: 5080 bus-ID: 00:19.0
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Wireless 7265 driver: iwlwifi bus-ID: 03:00.0
           IF: wlo1 state: up mac: <filter>
Drives:    HDD Total Size: 281.5GB (0.6% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB temp: 0C
           ID-2: USB /dev/sdb model: Cruzer_Glide size: 31.5GB temp: 0C
Partition: ID-1: / size: 7.8G used: 46M (1%) fs: overlay dev: N/A
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 47.0C mobo: 0.0C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 181 Uptime: 31 min Memory: 790.5/15922.6MB
           Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (bash 4.3.461) inxi: 2.2.35 
mint@mint ~ $ 
So what can I do?
Use Gparted to whipe the disk clean for a clean install or does that wipe crucial code for operating my system?

Thanks for your time and effort! VinLin

Edit:
There's something wrong with the BIOS. The version displayed in the code is M71 ver.1.18 whereas on screen i can only see the previous one.
Edit2:
The previous BIOS was 1.6.1.0 That's what is showingon startup [esc] button systeminformation.
Last edited by VinLin on Wed May 31, 2017 8:13 am, edited 2 times in total.

User avatar
prestonR
Level 5
Level 5
Posts: 843
Joined: Wed Jan 07, 2015 12:24 pm
Location: Harare

Re: Boot problem / messed up instal?

Post by prestonR » Wed May 31, 2017 4:44 am

i need to select F9 Ubuntu every time
I don't get this, is this your boot menu listing available drives or a menu for trusted efi installations?
I figured out that the laptop is booting in Legacy BIOS
Switch your Bios to 'Uefi' only, no need for any 'legacy' or 'legacy support' mode.

User avatar
gold_finger
Level 9
Level 9
Posts: 2886
Joined: Mon Mar 11, 2013 11:39 pm

Re: Boot problem / messed up instal?

Post by gold_finger » Wed May 31, 2017 4:49 am

VinLin wrote:So from reading the forum and other sources on the web I figured out that the laptop is booting in Legacy BIOS and Linux is on EFI.
Output confirms Mint is installed in UEFI mode. Only thing you should need to do is change the boot mode of the computer from Legacy/CSM/Bios to UEFI. Sounds like the F9 key gets you to a Boot Menu. If your newer HP is like my older HP, the F10 key should get you into the main UEFI Settings Menu. That's where you'll find settings for boot mode of computer. Change it to UEFI, reboot and Mint should start correctly.

P.s.
On my old (non-UEFI) HP, I hit the <Esc> key immediately after powering on and that brings up choice to press either <F9> or <F10>. Yours may be similar.
Please add [SOLVED] to your thread if a solution is found. Go to your first post in the thread, hit "Edit" button and add [SOLVED] to the title of the post.

How To Format Your Forum Posts.

Try Linux Beginner Search Engine for Linux questions.

User avatar
prestonR
Level 5
Level 5
Posts: 843
Joined: Wed Jan 07, 2015 12:24 pm
Location: Harare

Re: Boot problem / messed up instal?

Post by prestonR » Wed May 31, 2017 5:11 am

But something is a bit odd here. Can a bios that's set to legacy mode boot Mint in Uefi mode?
Last edited by prestonR on Wed May 31, 2017 5:14 am, edited 1 time in total.

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up instal?

Post by VinLin » Wed May 31, 2017 5:12 am

prestonR wrote: i need to select F9 Ubuntu every time


I don't get this, is this your boot menu listing available drives or a menu for trusted efi installations?
This is from the boot Options Menu. The chooses are:
Exernal USB Hard Drive
Notebook Ehternet IPV6
OS Boot Manger
Boot From EFI File
ubuntu
prestonR wrote: I figured out that the laptop is booting in Legacy BIOS


Switch your Bios to 'Uefi' only, no need for any 'legacy' or 'legacy support' mode.
The BIOS is already in Uefi mode.

Thanks prestonR. Please let me know if you need more information.

User avatar
prestonR
Level 5
Level 5
Posts: 843
Joined: Wed Jan 07, 2015 12:24 pm
Location: Harare

Re: Boot problem / messed up instal?

Post by prestonR » Wed May 31, 2017 5:21 am

Check if there is a way to enable/disable 'trusted' efi installations. Sometimes you have to set a supervisor password to enable advanced bios options.

What does 'OS boot manager' do?

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up instal?

Post by VinLin » Wed May 31, 2017 5:36 am

gold_finger wrote: On my old (non-UEFI) HP, I hit the <Esc> key immediately after powering on and that brings up choice to press either <F9> or <F10>. Yours may be similar.
F9 Brings up a Boot Options menu where I select ubuntu to boot normal.
F10 brings up a BIOS Setup menu, this where i can select, for instance, wake up on screen opening. I can't select bootable sectors here.

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up instal?

Post by VinLin » Wed May 31, 2017 5:40 am

prestonR wrote:But something is a bit odd here. Can a bios that's set to legacy mode boot Mint in Uefi mode?
:oops: Don't know. Seems like that. Newbies can do impossible things right? :lol:
My computer starts in Uefi mode, from the code tells me ( as posted above).

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up installation?

Post by VinLin » Wed May 31, 2017 5:43 am

prestonR wrote:Check if there is a way to enable/disable 'trusted' efi installations. Sometimes you have to set a supervisor password to enable advanced bios options.

What does 'OS boot manager' do?
OS Boot Manager brings up a windows recovery screen.
Any more thoughts on a possible solution for my problem? Thanks for your time and effort!

User avatar
prestonR
Level 5
Level 5
Posts: 843
Joined: Wed Jan 07, 2015 12:24 pm
Location: Harare

Re: Boot problem / messed up installation?

Post by prestonR » Wed May 31, 2017 5:55 am

Ok, I think I found the solution.
HP hard coded the paths for the OS boot manager in their UEFI boot manager to \EFI\Microsoft\Boot\bootmgfw.efi to boot Microsoft Windows. As workaround use the "Customized Boot" path option:

Install latest HP firmware; it allows defining a “Customized Boot” path in the UEFI pre-boot graphical environment. Select the “Customized Boot” option in the UEFI pre-boot graphical environment under “Boot Options” and set the path to your OS boot loader, e.g.: \EFI\grub\grubx64.efi

Also, adjust the device boot order (also in the UEFI pre-boot graphical environment) to boot this entry first.
https://wiki.archlinux.org/index.php/HP ... ook_840_G1

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up installation?

Post by VinLin » Wed May 31, 2017 7:29 am

prestonR wrote:Ok, I think I found the solution.
HP hard coded the paths for the OS boot manager in their UEFI boot manager to \EFI\Microsoft\Boot\bootmgfw.efi to boot Microsoft Windows. As workaround use the "Customized Boot" path option:

Install latest HP firmware; it allows defining a “Customized Boot” path in the UEFI pre-boot graphical environment. Select the “Customized Boot” option in the UEFI pre-boot graphical environment under “Boot Options” and set the path to your OS boot loader, e.g.: \EFI\grub\grubx64.efi

Also, adjust the device boot order (also in the UEFI pre-boot graphical environment) to boot this entry first.
https://wiki.archlinux.org/index.php/HP ... ook_840_G1
So close...
I tried /EFI/grub/grubx64.efi didn't work. Do I need to make a mountpoint? Like discribed in the archlinux page? Looks to me that there's code missing. There's no mention of an adres like /dev/sda1 (that's where the ESP is).

rene
Level 12
Level 12
Posts: 4417
Joined: Sun Mar 27, 2016 6:58 pm

Re: Boot problem / messed up installation?

Post by rene » Wed May 31, 2017 7:59 am

On Ubuntu/Mint the path is \EFI\ubuntu\grubx64.efi.

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up installation?

Post by VinLin » Wed May 31, 2017 8:11 am

Yippie! :lol: I'm happy!

This works. There still is a HP screen passing by during startup but the process continuous!

So GREAT! Thanks for your help!

User avatar
michael louwe
Level 10
Level 10
Posts: 3300
Joined: Sun Sep 11, 2016 11:18 pm

Re: Boot problem / messed up installation?

Post by michael louwe » Wed May 31, 2017 8:46 am

@ VinLin

Congrats.!

Seems, there are many hurdles put up by M$ to deter people from moving away from Win 10/8.1 in OEM computers. Eg ...
1. Secure Boot can only be disabled through Win 10/8.1.
2. Legacy/BIOS boot is only available after Secure Boot has been disabled and rebooted.
3. A Supervisory password has to be set before "Trusted EFI Installer" can be enabled, eg to install Linux or Win 7.
4. Some recent high-end OEM Win 10 laptops are installed in fake-RAID mode using Intel's RST(Rapid Storage Technology), eg Lenovo Yoga 900 13ISK2.

Windows EFI System Partition(ESP) is where Windows Boot Manager or OS Boot Manager is located/installed. When you dual-booted, Linux Grub was also installed in this partition, over-writing the WBM = computer boots into a Grub Menu where Linux or Win 10 can be selected as the boot OS.

You need to set your UEFI BIOS settings properly before fully getting rid of all remnants of Win 10.
....... If really needed, you can also do a clean install of Linux Mint 18.1 in UEFI/GPT mode, eg choose "Something else" and manually partition ...
1. EFI Boot Partition or boot/efi = fat32/550MB.
2. / partition = ext4/50GB.
3. home partition = ext4/about 190GB.
4. swap partition = twice RAM size.

For some guidance, please refer to my posts at ....... viewtopic.php?f=46&t=246289&p=1321428#p1321428

viewtopic.php?f=46&t=246483&p=1322575#p1322575
viewtopic.php?f=42&t=122276

VinLin
Level 1
Level 1
Posts: 11
Joined: Fri May 12, 2017 9:37 am

Re: Boot problem / messed up installation? [SOLVED]

Post by VinLin » Wed May 31, 2017 2:08 pm

michael louwe wrote:@ VinLin

Congrats.! Thanks!

Seems, there are many hurdles put up by M$ to deter people from moving away from Win 10/8.1 in OEM computers.
isn't that giving them to uch credit?
Eg ...
1. Secure Boot can only be disabled through Win 10/8.1.
On the HP system I'm using it is in the BIOS/advanced
2. Legacy/BIOS boot is only available after Secure Boot has been disabled and rebooted.
Could be, I'm in EUFI
3. A Supervisory password has to be set before "Trusted EFI Installer" can be enabled, eg to install Linux or Win 7.
Not in this system
4. Some recent high-end OEM Win 10 laptops are installed in fake-RAID mode using Intel's RST(Rapid Storage Technology), eg Lenovo Yoga 900 13ISK2.
You could be right, I don't know. Do you now how I can check this?

Windows EFI System Partition(ESP) is where Windows Boot Manager or OS Boot Manager is located/installed. When you dual-booted, Linux Grub was also installed in this partition, over-writing the WBM = computer boots into a Grub Menu where Linux or Win 10 can be selected as the boot OS.
Thank you for telling me this

You need to set your UEFI BIOS settings properly before fully getting rid of all remnants of Win 10.
....... If really needed, you can also do a clean install of Linux Mint 18.1 in UEFI/GPT mode, eg choose "Something else" and manually partition ...
1. EFI Boot Partition or boot/efi = fat32/550MB.
2. / partition = ext4/50GB.
3. home partition = ext4/about 190GB.
4. swap partition = twice RAM size.
I'm thinking about this, since there is no data that's precious to me on this system. I don't think I need 32GB of Swap space. The RAM of 16 GB should be more then enough?

For some guidance, please refer to my posts at ....... viewtopic.php?f=46&t=246289&p=1321428#p1321428

viewtopic.php?f=46&t=246483&p=1322575#p1322575
viewtopic.php?f=42&t=122276 This one is really helpful!
Thank you for reply, VinLin

Post Reply

Return to “Newbie Questions”