Simple way to rename GRUB2 entries












4














I have many different Ubuntu versions installed on my HD. I'd like to rename some of their entries in GRUB2 boot menu. I have tried two approaches.



1) Like mentioned in http://ubuntuforums.org/showthread.php?t=1347756
- This is not working, I have 9 different lines with SDA11 sections visible in my 30_os-prober file. Am I supposed to modify all of them while in real boot menu only one entry for this partition is visible after sudo update-grub?



2) I have also tried Grub Customizer application, but it just overpopulates my boot menu with duplicate entries.



Instead of doing it hard way by modifying all the entries visible in 30_os-prober file, I would like to know if there is an easy solution? I may be overlooking something, but if there is no easier way, is this supposed to be harder than with GRUB1 for a reason?










share|improve this question


















  • 1




    Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
    – SirCharlo
    Sep 20 '12 at 19:40












  • have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
    – penreturns
    Sep 20 '12 at 19:41












  • Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
    – user54330
    Sep 20 '12 at 19:52






  • 2




    Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
    – PRATAP
    Nov 17 '18 at 4:12
















4














I have many different Ubuntu versions installed on my HD. I'd like to rename some of their entries in GRUB2 boot menu. I have tried two approaches.



1) Like mentioned in http://ubuntuforums.org/showthread.php?t=1347756
- This is not working, I have 9 different lines with SDA11 sections visible in my 30_os-prober file. Am I supposed to modify all of them while in real boot menu only one entry for this partition is visible after sudo update-grub?



2) I have also tried Grub Customizer application, but it just overpopulates my boot menu with duplicate entries.



Instead of doing it hard way by modifying all the entries visible in 30_os-prober file, I would like to know if there is an easy solution? I may be overlooking something, but if there is no easier way, is this supposed to be harder than with GRUB1 for a reason?










share|improve this question


















  • 1




    Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
    – SirCharlo
    Sep 20 '12 at 19:40












  • have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
    – penreturns
    Sep 20 '12 at 19:41












  • Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
    – user54330
    Sep 20 '12 at 19:52






  • 2




    Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
    – PRATAP
    Nov 17 '18 at 4:12














4












4








4







I have many different Ubuntu versions installed on my HD. I'd like to rename some of their entries in GRUB2 boot menu. I have tried two approaches.



1) Like mentioned in http://ubuntuforums.org/showthread.php?t=1347756
- This is not working, I have 9 different lines with SDA11 sections visible in my 30_os-prober file. Am I supposed to modify all of them while in real boot menu only one entry for this partition is visible after sudo update-grub?



2) I have also tried Grub Customizer application, but it just overpopulates my boot menu with duplicate entries.



Instead of doing it hard way by modifying all the entries visible in 30_os-prober file, I would like to know if there is an easy solution? I may be overlooking something, but if there is no easier way, is this supposed to be harder than with GRUB1 for a reason?










share|improve this question













I have many different Ubuntu versions installed on my HD. I'd like to rename some of their entries in GRUB2 boot menu. I have tried two approaches.



1) Like mentioned in http://ubuntuforums.org/showthread.php?t=1347756
- This is not working, I have 9 different lines with SDA11 sections visible in my 30_os-prober file. Am I supposed to modify all of them while in real boot menu only one entry for this partition is visible after sudo update-grub?



2) I have also tried Grub Customizer application, but it just overpopulates my boot menu with duplicate entries.



Instead of doing it hard way by modifying all the entries visible in 30_os-prober file, I would like to know if there is an easy solution? I may be overlooking something, but if there is no easier way, is this supposed to be harder than with GRUB1 for a reason?







grub2






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 20 '12 at 19:37









user54330user54330

3113




3113








  • 1




    Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
    – SirCharlo
    Sep 20 '12 at 19:40












  • have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
    – penreturns
    Sep 20 '12 at 19:41












  • Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
    – user54330
    Sep 20 '12 at 19:52






  • 2




    Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
    – PRATAP
    Nov 17 '18 at 4:12














  • 1




    Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
    – SirCharlo
    Sep 20 '12 at 19:40












  • have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
    – penreturns
    Sep 20 '12 at 19:41












  • Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
    – user54330
    Sep 20 '12 at 19:52






  • 2




    Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
    – PRATAP
    Nov 17 '18 at 4:12








1




1




Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
– SirCharlo
Sep 20 '12 at 19:40






Grub Customizer is supposed to be the way to go. Perhaps something went wrong while you were using it? It does exactly what you want. Try simply disabling the entries you don't use or need.
– SirCharlo
Sep 20 '12 at 19:40














have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
– penreturns
Sep 20 '12 at 19:41






have you try Grub Customizer 3.0 Released which brings the following new features entries can be moved free now,integrated settings dialog, new partition chooser, context menu, multi selection, trash instead of checkboxes, entry editor, graphical error handling, reset functionality, warning when trying to remove script - or system entries.
– penreturns
Sep 20 '12 at 19:41














Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
– user54330
Sep 20 '12 at 19:52




Yes, my Grub Customizer version was 3.0.2. The funny thing is that I newly installed Ubuntu on /dev/sda11, but I have never logged in yet. It's not like there are 9 old kernels hanging around, so I don't really even understand why did those 9 entries show up for sda11.
– user54330
Sep 20 '12 at 19:52




2




2




Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
– PRATAP
Nov 17 '18 at 4:12




Possible duplicate of how to tell GRUB to show the user preferred names of OS'es. Ubuntu 18.04
– PRATAP
Nov 17 '18 at 4:12










1 Answer
1






active

oldest

votes


















0














As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/



The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.



The file for options is at /etc/default/grub



I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.



To update grub run update-grub, generating the new file.



This community page has lots of details and links.






share|improve this answer



















  • 1




    I think it should be /etc/grub.d/
    – tigerjack89
    Apr 21 '15 at 22:47










  • oops, yes, of course, thanks.
    – grantbow
    Apr 21 '15 at 23:14











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f191068%2fsimple-way-to-rename-grub2-entries%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/



The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.



The file for options is at /etc/default/grub



I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.



To update grub run update-grub, generating the new file.



This community page has lots of details and links.






share|improve this answer



















  • 1




    I think it should be /etc/grub.d/
    – tigerjack89
    Apr 21 '15 at 22:47










  • oops, yes, of course, thanks.
    – grantbow
    Apr 21 '15 at 23:14
















0














As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/



The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.



The file for options is at /etc/default/grub



I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.



To update grub run update-grub, generating the new file.



This community page has lots of details and links.






share|improve this answer



















  • 1




    I think it should be /etc/grub.d/
    – tigerjack89
    Apr 21 '15 at 22:47










  • oops, yes, of course, thanks.
    – grantbow
    Apr 21 '15 at 23:14














0












0








0






As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/



The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.



The file for options is at /etc/default/grub



I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.



To update grub run update-grub, generating the new file.



This community page has lots of details and links.






share|improve this answer














As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/



The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.



The file for options is at /etc/default/grub



I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.



To update grub run update-grub, generating the new file.



This community page has lots of details and links.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 21 '15 at 23:14

























answered Apr 18 '15 at 0:04









grantbowgrantbow

807718




807718








  • 1




    I think it should be /etc/grub.d/
    – tigerjack89
    Apr 21 '15 at 22:47










  • oops, yes, of course, thanks.
    – grantbow
    Apr 21 '15 at 23:14














  • 1




    I think it should be /etc/grub.d/
    – tigerjack89
    Apr 21 '15 at 22:47










  • oops, yes, of course, thanks.
    – grantbow
    Apr 21 '15 at 23:14








1




1




I think it should be /etc/grub.d/
– tigerjack89
Apr 21 '15 at 22:47




I think it should be /etc/grub.d/
– tigerjack89
Apr 21 '15 at 22:47












oops, yes, of course, thanks.
– grantbow
Apr 21 '15 at 23:14




oops, yes, of course, thanks.
– grantbow
Apr 21 '15 at 23:14


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f191068%2fsimple-way-to-rename-grub2-entries%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei