Hi,
how can I display more than one linux kernel in refit menu? I see in refit menu only the last linux kernel (according to file modification time) but my boot directory contains more kernels. I have boot directory on separate ext2 partition.
Here is the partition content:
# ls -l /boottotal195036-rw-r--r--1rootroot6077456Jan1619:30bzImage-x86_64-4.4.26.efi-rw-r--r--1rootroot6082896Jan1619:48bzImage-x86_64-4.4.39.efilrwxrwxrwx1rootroot40Jan1619:03initramfs->initramfs-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot31690840Jan1618:37initramfs-genkernel-x86_64-4.4.26-gentoomac-rw-r--r--1rootroot31689760Jan1619:03initramfs-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot31702868Jan1618:53initramfs-genkernel-x86_64-4.4.39-gentoomaclrwxrwxrwx1rootroot43Jan1619:03initramfs.old->initramfs-genkernel-x86_64-4.4.39-gentoomac-rw-r--r--1rootroot31690840Jan1619:30initramfs-x86_64-4.4.26-rw-r--r--1rootroot31689760Jan1619:29initramfs-x86_64-4.4.39lrwxrwxrwx1rootroot37Jan1618:59kernel->kernel-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot6077456Jan1618:24kernel-genkernel-x86_64-4.4.26-gentoomac-rw-r--r--1rootroot6082896Jan1618:59kernel-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot6082768Jan1618:49kernel-genkernel-x86_64-4.4.39-gentoomaclrwxrwxrwx1rootroot40Jan1618:59kernel.old->kernel-genkernel-x86_64-4.4.39-gentoomac-rw-r--r--1rootroot1463Jan1619:27listing.txtlrwxrwxrwx1rootroot41Jan1618:59System.map->System.map-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot3517461Jan1618:24System.map-genkernel-x86_64-4.4.26-gentoomac-rw-r--r--1rootroot3518755Jan1618:59System.map-genkernel-x86_64-4.4.39-gentoo-rw-r--r--1rootroot3518755Jan1618:49System.map-genkernel-x86_64-4.4.39-gentoomaclrwxrwxrwx1rootroot44Jan1618:59System.map.old->System.map-genkernel-x86_64-4.4.39-gentoomac
But only the bzImage-x86_64-4.4.39.efi kernel is displayed in the refit menu. When I press F2 key in the refit menu then only one item is there - boot with default options.
Any help will be appreciated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you really mean rEFIt? Given your kernel filenames, rEFIt might display them if they're in a suitable directory on a partition that rEFIt can read; but rEFIt won't pass appropriate options to the kernel to be very useful for directly booting a Linux kernel. Also, rEFIt has now been abandoned, having been replaced by rEFInd -- and this forum is devoted to rEFInd.
If you're using rEFInd, it should show both your kernels if you hit F2, Insert, or + (the plus key), with one important caveat: The kernels must both be valid EFI program files. Linux kernels have supported this feature since version 3.3.0; however, this feature can be enabled or disabled at compile time. Given that your kernels have filenames of the form bzImage-*, I'm guessing you've compiled them yourself. (Most distributions provide kernels named vmlinuz-*.) It's easy to omit the EFI stub loader support if you're compiling a kernel yourself. If this happened, you wouldn't see the kernel(s) that lack the EFI stub loader in the rEFInd menu.
It's also conceivable that you're running into filesystem problems. Various issues can cause files to seem to disappear under FAT, for instance -- but it looks like you've got symbolic links, which means you're not using FAT, unless I'm misinterpreting your output. Still, you could be running into a damaged filesystem or an EFI filesystem driver bug. rEFInd's ReiserFS driver doesn't support tail-packing, for instance, so you'd need to use the notail option in /etc/fstab with that filesystem. There could be problems with other filesystems, too, although I don't know of any offhand that would produce the symptoms you describe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
how can I display more than one linux kernel in refit menu? I see in refit menu only the last linux kernel (according to file modification time) but my boot directory contains more kernels. I have boot directory on separate ext2 partition.
Here is the partition content:
But only the bzImage-x86_64-4.4.39.efi kernel is displayed in the refit menu. When I press F2 key in the refit menu then only one item is there - boot with default options.
Any help will be appreciated
Do you really mean rEFIt? Given your kernel filenames, rEFIt might display them if they're in a suitable directory on a partition that rEFIt can read; but rEFIt won't pass appropriate options to the kernel to be very useful for directly booting a Linux kernel. Also, rEFIt has now been abandoned, having been replaced by rEFInd -- and this forum is devoted to rEFInd.
If you're using rEFInd, it should show both your kernels if you hit F2, Insert, or + (the plus key), with one important caveat: The kernels must both be valid EFI program files. Linux kernels have supported this feature since version 3.3.0; however, this feature can be enabled or disabled at compile time. Given that your kernels have filenames of the form
bzImage-*
, I'm guessing you've compiled them yourself. (Most distributions provide kernels namedvmlinuz-*
.) It's easy to omit the EFI stub loader support if you're compiling a kernel yourself. If this happened, you wouldn't see the kernel(s) that lack the EFI stub loader in the rEFInd menu.It's also conceivable that you're running into filesystem problems. Various issues can cause files to seem to disappear under FAT, for instance -- but it looks like you've got symbolic links, which means you're not using FAT, unless I'm misinterpreting your output. Still, you could be running into a damaged filesystem or an EFI filesystem driver bug. rEFInd's ReiserFS driver doesn't support tail-packing, for instance, so you'd need to use the
notail
option in/etc/fstab
with that filesystem. There could be problems with other filesystems, too, although I don't know of any offhand that would produce the symptoms you describe.