Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 36035  / 3 Years ago, mon, august 9, 2021, 1:08:41

After today's update, Ubuntu asked me to replace some files and I blindly accepted. After I restarted PC after the update, I saw duplicate entries in the grub menu:



enter image description here



Here's the image of the grub customizer.



enter image description here



Apparently, Grub Customizer can not save edited information.



Is there a way to remove duplicates from Ubuntu 12.04 grub menu and set Windows 7 on first position?


More From » grub2

 Answers
6

While a sudo update-grub2 should remove the duplicate enties, to bring the Windows menu-item at first position additionally do :




  1. sudo gedit /boot/grub/grub.cfg

  2. Cut the portion of text starting from

    ### BEGIN /etc/grub.d/30_os-prober ###

    menuentry "Windows 7...
    to
    }

    ### END /etc/grub.d/30_os-prober ###
    and pest it just before
    menuentry 'Ubuntu, with Linux..


  3. save the file and reboot.


  4. You have to perform steps(1-4) every time grub-pc package-update or a kernel-update happens to keep Windows menu-item at first place.



[#37853] Tuesday, August 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ranquctive

Total Points: 391
Total Questions: 103
Total Answers: 104

Location: South Sudan
Member since Thu, Feb 4, 2021
3 Years ago
ranquctive questions
;