The officially official Devuan Forum!

You are not logged in.

#1 2021-02-24 12:12:20

mclien
Member
Registered: 2020-02-29
Posts: 92  

[solved] T460p won't boot from internal hdd

I think i had that once, but can't remember the fix.

I installed my Thinkpad T460p without any flaw, but the new installation won't boot from the hdd.

I guess I misse dthe botable flag on the the boot partition, but there seems no fix with fdisk for that.

So how do I fix this from the (reduced) shell in rescue mode?

Last edited by mclien (2021-02-27 09:39:32)

Offline

#2 2021-02-24 15:38:19

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [solved] T460p won't boot from internal hdd

If you are referring to the rescue mode available from the "Advanced options" GRUB submenu on the ISO image then you can use

# parted /dev/sdX set Y boot on

Replace X & Y with the required drive letter and partition number.


Brianna Ghey — Rest In Power

Offline

#3 2021-02-24 21:16:04

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [solved] T460p won't boot from internal hdd

Is this something new that a boot partition needs to have a boot flag, or are you talking about an efi partition?

Offline

#4 2021-02-25 08:30:10

mclien
Member
Registered: 2020-02-29
Posts: 92  

Re: [solved] T460p won't boot from internal hdd

Well, a mix of both, I guess.
I think, I did combine 2 things incorrectly: EFi turned off in BIOS and installing with a GPT partition table. (again, btw., like my last Debian install).
I chose to turn off the EFi boot an use a mdos part table, which is working.

Offline

#5 2021-02-25 14:21:13

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: [solved] T460p won't boot from internal hdd

If you want gpt with legacy bios boot, you need a special partition for grub that is at least 1MB size, has no filesystem on it and has flag bios_grub (in gparted) or type ef02 (in gdisk). Then you get the advantage of more than four primary partitions.

Edit: Fixed what I wrote in my sleep. Thanks, HoaS!

Offline

#6 2021-02-25 14:34:06

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [solved] T460p won't boot from internal hdd

fsmithred wrote:

has flags esp and boot (in gparted)

Those are the flags for an EFI system partition. A BIOS boot partition needs the "bios_grub" flag set in gparted.

EDIT: note that some machines won't boot in non-UEFI mode from a GPT disk even if a BIOS boot partition is present and holds GRUB's core.img.

Last edited by Head_on_a_Stick (2021-02-25 14:35:16)


Brianna Ghey — Rest In Power

Offline

Board footer