3

I'm running a VM with Centos 7 in a virtual environment (Proxmox). I'm out of space. So I've added some from Proxmox, booted from Gparted Live CD to allocate that space to /dev/sda2, but it won't let me resize. Please advice what can be done.

enter image description here

1 Answer 1

4

You have a swap partition between /dev/sda2 and the free space. Turn off swap, remove the swap partition from /etc/fstab, then use Gparted to delete the swap partition /dev/sda3 and the extended partition /dev/sda4; you will then be able to extend /dev/sda2 in the adjacent free space.

3
  • Thank you. How do I "turn off swap and remove it from /etc/fstab"?
    – ilushkin
    Dec 19, 2016 at 13:30
  • Turn off swap by running swapoff -a as root. To remove the swap from /etc/fstab use your favorite text editor -- comment out the line for the swap partition.
    – AlexP
    Dec 19, 2016 at 13:32
  • Thank you! This looks like a correct answer. I probably would be able to do it even when I'm booted from Gparted Liv CD, right?
    – ilushkin
    Dec 19, 2016 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.