Remove Grub menu after Dual Booting

375

Solution 1

Boot into an Ubuntu Live CD/USB and open a terminal. Run sudo mount -t vfat -o iocharset-utf8,umask=000 /dev/sda1 /mnt/sda1. You'll need to run sudo mkdir /mnt/sda1 first. Once it's mounted, browse the EFI drive in Nautilus and delete every folder called "Ubuntu".

Solution 2

Edit the boot order in your BIOS settings (press F2 during boot) and put the Windows Boot Manager in the top of the list.

Share:
375

Related videos on Youtube

Space Cadet
Author by

Space Cadet

Updated on September 18, 2022

Comments

  • Space Cadet
    Space Cadet over 1 year

    My Spring Boot application uses OAuth2 for security and token management. I’m querying one of my REST endpoints with an invalid token to test its response using Postman. The endpoint is correctly responding with 401 InvalidTokenException but the response content is HTML when I would like it to respond with JSON. Can this be done via code?

    Example response

    <InvalidTokenException> 
        <error>invalid_token</error> 
        <error_description>Access token expired: … my token… </error_description> 
    </InvalidTokenException>
    
    • oldfred
      oldfred about 9 years
      ESP or efi system partition may not be sda1, but you do need to first delete the /EFI/ubuntu folder. IF you moved any other files around in efi partition you must undo that, so you just have clean Windows /EFI/Microsoft folder. Then remove ubuntu from UEFI menu. askubuntu.com/questions/63610/… Make sure system is set for UEFI boot not CSM (BIOS)
    • jzheaux
      jzheaux about 4 years
      Can you clarify your Boot version and the OAuth dependencies? The reason is that Spring Security undergone a pretty massive change in their OAuth 2.0 support in the last couple of years.
  • Jonasty
    Jonasty about 9 years
    I tried that and I got this: 'mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so'
  • TheWanderer
    TheWanderer about 9 years
    @Jonasty OK. Run Gparted in the Live CD instead and see which drive is formatted as FAT32
  • Mauricio Soares
    Mauricio Soares over 4 years
    Simplest solution, this worked for me :)
  • Space Cadet
    Space Cadet about 4 years
    Thank you both, those were very helpful answers