Can I move the delete the swap partition in an existing installation? [duplicate]












0
















This question already has an answer here:




  • Do I have to move swap partition to the right side?

    2 answers




I'm just learning best practices on partitioning. I want to move my swap partition to the right end of my disk.



partitions screenshot



Am I not breaking anything if I delete the swap? How about it being partition number 3?










share|improve this question













marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby Jan 26 at 0:57


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





    You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

    – heynnema
    Jan 25 at 1:33













  • I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

    – C.S.Cameron
    Jan 25 at 3:45






  • 1





    Just be sure the free command says zero bytes of swap used before deleting it.

    – ubfan1
    Jan 25 at 3:59











  • @ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

    – heynnema
    Jan 26 at 14:54











  • I still dont get why this is a duplicate question.

    – paoloumali
    Jan 27 at 15:43
















0
















This question already has an answer here:




  • Do I have to move swap partition to the right side?

    2 answers




I'm just learning best practices on partitioning. I want to move my swap partition to the right end of my disk.



partitions screenshot



Am I not breaking anything if I delete the swap? How about it being partition number 3?










share|improve this question













marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby Jan 26 at 0:57


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





    You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

    – heynnema
    Jan 25 at 1:33













  • I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

    – C.S.Cameron
    Jan 25 at 3:45






  • 1





    Just be sure the free command says zero bytes of swap used before deleting it.

    – ubfan1
    Jan 25 at 3:59











  • @ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

    – heynnema
    Jan 26 at 14:54











  • I still dont get why this is a duplicate question.

    – paoloumali
    Jan 27 at 15:43














0












0








0


1







This question already has an answer here:




  • Do I have to move swap partition to the right side?

    2 answers




I'm just learning best practices on partitioning. I want to move my swap partition to the right end of my disk.



partitions screenshot



Am I not breaking anything if I delete the swap? How about it being partition number 3?










share|improve this question















This question already has an answer here:




  • Do I have to move swap partition to the right side?

    2 answers




I'm just learning best practices on partitioning. I want to move my swap partition to the right end of my disk.



partitions screenshot



Am I not breaking anything if I delete the swap? How about it being partition number 3?





This question already has an answer here:




  • Do I have to move swap partition to the right side?

    2 answers








partitioning gparted swap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 25 at 1:04









paoloumalipaoloumali

1




1




marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby Jan 26 at 0:57


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 heynnema, karel, Charles Green, Elder Geek, Fabby Jan 26 at 0:57


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





    You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

    – heynnema
    Jan 25 at 1:33













  • I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

    – C.S.Cameron
    Jan 25 at 3:45






  • 1





    Just be sure the free command says zero bytes of swap used before deleting it.

    – ubfan1
    Jan 25 at 3:59











  • @ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

    – heynnema
    Jan 26 at 14:54











  • I still dont get why this is a duplicate question.

    – paoloumali
    Jan 27 at 15:43














  • 1





    You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

    – heynnema
    Jan 25 at 1:33













  • I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

    – C.S.Cameron
    Jan 25 at 3:45






  • 1





    Just be sure the free command says zero bytes of swap used before deleting it.

    – ubfan1
    Jan 25 at 3:59











  • @ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

    – heynnema
    Jan 26 at 14:54











  • I still dont get why this is a duplicate question.

    – paoloumali
    Jan 27 at 15:43








1




1





You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

– heynnema
Jan 25 at 1:33







You can't MOVE the swap partition, as there are 3 partitions in the way. You'd have to delete it, recreate it, find out the new UUID, and update /etc/fstab and /etc/initramfs-tools/conf.d/resume. And yes, just deleting swap will break it. Also, we don't support Kali here. Sorry.

– heynnema
Jan 25 at 1:33















I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

– C.S.Cameron
Jan 25 at 3:45





I have never had a problem adding or removing a swap partition, just make sure /etc/fstab is up to date.

– C.S.Cameron
Jan 25 at 3:45




1




1





Just be sure the free command says zero bytes of swap used before deleting it.

– ubfan1
Jan 25 at 3:59





Just be sure the free command says zero bytes of swap used before deleting it.

– ubfan1
Jan 25 at 3:59













@ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

– heynnema
Jan 26 at 14:54





@ubfan1 just checking for zero swap used, and deleting swap, isn't the right way to do it. You'd first issue a swapoff command.

– heynnema
Jan 26 at 14:54













I still dont get why this is a duplicate question.

– paoloumali
Jan 27 at 15:43





I still dont get why this is a duplicate question.

– paoloumali
Jan 27 at 15:43










1 Answer
1






active

oldest

votes


















0














I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.



As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - swap

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space


I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - free space

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space

  • Partition 7 - swap


What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.



Then to check, I did



sudo swapon --show



and got this:



NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G 0B -2


Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.



Does this mean sdc3 wont be used anymore as a label/tag?



sdc             119.2G                               
├─sdc1 vfat 94M /boot/efi
├─sdc2 ext4 13.5G /
freespace
├─sdc4 ext4 3.6G /home
├─sdc5 ext4 3.7G
├─sdc6 ext4 14.9G
freespace
└─sdc7 swap 7.5G [SWAP]


Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?



What's the implication of losing sdc3?






share|improve this answer
























  • See my original comment to your question.

    – heynnema
    Jan 25 at 18:24











  • I did. @heynnema

    – paoloumali
    Jan 26 at 6:06


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.



As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - swap

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space


I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - free space

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space

  • Partition 7 - swap


What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.



Then to check, I did



sudo swapon --show



and got this:



NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G 0B -2


Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.



Does this mean sdc3 wont be used anymore as a label/tag?



sdc             119.2G                               
├─sdc1 vfat 94M /boot/efi
├─sdc2 ext4 13.5G /
freespace
├─sdc4 ext4 3.6G /home
├─sdc5 ext4 3.7G
├─sdc6 ext4 14.9G
freespace
└─sdc7 swap 7.5G [SWAP]


Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?



What's the implication of losing sdc3?






share|improve this answer
























  • See my original comment to your question.

    – heynnema
    Jan 25 at 18:24











  • I did. @heynnema

    – paoloumali
    Jan 26 at 6:06
















0














I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.



As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - swap

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space


I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - free space

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space

  • Partition 7 - swap


What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.



Then to check, I did



sudo swapon --show



and got this:



NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G 0B -2


Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.



Does this mean sdc3 wont be used anymore as a label/tag?



sdc             119.2G                               
├─sdc1 vfat 94M /boot/efi
├─sdc2 ext4 13.5G /
freespace
├─sdc4 ext4 3.6G /home
├─sdc5 ext4 3.7G
├─sdc6 ext4 14.9G
freespace
└─sdc7 swap 7.5G [SWAP]


Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?



What's the implication of losing sdc3?






share|improve this answer
























  • See my original comment to your question.

    – heynnema
    Jan 25 at 18:24











  • I did. @heynnema

    – paoloumali
    Jan 26 at 6:06














0












0








0







I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.



As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - swap

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space


I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - free space

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space

  • Partition 7 - swap


What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.



Then to check, I did



sudo swapon --show



and got this:



NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G 0B -2


Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.



Does this mean sdc3 wont be used anymore as a label/tag?



sdc             119.2G                               
├─sdc1 vfat 94M /boot/efi
├─sdc2 ext4 13.5G /
freespace
├─sdc4 ext4 3.6G /home
├─sdc5 ext4 3.7G
├─sdc6 ext4 14.9G
freespace
└─sdc7 swap 7.5G [SWAP]


Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?



What's the implication of losing sdc3?






share|improve this answer













I'm answering my question as I was able to resolve it in a manner that I think I'm satisfied. Please feel free to correct me if wrong. I want other's to get this same question answered the easiest and clearest way possible.



As mentioned, I had Ubuntu 18.10 already running fine. I had this setup.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - swap

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space


I went to Kali and used GParted. I was able to delete Partition 3. I added Partition 7 for swap at the end of free space. I tried booting on Ubuntu and it proceeded.




  • Partition 1 - efi

  • Partition 2 - ubuntu /

  • Partition 3 - free space

  • Partition 4 - ubuntu /home

  • Partition 5 - kali /home

  • Partition 6 - kali /

  • free space

  • Partition 7 - swap


What I noticed is that in Ubuntu, no swap is being used. So I just used the built-in Disks app, then enabled swap.



Then to check, I did



sudo swapon --show



and got this:



NAME      TYPE      SIZE USED PRIO
/dev/sdc7 partition 7.5G 0B -2


Something to note, since I'm working on a third disk, the naming scheme is
sdc1, sdc2 then sdc4. The deleted swap file entailed sdc3 'label/tag' to be missing.



Does this mean sdc3 wont be used anymore as a label/tag?



sdc             119.2G                               
├─sdc1 vfat 94M /boot/efi
├─sdc2 ext4 13.5G /
freespace
├─sdc4 ext4 3.6G /home
├─sdc5 ext4 3.7G
├─sdc6 ext4 14.9G
freespace
└─sdc7 swap 7.5G [SWAP]


Also, if I add another partition on the second freespace, will the numeric partition naming scheme stay the same? i.e. sdc7 will stick at the end of the disk or will there be a rearrangement of name?



What's the implication of losing sdc3?







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 25 at 17:45









paoloumalipaoloumali

1




1













  • See my original comment to your question.

    – heynnema
    Jan 25 at 18:24











  • I did. @heynnema

    – paoloumali
    Jan 26 at 6:06



















  • See my original comment to your question.

    – heynnema
    Jan 25 at 18:24











  • I did. @heynnema

    – paoloumali
    Jan 26 at 6:06

















See my original comment to your question.

– heynnema
Jan 25 at 18:24





See my original comment to your question.

– heynnema
Jan 25 at 18:24













I did. @heynnema

– paoloumali
Jan 26 at 6:06





I did. @heynnema

– paoloumali
Jan 26 at 6:06



Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅