Deleting Linux swap partition












2















I have a dual boot machine of Linux(Ubuntu) and Windows 7.
What will happen if I delete the Linux swap partition from win7 using some partition manager software.
Will it cause problem to my Linux or it will function smoothly as earlier.










share|improve this question




















  • 3





    Why delete it "from win7"? You can remove it correctly from Ubuntu.

    – Pilot6
    Jan 31 '17 at 12:35











  • Will it cause any problem to linux?

    – Boyka
    Jan 31 '17 at 12:36






  • 1





    Yes, it will cause problems if you do it from Win7.

    – Pilot6
    Jan 31 '17 at 12:36






  • 1





    You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

    – 13dimitar
    Jan 31 '17 at 12:45






  • 1





    @Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

    – psusi
    Jan 31 '17 at 14:00
















2















I have a dual boot machine of Linux(Ubuntu) and Windows 7.
What will happen if I delete the Linux swap partition from win7 using some partition manager software.
Will it cause problem to my Linux or it will function smoothly as earlier.










share|improve this question




















  • 3





    Why delete it "from win7"? You can remove it correctly from Ubuntu.

    – Pilot6
    Jan 31 '17 at 12:35











  • Will it cause any problem to linux?

    – Boyka
    Jan 31 '17 at 12:36






  • 1





    Yes, it will cause problems if you do it from Win7.

    – Pilot6
    Jan 31 '17 at 12:36






  • 1





    You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

    – 13dimitar
    Jan 31 '17 at 12:45






  • 1





    @Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

    – psusi
    Jan 31 '17 at 14:00














2












2








2








I have a dual boot machine of Linux(Ubuntu) and Windows 7.
What will happen if I delete the Linux swap partition from win7 using some partition manager software.
Will it cause problem to my Linux or it will function smoothly as earlier.










share|improve this question
















I have a dual boot machine of Linux(Ubuntu) and Windows 7.
What will happen if I delete the Linux swap partition from win7 using some partition manager software.
Will it cause problem to my Linux or it will function smoothly as earlier.







14.04 windows swap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 12 at 5:15









Codito ergo sum

1,5023825




1,5023825










asked Jan 31 '17 at 12:29









BoykaBoyka

1932315




1932315








  • 3





    Why delete it "from win7"? You can remove it correctly from Ubuntu.

    – Pilot6
    Jan 31 '17 at 12:35











  • Will it cause any problem to linux?

    – Boyka
    Jan 31 '17 at 12:36






  • 1





    Yes, it will cause problems if you do it from Win7.

    – Pilot6
    Jan 31 '17 at 12:36






  • 1





    You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

    – 13dimitar
    Jan 31 '17 at 12:45






  • 1





    @Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

    – psusi
    Jan 31 '17 at 14:00














  • 3





    Why delete it "from win7"? You can remove it correctly from Ubuntu.

    – Pilot6
    Jan 31 '17 at 12:35











  • Will it cause any problem to linux?

    – Boyka
    Jan 31 '17 at 12:36






  • 1





    Yes, it will cause problems if you do it from Win7.

    – Pilot6
    Jan 31 '17 at 12:36






  • 1





    You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

    – 13dimitar
    Jan 31 '17 at 12:45






  • 1





    @Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

    – psusi
    Jan 31 '17 at 14:00








3




3





Why delete it "from win7"? You can remove it correctly from Ubuntu.

– Pilot6
Jan 31 '17 at 12:35





Why delete it "from win7"? You can remove it correctly from Ubuntu.

– Pilot6
Jan 31 '17 at 12:35













Will it cause any problem to linux?

– Boyka
Jan 31 '17 at 12:36





Will it cause any problem to linux?

– Boyka
Jan 31 '17 at 12:36




1




1





Yes, it will cause problems if you do it from Win7.

– Pilot6
Jan 31 '17 at 12:36





Yes, it will cause problems if you do it from Win7.

– Pilot6
Jan 31 '17 at 12:36




1




1





You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

– 13dimitar
Jan 31 '17 at 12:45





You can just do swapoff <partition> and see how it goes. You can then turn it back on with swapon <partition>.

– 13dimitar
Jan 31 '17 at 12:45




1




1





@Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

– psusi
Jan 31 '17 at 14:00





@Pilot6, no, it won't. What program deletes the partition makes no difference; it will be missing when you boot next and the system will complain about that until you remove its entry from /etc/fstab.

– psusi
Jan 31 '17 at 14:00










1 Answer
1






active

oldest

votes


















3














At a minimum, you'll get an error report during Ubuntu startup, saying the swap partition isn't found. Depending on exact details, this may prevent Ubuntu from starting and drop you to an emergency shell. However, if you have enough RAM (typically, for Ubuntu, 4 GB or more), Ubuntu should at least finish starting with no swap; the error happens because Ubuntu expects to find a swap partition.



Even if Ubuntu starts successfully without a swap partition (in my experience, this will happen only if you didn't create one during installation, but there may be other circumstances that permit it), you'll have trouble if running processes begin to require more RAM than the physical RAM available in hardware; for instance, if you have 4 GB installed, and load programs that, together, need more than 4 GB, you'll run into issues with extremely slow performance and possibly even a system freeze.



Because of this, I'd recommend against deleting your swap partition. They're typically small, compared to the size of modern hard disks or even SSDs, and they're part of how Ubuntu performs as well as it does.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f878278%2fdeleting-linux-swap-partition%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    At a minimum, you'll get an error report during Ubuntu startup, saying the swap partition isn't found. Depending on exact details, this may prevent Ubuntu from starting and drop you to an emergency shell. However, if you have enough RAM (typically, for Ubuntu, 4 GB or more), Ubuntu should at least finish starting with no swap; the error happens because Ubuntu expects to find a swap partition.



    Even if Ubuntu starts successfully without a swap partition (in my experience, this will happen only if you didn't create one during installation, but there may be other circumstances that permit it), you'll have trouble if running processes begin to require more RAM than the physical RAM available in hardware; for instance, if you have 4 GB installed, and load programs that, together, need more than 4 GB, you'll run into issues with extremely slow performance and possibly even a system freeze.



    Because of this, I'd recommend against deleting your swap partition. They're typically small, compared to the size of modern hard disks or even SSDs, and they're part of how Ubuntu performs as well as it does.






    share|improve this answer




























      3














      At a minimum, you'll get an error report during Ubuntu startup, saying the swap partition isn't found. Depending on exact details, this may prevent Ubuntu from starting and drop you to an emergency shell. However, if you have enough RAM (typically, for Ubuntu, 4 GB or more), Ubuntu should at least finish starting with no swap; the error happens because Ubuntu expects to find a swap partition.



      Even if Ubuntu starts successfully without a swap partition (in my experience, this will happen only if you didn't create one during installation, but there may be other circumstances that permit it), you'll have trouble if running processes begin to require more RAM than the physical RAM available in hardware; for instance, if you have 4 GB installed, and load programs that, together, need more than 4 GB, you'll run into issues with extremely slow performance and possibly even a system freeze.



      Because of this, I'd recommend against deleting your swap partition. They're typically small, compared to the size of modern hard disks or even SSDs, and they're part of how Ubuntu performs as well as it does.






      share|improve this answer


























        3












        3








        3







        At a minimum, you'll get an error report during Ubuntu startup, saying the swap partition isn't found. Depending on exact details, this may prevent Ubuntu from starting and drop you to an emergency shell. However, if you have enough RAM (typically, for Ubuntu, 4 GB or more), Ubuntu should at least finish starting with no swap; the error happens because Ubuntu expects to find a swap partition.



        Even if Ubuntu starts successfully without a swap partition (in my experience, this will happen only if you didn't create one during installation, but there may be other circumstances that permit it), you'll have trouble if running processes begin to require more RAM than the physical RAM available in hardware; for instance, if you have 4 GB installed, and load programs that, together, need more than 4 GB, you'll run into issues with extremely slow performance and possibly even a system freeze.



        Because of this, I'd recommend against deleting your swap partition. They're typically small, compared to the size of modern hard disks or even SSDs, and they're part of how Ubuntu performs as well as it does.






        share|improve this answer













        At a minimum, you'll get an error report during Ubuntu startup, saying the swap partition isn't found. Depending on exact details, this may prevent Ubuntu from starting and drop you to an emergency shell. However, if you have enough RAM (typically, for Ubuntu, 4 GB or more), Ubuntu should at least finish starting with no swap; the error happens because Ubuntu expects to find a swap partition.



        Even if Ubuntu starts successfully without a swap partition (in my experience, this will happen only if you didn't create one during installation, but there may be other circumstances that permit it), you'll have trouble if running processes begin to require more RAM than the physical RAM available in hardware; for instance, if you have 4 GB installed, and load programs that, together, need more than 4 GB, you'll run into issues with extremely slow performance and possibly even a system freeze.



        Because of this, I'd recommend against deleting your swap partition. They're typically small, compared to the size of modern hard disks or even SSDs, and they're part of how Ubuntu performs as well as it does.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 31 '17 at 12:37









        Zeiss IkonZeiss Ikon

        3,1331823




        3,1331823






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f878278%2fdeleting-linux-swap-partition%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?