Menu

only one linux kernel in menu

2017-01-16
2017-01-16
  • Vaclav Votipka

    Vaclav Votipka - 2017-01-16

    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 /boot
    total 195036
    -rw-r--r-- 1 root root  6077456 Jan 16 19:30 bzImage-x86_64-4.4.26.efi
    -rw-r--r-- 1 root root  6082896 Jan 16 19:48 bzImage-x86_64-4.4.39.efi
    lrwxrwxrwx 1 root root       40 Jan 16 19:03 initramfs -> initramfs-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root 31690840 Jan 16 18:37 initramfs-genkernel-x86_64-4.4.26-gentoomac
    -rw-r--r-- 1 root root 31689760 Jan 16 19:03 initramfs-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root 31702868 Jan 16 18:53 initramfs-genkernel-x86_64-4.4.39-gentoomac
    lrwxrwxrwx 1 root root       43 Jan 16 19:03 initramfs.old -> initramfs-genkernel-x86_64-4.4.39-gentoomac
    -rw-r--r-- 1 root root 31690840 Jan 16 19:30 initramfs-x86_64-4.4.26
    -rw-r--r-- 1 root root 31689760 Jan 16 19:29 initramfs-x86_64-4.4.39
    lrwxrwxrwx 1 root root       37 Jan 16 18:59 kernel -> kernel-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root  6077456 Jan 16 18:24 kernel-genkernel-x86_64-4.4.26-gentoomac
    -rw-r--r-- 1 root root  6082896 Jan 16 18:59 kernel-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root  6082768 Jan 16 18:49 kernel-genkernel-x86_64-4.4.39-gentoomac
    lrwxrwxrwx 1 root root       40 Jan 16 18:59 kernel.old -> kernel-genkernel-x86_64-4.4.39-gentoomac
    -rw-r--r-- 1 root root     1463 Jan 16 19:27 listing.txt
    lrwxrwxrwx 1 root root       41 Jan 16 18:59 System.map -> System.map-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root  3517461 Jan 16 18:24 System.map-genkernel-x86_64-4.4.26-gentoomac
    -rw-r--r-- 1 root root  3518755 Jan 16 18:59 System.map-genkernel-x86_64-4.4.39-gentoo
    -rw-r--r-- 1 root root  3518755 Jan 16 18:49 System.map-genkernel-x86_64-4.4.39-gentoomac
    lrwxrwxrwx 1 root root       44 Jan 16 18:59 System.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

     
  • Roderick W. Smith

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.