I accidentally deleted all bootloaders (Windows Boot Manager and GRUB) [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • How to create or recover Windows Bootloader after deleting Ubuntu boot drive

    6 answers



  • How can I repair grub? (How to get Ubuntu back after installing Windows?)

    11 answers




I accidentally deleted all bootloaders (Windows Boot Manager and Grub).
If I start my laptop it doesn't found any bootloaders. How can I reinstall at least Windows 10 boot manager and/or GRUB afterwards?










share|improve this question















marked as duplicate by karel, Fabby, abu_bua, Eric Carvalho, Zanna 2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
    – PRATAP
    Oct 22 at 13:33










  • My Friend Filled /dev/sda1 with /dev/urandom bytes
    – Markus Haas
    Oct 22 at 14:18










  • Do you have live USB? What Version of Ubuntu is it?
    – PRATAP
    Oct 22 at 14:20






  • 1




    You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
    – PRATAP
    Oct 22 at 14:25








  • 3




    Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
    – karel
    Nov 26 at 13:22

















up vote
0
down vote

favorite













This question already has an answer here:




  • How to create or recover Windows Bootloader after deleting Ubuntu boot drive

    6 answers



  • How can I repair grub? (How to get Ubuntu back after installing Windows?)

    11 answers




I accidentally deleted all bootloaders (Windows Boot Manager and Grub).
If I start my laptop it doesn't found any bootloaders. How can I reinstall at least Windows 10 boot manager and/or GRUB afterwards?










share|improve this question















marked as duplicate by karel, Fabby, abu_bua, Eric Carvalho, Zanna 2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
    – PRATAP
    Oct 22 at 13:33










  • My Friend Filled /dev/sda1 with /dev/urandom bytes
    – Markus Haas
    Oct 22 at 14:18










  • Do you have live USB? What Version of Ubuntu is it?
    – PRATAP
    Oct 22 at 14:20






  • 1




    You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
    – PRATAP
    Oct 22 at 14:25








  • 3




    Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
    – karel
    Nov 26 at 13:22















up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:




  • How to create or recover Windows Bootloader after deleting Ubuntu boot drive

    6 answers



  • How can I repair grub? (How to get Ubuntu back after installing Windows?)

    11 answers




I accidentally deleted all bootloaders (Windows Boot Manager and Grub).
If I start my laptop it doesn't found any bootloaders. How can I reinstall at least Windows 10 boot manager and/or GRUB afterwards?










share|improve this question
















This question already has an answer here:




  • How to create or recover Windows Bootloader after deleting Ubuntu boot drive

    6 answers



  • How can I repair grub? (How to get Ubuntu back after installing Windows?)

    11 answers




I accidentally deleted all bootloaders (Windows Boot Manager and Grub).
If I start my laptop it doesn't found any bootloaders. How can I reinstall at least Windows 10 boot manager and/or GRUB afterwards?





This question already has an answer here:




  • How to create or recover Windows Bootloader after deleting Ubuntu boot drive

    6 answers



  • How can I repair grub? (How to get Ubuntu back after installing Windows?)

    11 answers








dual-boot bootloader






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Zanna

49.1k13123234




49.1k13123234










asked Oct 22 at 13:29









Markus Haas

1




1




marked as duplicate by karel, Fabby, abu_bua, Eric Carvalho, Zanna 2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, Fabby, abu_bua, Eric Carvalho, Zanna 2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
    – PRATAP
    Oct 22 at 13:33










  • My Friend Filled /dev/sda1 with /dev/urandom bytes
    – Markus Haas
    Oct 22 at 14:18










  • Do you have live USB? What Version of Ubuntu is it?
    – PRATAP
    Oct 22 at 14:20






  • 1




    You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
    – PRATAP
    Oct 22 at 14:25








  • 3




    Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
    – karel
    Nov 26 at 13:22
















  • 2




    You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
    – PRATAP
    Oct 22 at 13:33










  • My Friend Filled /dev/sda1 with /dev/urandom bytes
    – Markus Haas
    Oct 22 at 14:18










  • Do you have live USB? What Version of Ubuntu is it?
    – PRATAP
    Oct 22 at 14:20






  • 1




    You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
    – PRATAP
    Oct 22 at 14:25








  • 3




    Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
    – karel
    Nov 26 at 13:22










2




2




You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
– PRATAP
Oct 22 at 13:33




You can easily install grub if you have live USB of Ubuntu same version that is installed in your system.. Your boot mode is BIOS or UEFI.. Can you explain how did you delete those to understand.
– PRATAP
Oct 22 at 13:33












My Friend Filled /dev/sda1 with /dev/urandom bytes
– Markus Haas
Oct 22 at 14:18




My Friend Filled /dev/sda1 with /dev/urandom bytes
– Markus Haas
Oct 22 at 14:18












Do you have live USB? What Version of Ubuntu is it?
– PRATAP
Oct 22 at 14:20




Do you have live USB? What Version of Ubuntu is it?
– PRATAP
Oct 22 at 14:20




1




1




You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
– PRATAP
Oct 22 at 14:25






You must install grub or windows bootloader.. You killed the base.. For windows bootloader you can refer other forums.. Grub can be installed by the above link in comments. You need Ubuntu 18.04 live installer.
– PRATAP
Oct 22 at 14:25






3




3




Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
– karel
Nov 26 at 13:22






Possible duplicate of How to create or recover Windows Bootloader after deleting Ubuntu boot drive and How can I repair grub? (How to get Ubuntu back after installing Windows?)
– karel
Nov 26 at 13:22












1 Answer
1






active

oldest

votes

















up vote
1
down vote













Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD disk.



Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
Find the partitions of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
or.
Open a terminal (Ctrl+Alt+T) and use the following command:



sudo fdisk -l


and find out the partitions.



sudo mount /dev/sdXX /mnt


XX being the partition where Ubuntu is installed.



for example: sudo mount /dev/sda1 /mnt.



If there is a separate boot partition.



sudo mount /dev/sdXY /mnt


XY being the boot partition



for efi boot.



sudo mount /dev/sdXZ /mnt/boot/efi


XZ being the efi partition.



Now bind the directories that grub needs access to to detect other operating systems, like so.



sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys


Now we go to that using chroot.



sudo chroot /mnt


Now install, check, and update grub.



echo "nameserver 8.8.8.8" >/etc/resolv.conf
apt install grub-pc grub-common


This time you only need to add the drive letter (usually a) to replace X, for example:
for Legacy/BIOS boot:



grub-install --force /dev/sdX


for efi boot:



sudo grub-install --boot-directory=/mnt/boot /dev/sdX 


then



update-grub


Now grub is back, all that is left is to exit the chrooted system and unmount everything.



exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&
sudo umount /mnt


Shut down and turn your computer back on, and you will be met with the default Grub2 screen.



for more see this link.



Windows is likely to be found by grub if not see here or here



In such a case you may have to repeat the whole process of Repair restore and reinstall grub 2 with a ubuntu live cd.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD disk.



    Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
    Find the partitions of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
    or.
    Open a terminal (Ctrl+Alt+T) and use the following command:



    sudo fdisk -l


    and find out the partitions.



    sudo mount /dev/sdXX /mnt


    XX being the partition where Ubuntu is installed.



    for example: sudo mount /dev/sda1 /mnt.



    If there is a separate boot partition.



    sudo mount /dev/sdXY /mnt


    XY being the boot partition



    for efi boot.



    sudo mount /dev/sdXZ /mnt/boot/efi


    XZ being the efi partition.



    Now bind the directories that grub needs access to to detect other operating systems, like so.



    sudo mount --bind /dev /mnt/dev &&
    sudo mount --bind /dev/pts /mnt/dev/pts &&
    sudo mount --bind /proc /mnt/proc &&
    sudo mount --bind /sys /mnt/sys


    Now we go to that using chroot.



    sudo chroot /mnt


    Now install, check, and update grub.



    echo "nameserver 8.8.8.8" >/etc/resolv.conf
    apt install grub-pc grub-common


    This time you only need to add the drive letter (usually a) to replace X, for example:
    for Legacy/BIOS boot:



    grub-install --force /dev/sdX


    for efi boot:



    sudo grub-install --boot-directory=/mnt/boot /dev/sdX 


    then



    update-grub


    Now grub is back, all that is left is to exit the chrooted system and unmount everything.



    exit &&
    sudo umount /mnt/sys &&
    sudo umount /mnt/proc &&
    sudo umount /mnt/dev/pts &&
    sudo umount /mnt/dev &&
    sudo umount /mnt


    Shut down and turn your computer back on, and you will be met with the default Grub2 screen.



    for more see this link.



    Windows is likely to be found by grub if not see here or here



    In such a case you may have to repeat the whole process of Repair restore and reinstall grub 2 with a ubuntu live cd.






    share|improve this answer



























      up vote
      1
      down vote













      Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD disk.



      Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
      Find the partitions of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
      or.
      Open a terminal (Ctrl+Alt+T) and use the following command:



      sudo fdisk -l


      and find out the partitions.



      sudo mount /dev/sdXX /mnt


      XX being the partition where Ubuntu is installed.



      for example: sudo mount /dev/sda1 /mnt.



      If there is a separate boot partition.



      sudo mount /dev/sdXY /mnt


      XY being the boot partition



      for efi boot.



      sudo mount /dev/sdXZ /mnt/boot/efi


      XZ being the efi partition.



      Now bind the directories that grub needs access to to detect other operating systems, like so.



      sudo mount --bind /dev /mnt/dev &&
      sudo mount --bind /dev/pts /mnt/dev/pts &&
      sudo mount --bind /proc /mnt/proc &&
      sudo mount --bind /sys /mnt/sys


      Now we go to that using chroot.



      sudo chroot /mnt


      Now install, check, and update grub.



      echo "nameserver 8.8.8.8" >/etc/resolv.conf
      apt install grub-pc grub-common


      This time you only need to add the drive letter (usually a) to replace X, for example:
      for Legacy/BIOS boot:



      grub-install --force /dev/sdX


      for efi boot:



      sudo grub-install --boot-directory=/mnt/boot /dev/sdX 


      then



      update-grub


      Now grub is back, all that is left is to exit the chrooted system and unmount everything.



      exit &&
      sudo umount /mnt/sys &&
      sudo umount /mnt/proc &&
      sudo umount /mnt/dev/pts &&
      sudo umount /mnt/dev &&
      sudo umount /mnt


      Shut down and turn your computer back on, and you will be met with the default Grub2 screen.



      for more see this link.



      Windows is likely to be found by grub if not see here or here



      In such a case you may have to repeat the whole process of Repair restore and reinstall grub 2 with a ubuntu live cd.






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD disk.



        Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
        Find the partitions of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
        or.
        Open a terminal (Ctrl+Alt+T) and use the following command:



        sudo fdisk -l


        and find out the partitions.



        sudo mount /dev/sdXX /mnt


        XX being the partition where Ubuntu is installed.



        for example: sudo mount /dev/sda1 /mnt.



        If there is a separate boot partition.



        sudo mount /dev/sdXY /mnt


        XY being the boot partition



        for efi boot.



        sudo mount /dev/sdXZ /mnt/boot/efi


        XZ being the efi partition.



        Now bind the directories that grub needs access to to detect other operating systems, like so.



        sudo mount --bind /dev /mnt/dev &&
        sudo mount --bind /dev/pts /mnt/dev/pts &&
        sudo mount --bind /proc /mnt/proc &&
        sudo mount --bind /sys /mnt/sys


        Now we go to that using chroot.



        sudo chroot /mnt


        Now install, check, and update grub.



        echo "nameserver 8.8.8.8" >/etc/resolv.conf
        apt install grub-pc grub-common


        This time you only need to add the drive letter (usually a) to replace X, for example:
        for Legacy/BIOS boot:



        grub-install --force /dev/sdX


        for efi boot:



        sudo grub-install --boot-directory=/mnt/boot /dev/sdX 


        then



        update-grub


        Now grub is back, all that is left is to exit the chrooted system and unmount everything.



        exit &&
        sudo umount /mnt/sys &&
        sudo umount /mnt/proc &&
        sudo umount /mnt/dev/pts &&
        sudo umount /mnt/dev &&
        sudo umount /mnt


        Shut down and turn your computer back on, and you will be met with the default Grub2 screen.



        for more see this link.



        Windows is likely to be found by grub if not see here or here



        In such a case you may have to repeat the whole process of Repair restore and reinstall grub 2 with a ubuntu live cd.






        share|improve this answer














        Repair restore and reinstall grub 2 with a Ubuntu installation USB or DVD disk.



        Boot from Ubuntu installation DVD or USB drive and choose 'Try Ubuntu without installing'.
        Find the partitions of your Ubuntu Installation. If you are not sure which one, launch GParted (included in the Ubuntu installation DVD or USB)
        or.
        Open a terminal (Ctrl+Alt+T) and use the following command:



        sudo fdisk -l


        and find out the partitions.



        sudo mount /dev/sdXX /mnt


        XX being the partition where Ubuntu is installed.



        for example: sudo mount /dev/sda1 /mnt.



        If there is a separate boot partition.



        sudo mount /dev/sdXY /mnt


        XY being the boot partition



        for efi boot.



        sudo mount /dev/sdXZ /mnt/boot/efi


        XZ being the efi partition.



        Now bind the directories that grub needs access to to detect other operating systems, like so.



        sudo mount --bind /dev /mnt/dev &&
        sudo mount --bind /dev/pts /mnt/dev/pts &&
        sudo mount --bind /proc /mnt/proc &&
        sudo mount --bind /sys /mnt/sys


        Now we go to that using chroot.



        sudo chroot /mnt


        Now install, check, and update grub.



        echo "nameserver 8.8.8.8" >/etc/resolv.conf
        apt install grub-pc grub-common


        This time you only need to add the drive letter (usually a) to replace X, for example:
        for Legacy/BIOS boot:



        grub-install --force /dev/sdX


        for efi boot:



        sudo grub-install --boot-directory=/mnt/boot /dev/sdX 


        then



        update-grub


        Now grub is back, all that is left is to exit the chrooted system and unmount everything.



        exit &&
        sudo umount /mnt/sys &&
        sudo umount /mnt/proc &&
        sudo umount /mnt/dev/pts &&
        sudo umount /mnt/dev &&
        sudo umount /mnt


        Shut down and turn your computer back on, and you will be met with the default Grub2 screen.



        for more see this link.



        Windows is likely to be found by grub if not see here or here



        In such a case you may have to repeat the whole process of Repair restore and reinstall grub 2 with a ubuntu live cd.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered Oct 22 at 14:25









        Hobbyist

        1,116617




        1,116617















            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕