Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OS not found on hard drive [HP Elitebook 8760w]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kgdrenefort
Apprentice
Apprentice


Joined: 19 Sep 2023
Posts: 185
Location: Somewhere in the 77

PostPosted: Mon Feb 19, 2024 10:59 am    Post subject: [SOLVED] OS not found on hard drive [HP Elitebook 8760w] Reply with quote

Hello,

I'm having big troubles to install Gentoo and make it boot on a laptop computer.

Vendor: HP
Laptop: Elitebook 8760w

It have two 2.5" sata disk slot and a NVMe slot.

On the main disk slot, I installed a SSD disk and proceed to install Gentoo.

But each time the installation is done, while rebooting, the computer says the hard drive is not containing any OS. It perfectly boot on a USB stick (gentoo live installation). Trying to force to boot on the disk from the boot order menu gives me the same behaviour.

This is the exact message:

Quote:
BootDevice Not Found
Please install an operating system on your hard disk.

Hard Disk - (3F0)

F2 System Diagnostics

For more information, please visit: www.hp.com\go\techcenter\startup

(that link didn't helped me, so far)
(F2 System Diagnostics just told me it can't boot)

Also the disk is perfectly usable while chrooting to install Gentoo, no weird behaviour, everything seems to works as expected.

I tried severals things to work around this:
- Reset the BIOS
- Force to boot on the disk manually
- Re-install Gentoo with a different partition schemes (see below)
- Change the hard drive from a slot to another while on BOS/BIOS Legacy, not with GPT/BIOS Legacy
- Checked if it was (the laptop) able to boot on these disk from BIOS option, looks like yes.

The installation is using GPT and BIOS Legacy (it's an old computer, around 2012).

Last discussion on #gentoo@libera learn me that I should try this (which is the actual state of the installation):
- /dev/sda1: A 1mb partition as BOOT BIOS
- /dev/sda2: /boot, xfs, 1Gb
- /dev/sda3: /, xfs

I first tried a DOS/BIOS Lecacy partition schemes, with the exact same behaviour, on #gentoo@libera peoples told me to avoid that.

I have a HP Elitebook 8560w which is more or less the same laptop, but smaller (15" against 17") which works gladely with Gentoo, without any problem of detecting the OS on the disk.

I don't know what else would be relevant to help you help me, don't hesitate to ask for more infos.

I can add that I could enable the UEFI mode on this laptop, which is not recommanded from the BIOS (it says that) but it seems it's more about built-in security on this laptop (which is an old laptop for pro, seems to be) against thief and stealing data, but I really don't know if it will changes anything in my case, and I don't need these security options so far.

Also adding that:
- Grub was installed on /dev/sda, no error reported. Same for grub-mkconfig:

Quote:
root@livecd / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
root@livecd / # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/kernel-6.6.13-gentoo-dist
Found initrd image: /boot/initramfs-6.6.13-gentoo-dist.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done


- There is not another OS.

Any ideas regarding this problem ?

Regards,
GASPARD DE RENEFORT Kévin
_________________
«Gentoo does not have problems, only learning opportunities.» - NeddySeagoon
«If your Gentoo installation isn't valuable to you, feel free to continue to ignore the instructions.» - figueroa


Last edited by kgdrenefort on Sat Mar 02, 2024 3:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54248
Location: 56N 3W

PostPosted: Mon Feb 19, 2024 11:35 am    Post subject: Reply with quote

kgdrenefort,

Code:
BootDevice Not Found
Please install an operating system on your hard disk.

Is a message from the BIOS, not Gentoo.

Quote:
The installation is using GPT and BIOS Legacy (it's an old computer, around 2012).

Not all hardware supports that mix but its possible ... sometimes.

You have two partition tables.
The GPT which is the real one that you want no use
The 'Protective' DOS partition table. It contains one strange partition whose only purpose is to warn that GPT is in use and not to mess with it.

Your system may need the bootable flag set, so that the BIOS knows that the drive is bootable.
Further, it must be set in the DOS partition table, as with BIOS booting, that's all the BIOS can see.

To check that, run
Code:
fdisk -t dos -l /dev/sd...
I get
Code:
# fdisk -t dos -l /dev/sda
Disk /dev/sda: 7.28 TiB, 8001563222016 bytes, 15628053168 sectors
Disk model: TOSHIBA HDWG480
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors Size Id Type
/dev/sda1           1 4294967295 4294967295   2T ee GPT

Partition 1 does not start on physical sector boundary.
The Boot flag is not set there.

If your bootable drive looks like that, set the bootable flag.
Use
Code:
# fdisk -t dos /dev/sd...
to edit the DOS partition table. Set the bootable flag there. Do not change anything else.

Some systems refuse to boot from partition type ee, which is the GPT warning. In that case, you must boot from a drive with a real DOS partition table.

-- edit --

The maintainence manual says that your laptop has UEFI mode but its off by default.
See page 116.

That's worth trying. You will need to reinstall grub and make a new grub.cfg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kgdrenefort
Apprentice
Apprentice


Joined: 19 Sep 2023
Posts: 185
Location: Somewhere in the 77

PostPosted: Fri Feb 23, 2024 10:55 am    Post subject: Reply with quote

Hi Neddy, thanks for your answer.

I do know that this is a message from the system and not Gentoo, since it (the laptop) does not even reach Grub.

So, this is the return of you fdisk command:
Code:
# fdisk -t dos -l /dev/sda
Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: OCZ-OCTANE     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1           1 250069679 250069679 119.2G ee GPT


But, there is something weird. This /dev/sda1 is wrongly named !

The 119,2G partition is /dev/sda3, not /dev/sda1, which the size is 1mb. There is probably something I don't get, here.

This is the output of fdisk -l, shortened for only get sda, whole output here:

Code:

Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: OCZ-OCTANE     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5F6DACDC-0CC9-1346-8D31-046D2A4E3089

Device       Start       End   Sectors   Size Type
/dev/sda1     2048      4095      2048     1M BIOS boot
/dev/sda2     4096   2101247   2097152     1G Linux filesystem
/dev/sda3  2101248 250068991 247967744 118.2G Linux filesystem
GPT PMBR size mismatch (968051 != 60604415) will be corrected by write.


As you can see:
- /dev/sda1 is the 1Mb BIOS Boot partition, used because it's a GPT table on a BIOS Legacy system.
- /dev/sda2 is the 1Gb /boot partition, for BIOS Legacy usage
- /dev/sda3 is the the whole system, / and /home, etc, which is the 120Gb partition

Before I do execute another command, could someone help me understand these output, please ?

Regards,
GASPARD DE RENEFORT Kévin
_________________
«Gentoo does not have problems, only learning opportunities.» - NeddySeagoon
«If your Gentoo installation isn't valuable to you, feel free to continue to ignore the instructions.» - figueroa
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54248
Location: 56N 3W

PostPosted: Fri Feb 23, 2024 4:43 pm    Post subject: Reply with quote

kgdrenefort,

All GPT disks have two partition tables.

When you boot with EFI firmware, only the GPT is used.

When you boot a GPT disk with BIOS, the BIOS uses the DOS partition table and the kernel uses the GPT partition table.
The content of the two partition tables are supposed to be different.

Your
Code:
# fdisk -t dos -l /dev/sda
...
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1           1 250069679 250069679 119.2G ee GPT
is what the BIOS sees.
The boot flag is not set there and that's normally all the BIOS checks. The BIOS cannot see tho GPT at all.

Use
Code:
fdisk -t dos /dev/sda
and set the bootable flag on the only partition there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kgdrenefort
Apprentice
Apprentice


Joined: 19 Sep 2023
Posts: 185
Location: Somewhere in the 77

PostPosted: Sat Mar 02, 2024 3:03 pm    Post subject: Reply with quote

It's working now, thank you very much.

I added the boot flag from your command, writed, rebooted and now I have GRUB and Gentoo is properly booting.
_________________
«Gentoo does not have problems, only learning opportunities.» - NeddySeagoon
«If your Gentoo installation isn't valuable to you, feel free to continue to ignore the instructions.» - figueroa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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