How can I extend the sdb2 partition?
Here is the current partition layout of my /dev/sdb disk:
/dev/sdb├─sdb1 ntfs Windows10 6672012C72010313├─sdb2 ext4 1.0 dd841b67-660f-42dc-a057-a934bd0385ea└─sdb3 ntfs WinRE 7EB24D9DB24D5B33
I would like to increase the size of the sdb2 partition. How can I do this safely, preferably without losing any data?
I’m open to using tools like gparted, parted, fdisk, or command-line solutions. Also, please let me know if any unallocated space is required before or after the partition to extend it.