You are not logged in.

#1 2013-11-25 12:44:05

acampbell
Member
Registered: 2013-05-15
Posts: 46

[Solved] Boot uses wrong kernel by default

Sorry this is a little complicated but I'm mystified by what has happened to one of  my Arch systems.

I've had Arch running very well for about 5 months on a laptop, dual boot with Debian. I had it set to boot Arch by default.

A couple of weeks ago it suddenly started booting with Debian as default. So I loaded Arch and reinstalled grub in the boot sector and remade grub.cfg.

After this, Arch  appeared  in first place as I intended  but with the lts kernel (3.10) in first place as default. If I accept this all works OK including the wired internet connection via enp2s0.

If I choose the repo kernel (3.12) it also starts up OK but there is no connection to the internet because the ip link now shows ens2 instead of the expected enp2s0.

I want to get back to having the 3.12 kernel as default and, of course, to be able to connect to the internet when using it,  but I've no idea how to do either of these. At present the only solution I can see is to reinstall Arch. I don't want to do this but can anyone suggest a less radical alternative?

Last edited by acampbell (2013-11-26 12:41:49)

Offline

#2 2013-11-25 17:10:58

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] Boot uses wrong kernel by default

You can configure grub to load a different kernel.
https://wiki.archlinux.org/index.php/GR … menu_entry
I do not know how to properly solve the other issue, but you can connect manually to the internet until you manage to solve it.
https://wiki.archlinux.org/index.php/Network
Your issues can be solved without reinstalling arch, for sure.

Last edited by teateawhy (2013-11-25 17:11:25)

Offline

#3 2013-11-25 17:43:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Boot uses wrong kernel by default

acampbell wrote:

At present the only solution I can see is to reinstall Arch

General advice: reinstalling is never a solution.

I've seen others here and on IRC with same name-change issue on their network interface - do a search, see what you come up with. You could also disable the naming functionality and revert to eth0 if you want.

Offline

#4 2013-11-26 12:40:19

acampbell
Member
Registered: 2013-05-15
Posts: 46

Re: [Solved] Boot uses wrong kernel by default

Thanks to both for replies.  Correcting the default boot order was easy but getting the internet connection to work took a little longer. I solved it by changing the device name as suggested here:

https://wiki.archlinux.org/index.php/Ne … evice_name

There was nothing in /etc/udev/rules.d so I created the file 10-network.rules and used the enp2s0 device name which was working with the older kernel.

I'm still wondering why this mixup happened in the first place but anyway, it's working now so many thanks for your replies.

Offline

Board footer

Powered by FluxBB