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

Multi tool use
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?
partitioning gparted swap
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby 2 days ago
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.
add a comment |
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?
partitioning gparted swap
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby 2 days ago
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
yesterday
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago
add a comment |
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?
partitioning gparted swap
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
partitioning gparted swap
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Jan 25 at 1:04
paoloumalipaoloumali
1
1
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
marked as duplicate by heynnema, karel, Charles Green, Elder Geek, Fabby 2 days ago
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 2 days ago
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
yesterday
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago
add a comment |
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
yesterday
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago
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
yesterday
@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
yesterday
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago
add a comment |
1 Answer
1
active
oldest
votes
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?
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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?
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
add a comment |
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?
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
add a comment |
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?
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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?
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 days ago
paoloumalipaoloumali
1
1
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
paoloumali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
add a comment |
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
See my original comment to your question.
– heynnema
2 days ago
See my original comment to your question.
– heynnema
2 days ago
I did. @heynnema
– paoloumali
yesterday
I did. @heynnema
– paoloumali
yesterday
add a comment |
edzaCZxJsheZu,sUb,75tlLiQrf,JcNfnFEsTkK1,zOSQR
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
yesterday
I still dont get why this is a duplicate question.
– paoloumali
14 hours ago