Menu

I need help with the windows icon

2024-05-04
2024-08-13
  • Alex Christoforidis

    Hello.
    I searched a lot about this, but didn't find anyone that has managed to do it.

    So, I have dual boot, windows 10 and 7 (different drives)
    Everything works fine, but I can't change the icon of the win 7.
    I read the instructions on Roderick's website, tried a few tricks with file renaming, like changing the label of the efi partition and the title of the icon os_name.png (whatever name I labeled it), but didn't work.
    I also tried putting the following piece of code in the refind.conf file:

    menuentry "Windows 7" {
    loader \EFI\Microsoft\Boot\bootmgfw.efi
    volume bdafe08b-6a4c-476b-866d-6a1009ae022b
    icons \EFI\refind\icons\os_win7.png
    }

    But again didn't work, even when after putting this, the label "Windows 7" appeared under the icon.

    I think refind automatically puts the same windows icon (os_win8.png) for every .efi file that is named "bootmgfw.efi".
    I thought that piece of code could override the automatic icon assignment.

    Has anyone managed to do what I'm describing??
    Or has Rodrick any solution for this??

    I also tried to rename "bootmgfw.efi" to something else, refind detects the os, but when I select it, it gives error because it tries to find "bootmgfw" and it doesn't find it.

    It's ok if there is no solution. It's no big deal, but maybe it can help another user when googling the same problem.

    Thank you.

     
  • dakanji

    dakanji - 2024-05-05

    I think refind automatically puts the same windows icon (os_win8.png) for every .efi file that is named "bootmgfw.efi".

    Yes, it does. This is hard coded in.

    I thought that piece of code could override the automatic icon assignment.

    Yes, it should but you will have some items to consider.

    1. You will need to add "manual" to your "scanfor" list in the config file for that "menuentry" item to be shown and obviously have the os_win7.png icon present.
    2. The "normal" Windows 7 instance will still show up and you will end up with two instances. You will need to hide this by pressing the minus key to be left with one

    One option to try for the normal setup is to copy os_win7.png to the "\EFI\Microsoft\Boot\" folder (next to the bootmgfw.efi file) and rename as bootmgfw.png. Not looked at the relevant code for some time but I think it prefers icons next to the boot-loader if present.

    Another option for using different icons for situations where there is a hard coded default is to put the icon you want, os_win7.png in your case, into the root dir of the volume to be booted and rename as .VolumeIcon.

    So, for your \EFI\Microsoft\Boot\bootmgfw.efi, create \.VolumeIcon.png

    It is likely that rEFind will still prefer and load the default os_win8.png icon if present and you will need to disable that first. This can either be by invalidating it by changing the name to something like os_win8.pngx or the nuclear option of deleting it

    Note that if you have other instances that you wanted to keep using the default icon, these will not get the icon since invalidated/deleted and you will need to add a VolumeIcon file for those as well.

     

    Last edit: dakanji 2024-05-08
    • Alex Christoforidis

      Hello dakanji.

      Sorry for the late response.
      I tried every option you mentioned, but nothing worked.
      I deleted the os_win8.png and at the same time put the icons in the corresponded volume directories, but both win 10 and 7 had the icon with 3 circles (the picture that is shown when it doesn't know what os it is).
      That means it doesn't detect the files "bootmgfw.png " and ".VolumeIcon.png", even when os_win8.png is missing.
      Also, the default scanfor includes the manual entry.

      I think I will give up.
      If anyone has other ideas, please write it.

      Thank you.

       
  • dakanji

    dakanji - 2024-08-13

    Note that rEFInd requires .VolumeIcon files to be in the volume root.

    Anyway, easiest would probably be to name your wished icon as os_BOOT.png and save this under the \EFI\Microsoft\Boot folder.

     

    Last edit: dakanji 2024-08-13

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.