What happens if I delete the swapfile in Ubuntu 17.10?

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








up vote
1
down vote

favorite












Running out of disk space and trying to free memory. Saw that this took up 2gb, curious what happens if I delete this.







share|improve this question
















  • 2




    Possible duplicate of Is it possible reduce swap memory size?
    – Muzaffar
    Apr 26 at 3:35






  • 1




    @Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
    – Melebius
    Apr 26 at 7:38











  • You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
    – waltinator
    Apr 27 at 13:43










  • @waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
    – W. Verhulst
    Apr 28 at 14:25















up vote
1
down vote

favorite












Running out of disk space and trying to free memory. Saw that this took up 2gb, curious what happens if I delete this.







share|improve this question
















  • 2




    Possible duplicate of Is it possible reduce swap memory size?
    – Muzaffar
    Apr 26 at 3:35






  • 1




    @Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
    – Melebius
    Apr 26 at 7:38











  • You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
    – waltinator
    Apr 27 at 13:43










  • @waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
    – W. Verhulst
    Apr 28 at 14:25













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Running out of disk space and trying to free memory. Saw that this took up 2gb, curious what happens if I delete this.







share|improve this question












Running out of disk space and trying to free memory. Saw that this took up 2gb, curious what happens if I delete this.









share|improve this question











share|improve this question




share|improve this question










asked Apr 26 at 2:27









W. Verhulst

61




61







  • 2




    Possible duplicate of Is it possible reduce swap memory size?
    – Muzaffar
    Apr 26 at 3:35






  • 1




    @Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
    – Melebius
    Apr 26 at 7:38











  • You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
    – waltinator
    Apr 27 at 13:43










  • @waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
    – W. Verhulst
    Apr 28 at 14:25













  • 2




    Possible duplicate of Is it possible reduce swap memory size?
    – Muzaffar
    Apr 26 at 3:35






  • 1




    @Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
    – Melebius
    Apr 26 at 7:38











  • You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
    – waltinator
    Apr 27 at 13:43










  • @waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
    – W. Verhulst
    Apr 28 at 14:25








2




2




Possible duplicate of Is it possible reduce swap memory size?
– Muzaffar
Apr 26 at 3:35




Possible duplicate of Is it possible reduce swap memory size?
– Muzaffar
Apr 26 at 3:35




1




1




@Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
– Melebius
Apr 26 at 7:38





@Muzaffar The linked question title looks promising but the answers only speak about changing the swap partition size or swappiness. Neither probably helps with reducing the size of swap file.
– Melebius
Apr 26 at 7:38













You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
– waltinator
Apr 27 at 13:43




You will break your system if you delete the 2GB swap partition without telling the system to stop using it. This is a Bad Idea.
– waltinator
Apr 27 at 13:43












@waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
– W. Verhulst
Apr 28 at 14:25





@waltinator thank you for the reply. This was the answer I wanted to hear. Thanks
– W. Verhulst
Apr 28 at 14:25











1 Answer
1






active

oldest

votes

















up vote
0
down vote













Nothing. It's not possible to delete a swap file that's in use.






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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1028246%2fwhat-happens-if-i-delete-the-swapfile-in-ubuntu-17-10%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
    0
    down vote













    Nothing. It's not possible to delete a swap file that's in use.






    share|improve this answer
























      up vote
      0
      down vote













      Nothing. It's not possible to delete a swap file that's in use.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Nothing. It's not possible to delete a swap file that's in use.






        share|improve this answer












        Nothing. It's not possible to delete a swap file that's in use.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 26 at 3:53









        muru

        129k19271462




        129k19271462



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028246%2fwhat-happens-if-i-delete-the-swapfile-in-ubuntu-17-10%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491