You are not logged in.

#1 2016-11-12 14:36:32

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

[SOLVED] After power cut / kernel update - cannot access boot menu

Hi,

Here is the situation:
I was running a big update, installation was on going and building kernel modules when I got a power cut.

Now when booting, I do not have access to linux boot menu but boot instead directly to windows. Arch linux was the default option in my boot menu.

How should I proceed?

Thanks

Last edited by kamelie1706 (2016-11-12 18:42:13)

Offline

#2 2016-11-12 14:39:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

What bootloader are you using?  There is usually a key you can hold while booting to modify boot options/parameters.

Otherwise, just boot a live usb, chroot in, and fix things up.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2016-11-12 14:42:57

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

If not mistaken I believe I have installed grub ...

"Fix things up" like described here (re-intsalling grub)?
https://www.jeremymorgan.com/tutorials/ … g-windows/

Offline

#4 2016-11-12 14:57:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

No, just chroot in, and complete the upgrade.  If there are still problems after that, post your bootloader config.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2016-11-12 16:18:17

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

My linux system/boot partition is /dev/sda1

I did chroot it (mounted on /mnt) and run system update : nothing to be done and grub menu did not show up.

I have re-installed grub but when I run

grub-mkconfig -o /boot/grub/grub.cfg

it detects only my windows partition.

Now grub menu show up but with only the windows boot option.

What should I try next?
Could it be that it does not detect it because my linux partion is mounted on /mnt?

Last edited by kamelie1706 (2016-11-12 16:24:12)

Offline

#6 2016-11-12 17:14:47

kamelie1706
Member
Registered: 2014-02-19
Posts: 176

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

Solved

my boot directory did not contain kernel images (probably deleted during the update and crash happened before writting the new ones)
I have re-installed kernel package

pacman -S linux

and re-run grub auto-configuration and voila!

do I need to re-run mkinitcpio after kernel re-installation?
Seems to work normally without ...

Last edited by kamelie1706 (2016-11-12 17:15:40)

Offline

#7 2016-11-12 17:40:54

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED] After power cut / kernel update - cannot access boot menu

Please add [SOLVED] on your title.

Offline

Board footer

Powered by FluxBB