The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Removing Linux Bootloader

    Discussion in 'Linux Compatibility and Software' started by Aeyix, Jul 14, 2019.

  1. Aeyix

    Aeyix Notebook Evangelist

    Reputations:
    26
    Messages:
    470
    Likes Received:
    9
    Trophy Points:
    31
    Just trying to figure this out but it isn't fully necessary. I was messing around with Linux Mint and Windows 10 dual boot. I installed Linux Mint second in UEFI mode along side Windows. Because I couldn't get any partition editor to let me overprovision and shrink the Linux partition, I decided to delete the partition as it was nothing more than something to mess with. This did not affect my Windows boot loader at all. I still decided to run off a recovery usb and run some commands that internet searches said would cause windows to overwrite and delete the linux boot loader. However, this did not delete it as I still see Ubuntu in my startup options if I manually select my boot list in the BIOS. I can boot no problem to windows, I've just for now moved Ubuntu to the bottom of my boot order. But if there is a way to delete it fully, I'd like to do that. Thanks.
     
  2. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    Try Boot-repair x64 ISO and use OS uninstaller to remove Linux entry and grub references forever for cleaner boot screen
     
    Maleko48 likes this.
  3. Aeyix

    Aeyix Notebook Evangelist

    Reputations:
    26
    Messages:
    470
    Likes Received:
    9
    Trophy Points:
    31
    So I went ahead and booted into that. First I tried boot repair to see if that would remove the grub/linux files but it didn't. It looks like the linux bootloader is located on the same 100MB partition as the windows boot loader. The only option I have in OS Uninstaller is the clear the windows boot loader partition. Before I attempt anything, I want to be sure, is this my best option and safe to do? Remove the windows boot loader which presumably will remove the grub files and then repair the windows boot loader?
     

    Attached Files:

  4. Vasudev

    Vasudev Notebook Nobel Laureate

    Reputations:
    12,045
    Messages:
    11,278
    Likes Received:
    8,815
    Trophy Points:
    931
    It will wipe out everything. You need to run boot repair option instead of OS uninstaller.
     
    jclausius likes this.
  5. TANWare

    TANWare Just This Side of Senile, I think. Super Moderator

    Reputations:
    2,548
    Messages:
    9,585
    Likes Received:
    4,997
    Trophy Points:
    431
    here;
     
    Maleko48, Vasudev and UNCNDL1 like this.
  6. crawler9

    crawler9 Notebook Enthusiast

    Reputations:
    0
    Messages:
    24
    Likes Received:
    8
    Trophy Points:
    6
    I'm surprised you can't seem to shrink your partition. You can't do it from Linux if it's running from the hard drive or from Windows since Windows can't properly handle Linux partitions, but you should be able to use GPARTED from any live OS. (e.g. Mint running off a flash drive.)

    If you still wanted to get rid of everything, there are a few options. I've personally had bad luck with boot-repair and BCDEDIT more times than I care to admit and have learned how to deal with things manually to avoid botching Windows installs again.

    The easiest option I know of is efibootmgr. Boot into a mint live CD or USB and "sudo apt install efibootmgr" . Enter "efibootmgr" once and it will list your current boot order. You'll probably see something like

    BOOT0000* Windows Boot Manager
    BOOT0001* UBUNTU
    BOOT0002* UEFI: PNY USB 3.0

    The one you need to remove is probably GRUB or MINT or UBUNTU or something obvious like that. One more command can remove it from your boot process: "sudo efibootmgr -b # -B" where # is whatever entry you want to remove. In the above example, I'd type "sudo efibootmgr -b 1 -B" and grub installed by Ubuntu would be removed from the boot order and no longer show on boot.

    This will leave a couple residual files on your EFI partition but they shouldn't cause you any issues. If you really wanted to clean it up, you could mount your boot partition to a temporary folder while on your live OS and clean them out.

    Sent from my GM1915 using Tapatalk
     
    Vasudev likes this.