Well, I've gotten myself into a sticky situation. I've just upgraded my laptop's RAM from 8 GB to 16 GB. Now, I know that Linux swap
partition serves as a "home" for RAM on most Linux distros, including mine. Also, I have my Linux on a 1 TB HDD. However, when first installing, I've only used 700 GB out of 1 TB and naively thought that I could enlarge later if it were needed. So, 300 GB is basically just laying around doing nothing.
Well, now I need a bigger home
and swap
partition. However, even after running gparted
, I only had the option to shrink these partitions, despite of 300 GB of space marked as 'Unallocated'. Please help me figure out how to enlarge both, so my RAM and storage capacity won't go to waste. Thank you in advance.
Addendum: the output of sudo parted -l
:
root@smerdjakov:~# sudo parted -l
Model: ATA TOSHIBA MK1059GS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1048kB 610GB 610GB extended boot
5 1049kB 2000MB 1999MB logical ext4
6 2001MB 102GB 100GB logical ext4
7 102GB 602GB 500GB logical ext4
8 602GB 610GB 7999MB logical linux-swap(v1)
sudo parted -l
. Also, why don't you just create a new partition in the empty space and mount that in a directory under your home? Why do you need to enlarge?swap
acts as RAM storage for my system (sorry, I'm not a native English speaker, so I'm not very keen on this technical terminology; hence the misunderstanding).