Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 56130  / 3 Years ago, thu, july 15, 2021, 1:00:36

I want to increase the size of Linux-swap partition after installing ubuntu(not during the ubuntu installation wizard).

enter image description here



I want to increase /dev/sda9 partition from 9.31GB to 16 GB.Please help me.


More From » swap

 Answers
3

Your swap partition is a logical partition, which lives inside the extended partition ( /dev/sda2 in your case ). To expand it, you need unallocated space after it, but inside the extended partition. You have unallocated space after the extended partition, so you have to expand the extended partition to move the unallocated space into the extended partition, then you can expand the swap partition.



In order to resize a partition, it must not be mounted ( the key icon shows it is mounted ). You will need to right click on the swap partition and choose to unmount/swapoff so you can expand it. Since your root partition is also a logical partition though, you will not be able to unmount it, and thus, leave the extended partition unlocked so you can resize it, so you will need to do this from the livecd instead.


[#28689] Thursday, July 15, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ightrushi

Total Points: 129
Total Questions: 125
Total Answers: 127

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
;