Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting Problem. Old HP Laptop.
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
whjeon
n00b
n00b


Joined: 20 Nov 2017
Posts: 65
Location: Seoul,Korea(Republic of)

PostPosted: Wed Aug 15, 2018 1:05 pm    Post subject: Booting Problem. Old HP Laptop. Reply with quote

Installed successfully. After reboot, default boot option shows
'Insert Boot Media, or press any Key'.

So I rebooted again, pressed 'esc' button, F9 for boot option, then
I should select every path to .efi file something like grub.efi file.

And then, boots successfully.

What was wrong with this installation?
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 893
Location: The Village, Portmeirion

PostPosted: Wed Aug 15, 2018 3:44 pm    Post subject: Reply with quote

My HP laptops often won't update the efi boot order correctly until you power off. It's odd, while the system is running efibootmgr will show the grub entry but when you reboot it dosn't show in the efi boot menu.

I'd power off and try again, or run grub-install again and power off.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 16, 2018 7:34 am    Post subject: Reply with quote

whjeon,

That's a message from the BIOS. Its checking for the bootable flag in the partition table and its not happy.

Boot your install media.
run
Code:
fdisk -t dos /dev/sda
and use it to set the bootable flag on exactly one partition.
Do not make any other changes.
_________________
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
whjeon
n00b
n00b


Joined: 20 Nov 2017
Posts: 65
Location: Seoul,Korea(Republic of)

PostPosted: Thu Aug 16, 2018 7:36 am    Post subject: Reply with quote

skellr wrote:
My HP laptops often won't update the efi boot order correctly until you power off. It's odd, while the system is running efibootmgr will show the grub entry but when you reboot it dosn't show in the efi boot menu.

I'd power off and try again, or run grub-install again and power off.


Thanks. Now I'm compiling some other stuff, so when it's finished, I'll try reinstall the grub!

NeddySeagoon wrote:
whjeon,

That's a message from the BIOS. Its checking for the bootable flag in the partition table and its not happy.

Boot your install media.
run
Code:
fdisk -t dos /dev/sda
and use it to set the bootable flag on exactly one partition.
Do not make any other changes.


And Can I try
Code:
fdisk -t dos /dev/sda
after the reinstallation of grub?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 16, 2018 8:31 am    Post subject: Reply with quote

whjeon,

Any time.
It changes exactly 1 bit in the partition table so that the BIOS sees the drive as bootable.

I guess you don't have the bootable flag set anywhere as thats the most common cause of that message.
However, a few strange BIOSs check for the bootable flag being set on exactly one partition.

Your hard drive has never been read, so I'm pretty confident that reinstalling grub will have no effect.
_________________
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
whjeon
n00b
n00b


Joined: 20 Nov 2017
Posts: 65
Location: Seoul,Korea(Republic of)

PostPosted: Thu Aug 16, 2018 8:32 am    Post subject: Reply with quote

NeddySeagoon wrote:
whjeon,

Any time.
It changes exactly 1 bit in the partition table so that the BIOS sees the drive as bootable.

I guess you don't have the bootable flag set anywhere as thats the most common cause of that message.
However, a few strange BIOSs check for the bootable flag being set on exactly one partition.

Your hard drive has never been read, so I'm pretty confident that reinstalling grub will have no effect.


Thanks for your help! Again, I'm in the middle of compiling. So, after this, I'll try as you suggested! Thanks again!
Back to top
View user's profile Send private message
whjeon
n00b
n00b


Joined: 20 Nov 2017
Posts: 65
Location: Seoul,Korea(Republic of)

PostPosted: Thu Aug 16, 2018 11:31 am    Post subject: Reply with quote

Nothing Worked! And I think I should Reinstall Gentoo!

Anyways! Thanks for your help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 16, 2018 11:42 am    Post subject: Reply with quote

whjeon,

Errr ... No, its probably easy to fix and you won't know what went wrong.

Tell us the error message ... verbatim

Post your
Code:
fdisk -l /dev/...
whatever your HDD is.
Post your /etc/fstab/ that's /mnt/gentoo//etc/fstab/ from outside the chroot.
_________________
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
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 893
Location: The Village, Portmeirion

PostPosted: Thu Aug 16, 2018 6:08 pm    Post subject: Reply with quote

I would go back into the bios and select the path to grub again to boot into your install and then run efibootmgr. Watch for any error messages.

If you don't have efivar suport in the kernel then grub won't be able to update it. You would need to recompile the kernel with efivar support, reboot again via the bios method, and then use grub-install again so it can update efi variables for the boot order.
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