Updated to 18.04 and need help [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • How to automatically mount swap partition?

    1 answer




I ran swapon --show and its showing



/swapfile 4gb used O
/dev/sda6 partition 3.8gb used 0


My original swap partition was on sda5 and moved it to sda6 a while ago. How do I manage this? Do I remove the both and start over or delete one? Can someone please walk me through this










share|improve this question















marked as duplicate by earthmeLon, karel, N0rbert, Eric Carvalho, Fabby yesterday


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.











  • 1




    After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
    – earthmeLon
    Nov 19 at 22:40










  • fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
    – Idontknowyougetaway
    Nov 19 at 23:05















up vote
0
down vote

favorite













This question already has an answer here:




  • How to automatically mount swap partition?

    1 answer




I ran swapon --show and its showing



/swapfile 4gb used O
/dev/sda6 partition 3.8gb used 0


My original swap partition was on sda5 and moved it to sda6 a while ago. How do I manage this? Do I remove the both and start over or delete one? Can someone please walk me through this










share|improve this question















marked as duplicate by earthmeLon, karel, N0rbert, Eric Carvalho, Fabby yesterday


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.











  • 1




    After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
    – earthmeLon
    Nov 19 at 22:40










  • fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
    – Idontknowyougetaway
    Nov 19 at 23:05













up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:




  • How to automatically mount swap partition?

    1 answer




I ran swapon --show and its showing



/swapfile 4gb used O
/dev/sda6 partition 3.8gb used 0


My original swap partition was on sda5 and moved it to sda6 a while ago. How do I manage this? Do I remove the both and start over or delete one? Can someone please walk me through this










share|improve this question
















This question already has an answer here:




  • How to automatically mount swap partition?

    1 answer




I ran swapon --show and its showing



/swapfile 4gb used O
/dev/sda6 partition 3.8gb used 0


My original swap partition was on sda5 and moved it to sda6 a while ago. How do I manage this? Do I remove the both and start over or delete one? Can someone please walk me through this





This question already has an answer here:




  • How to automatically mount swap partition?

    1 answer








partitioning 18.04 swap






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 22:52









waltinator

21.6k74169




21.6k74169










asked Nov 19 at 22:36









Idontknowyougetaway

14




14




marked as duplicate by earthmeLon, karel, N0rbert, Eric Carvalho, Fabby yesterday


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 earthmeLon, karel, N0rbert, Eric Carvalho, Fabby yesterday


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.










  • 1




    After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
    – earthmeLon
    Nov 19 at 22:40










  • fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
    – Idontknowyougetaway
    Nov 19 at 23:05














  • 1




    After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
    – earthmeLon
    Nov 19 at 22:40










  • fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
    – Idontknowyougetaway
    Nov 19 at 23:05








1




1




After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
– earthmeLon
Nov 19 at 22:40




After rebooting, your swap file becomes useless/cleaned automatically. You can create a new one, but you'll want to delete the old one due to security concerns. You need to adjust your /etc/fstab to point to the new swapfile. You need to mount that partition to access the file. Alternatively, you can create a swap partition.
– earthmeLon
Nov 19 at 22:40












fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
– Idontknowyougetaway
Nov 19 at 23:05




fstab is showing both swapfile and swap partition so its ok to just remove or comment out the first swap partition and then reboot correct?
– Idontknowyougetaway
Nov 19 at 23:05










1 Answer
1






active

oldest

votes

















up vote
1
down vote













In 18.04 there is no swap partition. It uses a swap file.



So unless you've made changes to the swap file, this is all you need to do.



Use gparted (sudo apt-get install gparted -y) to delete the swap partition and then resize your ext4 partion with the newly freed space.



The swap file doesn't use the partition so you can delete it without it affecting swap.



Then you can open 'System Monitor' to make sure your swap is on.






share|improve this answer








New contributor




Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    In 18.04 there is no swap partition. It uses a swap file.



    So unless you've made changes to the swap file, this is all you need to do.



    Use gparted (sudo apt-get install gparted -y) to delete the swap partition and then resize your ext4 partion with the newly freed space.



    The swap file doesn't use the partition so you can delete it without it affecting swap.



    Then you can open 'System Monitor' to make sure your swap is on.






    share|improve this answer








    New contributor




    Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      1
      down vote













      In 18.04 there is no swap partition. It uses a swap file.



      So unless you've made changes to the swap file, this is all you need to do.



      Use gparted (sudo apt-get install gparted -y) to delete the swap partition and then resize your ext4 partion with the newly freed space.



      The swap file doesn't use the partition so you can delete it without it affecting swap.



      Then you can open 'System Monitor' to make sure your swap is on.






      share|improve this answer








      New contributor




      Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        up vote
        1
        down vote










        up vote
        1
        down vote









        In 18.04 there is no swap partition. It uses a swap file.



        So unless you've made changes to the swap file, this is all you need to do.



        Use gparted (sudo apt-get install gparted -y) to delete the swap partition and then resize your ext4 partion with the newly freed space.



        The swap file doesn't use the partition so you can delete it without it affecting swap.



        Then you can open 'System Monitor' to make sure your swap is on.






        share|improve this answer








        New contributor




        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        In 18.04 there is no swap partition. It uses a swap file.



        So unless you've made changes to the swap file, this is all you need to do.



        Use gparted (sudo apt-get install gparted -y) to delete the swap partition and then resize your ext4 partion with the newly freed space.



        The swap file doesn't use the partition so you can delete it without it affecting swap.



        Then you can open 'System Monitor' to make sure your swap is on.







        share|improve this answer








        New contributor




        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Nov 19 at 23:46









        Better Ideas

        113




        113




        New contributor




        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Better Ideas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.















            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局