How to Shrink a Partion with data in the beginning

How to Shrink a Partion with data in the beginning

I installed Ubuntu 20.04 six Months ago and my Issue is, I installed Ubuntu with custom partition schema (created partitions myself) as this:
My Partition Table
How to Shrink a Partion with data in the beginning

And Because I do development (and curious to test OSS projects usually), 20GB in the /home is not enough and very often I have to move things around to other partitions which obviously gonna delete them soon because I just experimenting with’em anyway.

I seperated /home and /root just because if I messed up smth in the system my personal files will be safe (hopefully).

I wanted to be to shrink the /root partition which is ~260GB in order to increase /home which is 20GB partition, but it seems impossible as the data in /root is stored in the beginning of the partition so I can’t grow the /home partition.

Hence, I read about that, Linux systems use files as swap nowadays, I thought I could delete that partition but also afraid of losing data if I grow the /home partition in the beginning.

I thought that no place is better to ask! if there is another option to move the data far from the beginning so I can resize the partitions at either side safely?


Go to Source of this post
Author Of this post: Akam
Title Of post: How to Shrink a Partion with data in the beginning
Author Link: {authorlink}