Resize Linux System Partition without breaking Linux?

Can I resize my Linux Partition if I don’t move it or change the position or numbers of the other partitions before it and can I delete the SWAP Partition temporarily and then recreate it after resizing the Linux Partition without breaking Linux?
I want to give Linux more drive space for the system partition because it’s 93 percent full and I have a 858 NFTS Partition I can take space from to give it to the Linux System and SWAP Partitions.

I was able to safely resize the System Partition on Linux Mint I have installed on my Laptop but it does not have a SWAP Partition.

Thanks

boot from a live usb and use gparted to resize your system, that works. If you delete swap and recreate it, the UUID will be different so the first time you boot your system, it will complain b/c UUID does not match the etc/fstab entry. Fix it and you should be ok from that time on.

I know how to use GPARTED, that is how I resized the system partition on Mint 19 I have installed on my Laptop but it does not have a swap partition so it was easy.

Having the swap partition makes it more complicated and difficult for me.

I’ve had UUID problems before when I would change the port my hard drives were on and I have no idea how to tell the system where the partitions moved to.

How do I fix the issue you mentioned in your post

“it will complain b/c UUID does not match the etc/fstab entry. Fix it and you should be ok from that time on.”

Right now my System ext4 partition is on /dev/sda5 Swap /dev/sda6 and NTFS Data Partition /dev/sda7

If I delete the swap partition and then the NTFS data partition, expand the system partition and then recreate the swap partition and then allocate the rest back to a NTFS partition won’t it work without any issues since I did not change the order of the partitions?

Thanks

Mint 19 uses /swapfile, usually 2 GB. If you have enough ram, you don’t need swap … swapoff and comment the fstab entry. If I understood … sda5 / , sda6 swap , sda7 ntfs

delete sda7, sda6, you resize sda5, recreate swap, gparted will tell you the uuid of the swap partition. Upon booting, your system will complain about swap uuid, edit fstab and use the new uuid for swap. reboot and system should be ok. lsblk -fs will give you uuid info. But … you could delete ntfs, move swap to the end of the disk, then resize sda5 as needed. That way, swap is not deleted and uuid is the same.

How do I edit the fstab file to tell the system where the swap partition is?

My system takes a long time to boot and system monitor says swap not available and if I run run GParted and right click on the swap partition and select swap on it shows up in system monitor.

this is the output of lsblk -fs I assume regarding the location of the swap partition.
sda6 swap c6a4267b-6877-455e-a357-83f66a271bfd
└─sda

My system takes a long time to boot and system monitor says swap not available and if I run run GParted and right click on the swap partition and select swap on it then shows up in system monitor as being active or available.

Thanks.

you can use sudo nano /etc/fstab or vi if you’re familiar. replace the UUID with yours

UUID=04846c1a-0c14-4e24-a6ad-3a1bb23adb5c none swap sw 0 0

I got it to work, Thanks.

I put the Swap at the the disk so it will be easier to resize my System partition if ever needed.

Glad you got it working. If you put swap at the beginning of the disk, it is easier to resize /

You can check your system with systemd-analyze blame
You’ll see list of services and how long it took for each to start.