Deleting operating systems from hard drive in linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












Tl;dr: I have three operating systems on my computer, two of which are corrupt and I don't want there. How do I get rid of them?



I recently bought a PC with windows on it and installed Linux OpenSuse Leap 42.2 on it. I thought I had deleted all the Windows partitions in the process, but when I boot the computer, it still gives me an option of booting Windows. Fast forward a few days, I mess with the grub file in the new operating system so that it won't boot and end up installing Leap again. Now I have three boot options: Windows, my corrupt Leap 42.2, and the new Leap 42.2. I want to get rid of Windows and the first Leap I installed. How do I do it?










share|improve this question



















  • 1




    Read about grub and learn how to delete the boot options you don't want.
    – Satō Katsura
    Sep 26 '17 at 15:19














up vote
1
down vote

favorite












Tl;dr: I have three operating systems on my computer, two of which are corrupt and I don't want there. How do I get rid of them?



I recently bought a PC with windows on it and installed Linux OpenSuse Leap 42.2 on it. I thought I had deleted all the Windows partitions in the process, but when I boot the computer, it still gives me an option of booting Windows. Fast forward a few days, I mess with the grub file in the new operating system so that it won't boot and end up installing Leap again. Now I have three boot options: Windows, my corrupt Leap 42.2, and the new Leap 42.2. I want to get rid of Windows and the first Leap I installed. How do I do it?










share|improve this question



















  • 1




    Read about grub and learn how to delete the boot options you don't want.
    – Satō Katsura
    Sep 26 '17 at 15:19












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Tl;dr: I have three operating systems on my computer, two of which are corrupt and I don't want there. How do I get rid of them?



I recently bought a PC with windows on it and installed Linux OpenSuse Leap 42.2 on it. I thought I had deleted all the Windows partitions in the process, but when I boot the computer, it still gives me an option of booting Windows. Fast forward a few days, I mess with the grub file in the new operating system so that it won't boot and end up installing Leap again. Now I have three boot options: Windows, my corrupt Leap 42.2, and the new Leap 42.2. I want to get rid of Windows and the first Leap I installed. How do I do it?










share|improve this question















Tl;dr: I have three operating systems on my computer, two of which are corrupt and I don't want there. How do I get rid of them?



I recently bought a PC with windows on it and installed Linux OpenSuse Leap 42.2 on it. I thought I had deleted all the Windows partitions in the process, but when I boot the computer, it still gives me an option of booting Windows. Fast forward a few days, I mess with the grub file in the new operating system so that it won't boot and end up installing Leap again. Now I have three boot options: Windows, my corrupt Leap 42.2, and the new Leap 42.2. I want to get rid of Windows and the first Leap I installed. How do I do it?







partition windows opensuse






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 26 '17 at 15:13









Anthon

58.7k1796159




58.7k1796159










asked Sep 26 '17 at 15:06









arnortumi

165




165







  • 1




    Read about grub and learn how to delete the boot options you don't want.
    – Satō Katsura
    Sep 26 '17 at 15:19












  • 1




    Read about grub and learn how to delete the boot options you don't want.
    – Satō Katsura
    Sep 26 '17 at 15:19







1




1




Read about grub and learn how to delete the boot options you don't want.
– Satō Katsura
Sep 26 '17 at 15:19




Read about grub and learn how to delete the boot options you don't want.
– Satō Katsura
Sep 26 '17 at 15:19










1 Answer
1






active

oldest

votes

















up vote
3
down vote













The list of possible grub options are in a config file in /boot/grub. Only removing the unwanted OSes didn't modified this config file. But you don't need to edit it by hand, because the update-grub (as root) command scans your hard disk(s) for all bootable (or seemingly bootable) OSes and reconstructs this config for you.



This reconstruction works by that the update-grub walks over all available partition, and tries to analyze, what is on them.



It is not clear in your case, if the partitions of the unwanted OSes were really deleted. If they weren't, you may get also extra space by deleting these unwanted partitions, and



  • either re-formatting them, to use as data volumes,

  • or increasing your Linux partition to reclaim the unwanted space.

In opensuse, there is a partition manager included into the Yast.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394564%2fdeleting-operating-systems-from-hard-drive-in-linux%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    The list of possible grub options are in a config file in /boot/grub. Only removing the unwanted OSes didn't modified this config file. But you don't need to edit it by hand, because the update-grub (as root) command scans your hard disk(s) for all bootable (or seemingly bootable) OSes and reconstructs this config for you.



    This reconstruction works by that the update-grub walks over all available partition, and tries to analyze, what is on them.



    It is not clear in your case, if the partitions of the unwanted OSes were really deleted. If they weren't, you may get also extra space by deleting these unwanted partitions, and



    • either re-formatting them, to use as data volumes,

    • or increasing your Linux partition to reclaim the unwanted space.

    In opensuse, there is a partition manager included into the Yast.






    share|improve this answer
























      up vote
      3
      down vote













      The list of possible grub options are in a config file in /boot/grub. Only removing the unwanted OSes didn't modified this config file. But you don't need to edit it by hand, because the update-grub (as root) command scans your hard disk(s) for all bootable (or seemingly bootable) OSes and reconstructs this config for you.



      This reconstruction works by that the update-grub walks over all available partition, and tries to analyze, what is on them.



      It is not clear in your case, if the partitions of the unwanted OSes were really deleted. If they weren't, you may get also extra space by deleting these unwanted partitions, and



      • either re-formatting them, to use as data volumes,

      • or increasing your Linux partition to reclaim the unwanted space.

      In opensuse, there is a partition manager included into the Yast.






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        The list of possible grub options are in a config file in /boot/grub. Only removing the unwanted OSes didn't modified this config file. But you don't need to edit it by hand, because the update-grub (as root) command scans your hard disk(s) for all bootable (or seemingly bootable) OSes and reconstructs this config for you.



        This reconstruction works by that the update-grub walks over all available partition, and tries to analyze, what is on them.



        It is not clear in your case, if the partitions of the unwanted OSes were really deleted. If they weren't, you may get also extra space by deleting these unwanted partitions, and



        • either re-formatting them, to use as data volumes,

        • or increasing your Linux partition to reclaim the unwanted space.

        In opensuse, there is a partition manager included into the Yast.






        share|improve this answer












        The list of possible grub options are in a config file in /boot/grub. Only removing the unwanted OSes didn't modified this config file. But you don't need to edit it by hand, because the update-grub (as root) command scans your hard disk(s) for all bootable (or seemingly bootable) OSes and reconstructs this config for you.



        This reconstruction works by that the update-grub walks over all available partition, and tries to analyze, what is on them.



        It is not clear in your case, if the partitions of the unwanted OSes were really deleted. If they weren't, you may get also extra space by deleting these unwanted partitions, and



        • either re-formatting them, to use as data volumes,

        • or increasing your Linux partition to reclaim the unwanted space.

        In opensuse, there is a partition manager included into the Yast.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 26 '17 at 16:30









        peterh

        3,97792755




        3,97792755



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394564%2fdeleting-operating-systems-from-hard-drive-in-linux%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay