Newer kernel is installed but not available to load via grub
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've installed fedora 24 and updated kernel.
$rpm -qa kernel
kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64
So kernel-4.6.4-301.fc24.x86_64
is installed.
$uname -r
4.5.5-300.fc24.x86_64
Current loaded kernel.
$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64
But there is no file for 4.6.4 kernel.
How is it possible to add newer kernel by hand into grub?
fedora kernel
add a comment |
I've installed fedora 24 and updated kernel.
$rpm -qa kernel
kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64
So kernel-4.6.4-301.fc24.x86_64
is installed.
$uname -r
4.5.5-300.fc24.x86_64
Current loaded kernel.
$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64
But there is no file for 4.6.4 kernel.
How is it possible to add newer kernel by hand into grub?
fedora kernel
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
1
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19
add a comment |
I've installed fedora 24 and updated kernel.
$rpm -qa kernel
kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64
So kernel-4.6.4-301.fc24.x86_64
is installed.
$uname -r
4.5.5-300.fc24.x86_64
Current loaded kernel.
$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64
But there is no file for 4.6.4 kernel.
How is it possible to add newer kernel by hand into grub?
fedora kernel
I've installed fedora 24 and updated kernel.
$rpm -qa kernel
kernel-4.6.4-301.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64
So kernel-4.6.4-301.fc24.x86_64
is installed.
$uname -r
4.5.5-300.fc24.x86_64
Current loaded kernel.
$ cd /boot
$ ll
total 90117
...
-rwxr-xr-x. 1 root root 6277656 Jul 29 07:09 vmlinuz-0-rescue-60cb3109c1ea41d6806444bff16cc074
-rwxr-xr-x. 1 root root 6277656 May 19 16:21 vmlinuz-4.5.5-300.fc24.x86_64
But there is no file for 4.6.4 kernel.
How is it possible to add newer kernel by hand into grub?
fedora kernel
fedora kernel
edited Mar 1 '17 at 22:50
Jeff Schaller♦
44.7k1162145
44.7k1162145
asked Aug 3 '16 at 14:10
xiºxiº
1063
1063
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
1
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19
add a comment |
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
1
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
1
1
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19
add a comment |
3 Answers
3
active
oldest
votes
edit grub.conf file if you are using Redhat/ Centos
Copy and edit the old kernel parameter and replace
old parameters and locations with newer one
add a comment |
It's high time that you do
For BIOS
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI
Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg
cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg
Note
if you get
grub2-mkconfig : command not found
that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first
dnf install grub2-efi grub2-efi-modules shim
That doesn't help since there is no image for4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done
– xiº
Aug 3 '16 at 15:02
add a comment |
I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:
sudo fdisk /dev/sda
and within fdisk p to show the partitions. Next mounted that partition:
sudo mount /dev/sda1 /mnt
looked for the file with:
find /mnt -name grub.cfg
and finally updated the grub.cfg file with:
sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg
This process must be repeated every time the kernel is updated.
Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f300054%2fnewer-kernel-is-installed-but-not-available-to-load-via-grub%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
edit grub.conf file if you are using Redhat/ Centos
Copy and edit the old kernel parameter and replace
old parameters and locations with newer one
add a comment |
edit grub.conf file if you are using Redhat/ Centos
Copy and edit the old kernel parameter and replace
old parameters and locations with newer one
add a comment |
edit grub.conf file if you are using Redhat/ Centos
Copy and edit the old kernel parameter and replace
old parameters and locations with newer one
edit grub.conf file if you are using Redhat/ Centos
Copy and edit the old kernel parameter and replace
old parameters and locations with newer one
answered Aug 3 '16 at 14:15
Kunal SahaKunal Saha
576
576
add a comment |
add a comment |
It's high time that you do
For BIOS
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI
Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg
cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg
Note
if you get
grub2-mkconfig : command not found
that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first
dnf install grub2-efi grub2-efi-modules shim
That doesn't help since there is no image for4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done
– xiº
Aug 3 '16 at 15:02
add a comment |
It's high time that you do
For BIOS
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI
Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg
cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg
Note
if you get
grub2-mkconfig : command not found
that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first
dnf install grub2-efi grub2-efi-modules shim
That doesn't help since there is no image for4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done
– xiº
Aug 3 '16 at 15:02
add a comment |
It's high time that you do
For BIOS
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI
Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg
cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg
Note
if you get
grub2-mkconfig : command not found
that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first
dnf install grub2-efi grub2-efi-modules shim
It's high time that you do
For BIOS
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.bak # Creating a backup of current
grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI
Under EFI, GRUB 2 looks for its configuration in /boot/efi/EFI/fedora/grub.cfg
cp /boot/efi/EFI/fedora/grub.cfg /boot/efi/EFI/fedora/grub.cfg.bak
grub2-mkconfig /boot/efi/EFI/fedora/grub.cfg
Note
if you get
grub2-mkconfig : command not found
that means, you haven't installed the packages that provide these tools (very rare though!), then you need to install them first
dnf install grub2-efi grub2-efi-modules shim
edited Aug 3 '16 at 14:22
answered Aug 3 '16 at 14:14
sjsamsjsam
1,18511021
1,18511021
That doesn't help since there is no image for4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done
– xiº
Aug 3 '16 at 15:02
add a comment |
That doesn't help since there is no image for4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done
– xiº
Aug 3 '16 at 15:02
That doesn't help since there is no image for
4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done– xiº
Aug 3 '16 at 15:02
That doesn't help since there is no image for
4.6.4
.. Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.5.5-.. Found initrd image: /boot/initramfs-4.5.5-.. Found linux image: /boot/vmlinuz-0-rescue.. Found initrd image: /boot/initramfs-0-rescue.. done– xiº
Aug 3 '16 at 15:02
add a comment |
I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:
sudo fdisk /dev/sda
and within fdisk p to show the partitions. Next mounted that partition:
sudo mount /dev/sda1 /mnt
looked for the file with:
find /mnt -name grub.cfg
and finally updated the grub.cfg file with:
sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg
This process must be repeated every time the kernel is updated.
Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?
add a comment |
I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:
sudo fdisk /dev/sda
and within fdisk p to show the partitions. Next mounted that partition:
sudo mount /dev/sda1 /mnt
looked for the file with:
find /mnt -name grub.cfg
and finally updated the grub.cfg file with:
sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg
This process must be repeated every time the kernel is updated.
Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?
add a comment |
I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:
sudo fdisk /dev/sda
and within fdisk p to show the partitions. Next mounted that partition:
sudo mount /dev/sda1 /mnt
looked for the file with:
find /mnt -name grub.cfg
and finally updated the grub.cfg file with:
sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg
This process must be repeated every time the kernel is updated.
Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?
I had the same problem with a clean install of F24, using the default partition layout. On my system /dev/sda1 was created solely for grub that is not normally mounted. To find it I did:
sudo fdisk /dev/sda
and within fdisk p to show the partitions. Next mounted that partition:
sudo mount /dev/sda1 /mnt
looked for the file with:
find /mnt -name grub.cfg
and finally updated the grub.cfg file with:
sudo grub2-mkconfig -o /mnt/EFI/fedora/grub.cfg
This process must be repeated every time the kernel is updated.
Does anyone have a better fix than this? It works, but I don't understand why it is not done automatically. Did I miss a setting somewhere?
answered Nov 17 '16 at 14:08
Ted MTed M
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f300054%2fnewer-kernel-is-installed-but-not-available-to-load-via-grub%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
By the way is it a BIOS or UEFI system?
– sjsam
Aug 3 '16 at 14:15
1
@sjsam BIOS but there is option UEFI load (disabled now)
– xiº
Aug 3 '16 at 14:19