Menu

Creating a custom menue entry

qazmonk
2014-02-10
2014-02-17
  • qazmonk

    qazmonk - 2014-02-10

    I have a MacBook Pro with Retina Display that I installed two extra partitions onto. One of them is an Ubuntu 13.04 partition, and the other is 13.10. The auto-detect successfully locates the loaders on both extra partitions but all of the loaders boot into the 13.10 partition even when they reside on the 13.04 partition.

    I tried to create a custom menu entry so that I could force root to be the 13.04 partition but it doesn't show up in the menu.

    My entry in the config file has these changes from the default file.

    menuentry "Ubuntu 13.04" {
    
        volume 4:
        loader /boot/vmlinuz-3.11.2-031102-generic
        initrd /boot/initrd.img-3.11.2-031102-generic
        options "ro root=UUID=0490bff1-d8eb-4508-85d3-0ce140276f5f"
    
    }
    
    # Enable the scan for file system drivers
    scan_driver_dirs EFI/tools/drivers,drivers,EFI/refind/drivers_x64
    
    # Choose which drives to scan. This will only scan the internal hard drive.
    scanfor internal
    
    # Load the Linux file system driver
    fs0: load ext4_x64.efi
    fs0: map -r
    

    Any idea why it isn't showing up?

    Thank you.

     
  • Roderick W. Smith

    Concerning your first problem, it's not clear if rEFInd is detecting a BIOS-mode or an EFI-mode boot loader. I recommend doing an EFI-mode boot whenever possible. To do this, you may need to install an EFI filesystem driver and place a refind_linux.conf file in the Linux /boot directory. Be sure that the refind_linux.conf file has the appropriate options to boot the correct installation. In particular, be sure that the root= option points to that installation's root (/) directory. You can't simply copy one installation's /boot/refind_linux.conf file to the other one, since then it will boot the wrong installation.

    As to your manual boot stanza, you must specify manual as an option on the scanfor line to have manual boot entries show up. You should also place all your menuentry stanzas after all the other entries. Finally, the two final lines you've quoted are EFI shell commands, not valid refind.conf entries. To load an EFI filesystem driver, you must place it in the refind or refind_x64 subdirectory of the rEFInd installation directory.

     

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.