Menu

Dual entry for windows... Pleas help me clean up my boot menu

2015-07-03
2015-07-07
  • Mamunur Rahman

    Mamunur Rahman - 2015-07-03

    Hi everyone,

    I'm getting two copies of windows. one shows up boots from windows 10 preview build. then mac, then ubuntu... and one more legacy boot windows. i want to get rid of that. How can I do that?

    /dev/disk0 (internal, physical):
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *500.3 GB disk0
    1: EFI EFI 209.7 MB disk0s1
    2: Apple_HFS MACINTOSH 318.9 GB disk0s2
    3: Apple_Boot Recovery HD 650.0 MB disk0s3
    4: Microsoft Reserved 134.2 MB disk0s4
    5: Microsoft Basic Data 10.0 GB disk0s5
    6: Microsoft Basic Data 40.0 GB disk0s6
    7: Microsoft Basic Data BOOTCAMP 130.4 GB disk0s7

    So, here are two pics that show the issue, the windows logo on the right is the legacy one i want to stop

    https://www.dropbox.com/s/fp711ptnjmshne1/IMG_0459.JPG?dl=0

    https://www.dropbox.com/s/s5jdrtdh6933wxc/IMG_0460.JPG?dl=0

    Please help me erase the second windows logo.

    Also, is there a way to arrange the mac to be the first on the list.

     
  • Roderick W. Smith

    First, locate refind.conf. It's probably on your EFI System Partition, which may be mounted in Ubuntu at /boot/efi; or you should be able to mount it in OS X by opening a Terminal and typing:

    mkdir /Volumes/ESP
    sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
    

    (Note that /dev/disk0s1 is usually the correct identifier, but might not be in all cases.)

    On the ESP, refind.conf should be in EFI/refind -- that is, /boot/efi/EFI/refind/refind.conf in Ubuntu or /Volumes/ESP/EFI/refind/refind.conf if you mount it as I specified in OS X.

    With that file located, edit it:

    • Locate the scanfor line. It's probably commented out (with a # symbol at its start). Uncomment the line and ensure that hdbios is not among the options. This will eliminate scanning for BIOS-mode boot loaders on your hard disk, which should do the job.
    • Unfortunately, you can't adjust the order of auto-detected boot loaders, except by major categories (internal disks, external disks, optical discs, etc.). You can, however, set the default by using the default_selection option. Recent versions of rEFInd set the default to the last-booted option, but removing + from the start of the default_selection line and instead specifying a substring associated with whatever you want to be the default can do the trick.
    • If you really really want to adjust the order of items in the menu, you can do so by disabling auto-scanning (by removing internal from the scanfor line, or at least using various dont_scan_* options to remove at least two items) and adding manual boot stanzas, as described in the rEFInd documentation. Manual boot stanzas are a bit of a pain to set up, though, and they may require manual maintenance (particularly if you want to boot Linux kernels in this way, since the kernels often change names frequently as they're updated).
     

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.