I haven't done this before. It is an ubuntu server. I have checked other answers but I am not that confident to follow. I am confused with /dev/sda3 and /dev/sda5 as they have the same size but different types. Ideally I would like to shrink this 382G space and give it to /dev/sda1.
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 58593279 58591232 28G 83 Linux
/dev/sda2 58593280 175779839 117186560 55.9G 82 Linux swap / Solaris
/dev/sda3 175781886 976771071 800989186 382G 5 Extended
/dev/sda5 175781888 976771071 800989184 382G 83 Linux
I have increased sda1 successfully