Grub boots from kernels that I removed
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm running Fedora 26, rpm -qa kernel
outputs kernel-4.13.5-200.fc26.x86_64
. And that's the one I want.
I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x
.
All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.
Here I am booting from the newest kernel that I removed.
Here's my grub
What went wrong?
fedora kernel dnf
add a comment |Â
up vote
0
down vote
favorite
I'm running Fedora 26, rpm -qa kernel
outputs kernel-4.13.5-200.fc26.x86_64
. And that's the one I want.
I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x
.
All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.
Here I am booting from the newest kernel that I removed.
Here's my grub
What went wrong?
fedora kernel dnf
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm running Fedora 26, rpm -qa kernel
outputs kernel-4.13.5-200.fc26.x86_64
. And that's the one I want.
I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x
.
All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.
Here I am booting from the newest kernel that I removed.
Here's my grub
What went wrong?
fedora kernel dnf
I'm running Fedora 26, rpm -qa kernel
outputs kernel-4.13.5-200.fc26.x86_64
. And that's the one I want.
I had 3 kernels showing in grub, that one, and 2 newer ones, Wifi wasn't working when booting from the other two so I excluded kernel updates from dnf, and I removed the newer kernels sudo dnf remove kernel-4.x
.
All went smoothly, however when I restart, I still can see them in grub and I can boot from them and the wifi won't work if I pick them.
Here I am booting from the newest kernel that I removed.
Here's my grub
What went wrong?
fedora kernel dnf
edited Oct 29 '17 at 13:37
asked Oct 29 '17 at 12:20
Lynob
1,273102557
1,273102557
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
You can set your default entry without removing the newest kernel through grub2-set-default
command. In your case without updating grub2 use:
grub2-set-default 2
After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0
the second one is 1
):
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 1
The command :
# awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg
will print the exact order of the existing kernel on the grub.cfg
file.
Fedora project : Setting default entry
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
add a comment |Â
up vote
2
down vote
Look in /var/lib/initramfs-tools/
if the newer kernel-versions are present.
Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!
As root or with sudo update-grub
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You can set your default entry without removing the newest kernel through grub2-set-default
command. In your case without updating grub2 use:
grub2-set-default 2
After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0
the second one is 1
):
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 1
The command :
# awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg
will print the exact order of the existing kernel on the grub.cfg
file.
Fedora project : Setting default entry
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
add a comment |Â
up vote
3
down vote
accepted
You can set your default entry without removing the newest kernel through grub2-set-default
command. In your case without updating grub2 use:
grub2-set-default 2
After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0
the second one is 1
):
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 1
The command :
# awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg
will print the exact order of the existing kernel on the grub.cfg
file.
Fedora project : Setting default entry
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You can set your default entry without removing the newest kernel through grub2-set-default
command. In your case without updating grub2 use:
grub2-set-default 2
After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0
the second one is 1
):
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 1
The command :
# awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg
will print the exact order of the existing kernel on the grub.cfg
file.
Fedora project : Setting default entry
You can set your default entry without removing the newest kernel through grub2-set-default
command. In your case without updating grub2 use:
grub2-set-default 2
After grub update you should have tow kernel on your grub 2 configuration file the command should be (the first kernel is 0
the second one is 1
):
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-set-default 1
The command :
# awk -F' '$1=="menuentry " print i++ " : " $2' /etc/grub2.cfg
will print the exact order of the existing kernel on the grub.cfg
file.
Fedora project : Setting default entry
edited Oct 30 '17 at 11:21
answered Oct 29 '17 at 15:43
GAD3R
22.7k154895
22.7k154895
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
add a comment |Â
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
didn't work but I'm accepting because fedora the kernel and it's now the top one unix.stackexchange.com/questions/402614/⦠so as long as i don't update it, it will still be on top
â Lynob
Nov 5 '17 at 10:53
add a comment |Â
up vote
2
down vote
Look in /var/lib/initramfs-tools/
if the newer kernel-versions are present.
Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!
As root or with sudo update-grub
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
add a comment |Â
up vote
2
down vote
Look in /var/lib/initramfs-tools/
if the newer kernel-versions are present.
Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!
As root or with sudo update-grub
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Look in /var/lib/initramfs-tools/
if the newer kernel-versions are present.
Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!
As root or with sudo update-grub
Look in /var/lib/initramfs-tools/
if the newer kernel-versions are present.
Erase them, also in /boot relevant entries, like vmlinuz initrid and System.map. But be carefull, that you don't delete the false one!!
As root or with sudo update-grub
answered Oct 29 '17 at 15:21
user192526
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
add a comment |Â
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
Your answer is wrong . Reason: Question is tagged "fedora" but Fedora does not have an "update-grub" command. This is only found on Ubuntu and some other deb-based Linux distros. And /var/lib/initramfs-tools/ is also only found on deb based distros.
â reichhart
Apr 7 at 22:31
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401211%2fgrub-boots-from-kernels-that-i-removed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password