1

Forgive me, as I am not the best at describing tech problems.

I have a /dev/sda5 ext4 partition running Linux Mint, and a /dev/sda7 running Kali Linux, both of which are in an extended partition.. I want to add space to my Mint, as Kali Linux does not demand much space. I took off 50 Gigs from my Kali Linux. However, Gparted does not give me the option to add THAT free space to my Linux Mint. How can I solve this?

EDIT:

Kali Linux is on /dev/sda6. /dev/sda7 is swap.

1

So... you have something else in /dev/sda6? "Recent" versions of gparted are able to move partitions. Your problem would be:

  • move /dev/sda6 down (to use up the space freed in /dev/sda5)
  • move /dev/sda7 down (to put the free space on its end)
  • extend /dev/sda7

The partitions have to be unmounted, according to the documentation:

Moving a Partition

Moving and resizing a partition can be performed by a single gparted operation.

To move a partition:

  1. Select an unmounted partition. See the section called “Selecting a Partition”.

  2. Choose: Partition → Resize/Move. The application displays the Resize/Move /path-to-partition dialog.

  3. Adjust the location of the partition. See the section called “Specifying Partition Size and Location”.

  4. Specify the alignment of the partition. See the section called “Specifying Partition Alignment”.

  5. Click Resize/Move. The application displays the resize/move partition operation in the Pending Operations pane.

Tip

If the partition is an operating system boot partition, then the operating system might not boot after the move operation is applied.

If the operating system fails to boot, see the section called “Fixing Operating System Boot Problems”.

  • Apologies, but my Kali Linux is /dev/sda6. /dev/sda7 is Swap. Let me edit that. Though I do not think that makes a difference. – Rohan Nov 1 '15 at 20:32
  • Does your version of Gparted provide the ability to move a partition? That would be on the Kali Linux, of course. – Thomas Dickey Nov 1 '15 at 20:44
  • Yes, it does. This is my idea, but I have no experience, so please tell me if it will work. I intend to move the free space to precede my Kali Linux on /dev/sda6 rather than come after it, and then I should be able to resize my Linux Mint on /dev/sda5? – Rohan Nov 1 '15 at 20:50
  • That sounds right: adjacent partitions are (?) always adjacent numbers. You probably have to make the system in the moved partition boot again (as hinted in documentation), and then resize the filesystem using that partition. – Thomas Dickey Nov 1 '15 at 20:53
  • Hey Thomas, I just tried that and it didn't work. I am going to boot into a full live session of Gparted and experiment around without saving changes to disk until I get it. I'll post back here if I'm still unsuccessful – Rohan Nov 2 '15 at 3:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.