Friday, September 29, 2023
rated 0 times [  20] [ 0]  / answers: 1 / hits: 49593  / 7 Months ago, mon, march 27, 2023, 8:08:43

I've got a Linux-based OS installed on a partition I want to shrink. Want to avoid reinstallation or losing/corrupting data, if possible.

More From » partitioning


As always:

D O   A   BACKUP. At least of the sensitive data on the partition, you want to shrink. Neither I, nor geparted can be held responsible if you screw up.

Now to the procedure using gparted:

gparted screenshot with steps to do

The picture is a little messy but don't get scared (you'll be moving with your partition to your auntie and uncle in Bel Air. Wait wat? XD). Just stick with this for a moment and follow the instructions below. Start looking at the image in the top right corner. Then follow the numbers in ascending order.

Here is a text version of the steps numbered as in the picture:

  • Install gparted / sudo apt-get install gparted

  • Start gparted

    1. Select the disk in the upper right dropbox

    2. Select the partition in the main list in the middle

      • If mounted: Unmount that partition using the contex menu (right click)

    3. Click the resize button

    4. A dialog will pop up

    5. Resize

    6. Click "Apply" after double checking your changes. That's it.

This will not work with all partitions. It can be more complicated for Mac partitions or logical volumes.

[#44765] Tuesday, March 28, 2023, 7 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 236
Total Questions: 111
Total Answers: 123

Location: Belarus
Member since Tue, Mar 14, 2023
7 Months ago
cocal questions
Tue, Oct 12, 21, 20:46, 2 Years ago
Sat, Oct 8, 22, 04:23, 1 Year ago
Sun, Dec 18, 22, 02:24, 10 Months ago
Wed, Jun 29, 22, 17:31, 1 Year ago