1

I need to extend an ex4 partition, I have 43 GB of free space to the right of the it. I am booted to another drive.

What I tried:

  • using EaseUS partition master

  • using MiniTool partition master

  • using DiskGenius

  • using GParted from a live OS on a USB stick.

All failed/refused to give the option to extend the partition.

Seems like DiskGenius on Windows 10 booted from another disk is my best attempt and gives the most information. When I resize the partition it gives this

Probably the most useful bit of info is this screenshot showing the layout of the disk.enter image description here

Logical(5) is what I want to extend and the free space is to the right of it.

2 Answers2

0

Logical(5) is a logical partition inside an extended partition, while the free space lies outside of that extended partition.

You need to resize Extended Partition to include the free space first, then resize Logical(5).

harrymc
  • 455,459
  • 31
  • 526
  • 924
-3

In the normal interface, Linux's fdisk applies alignment constraints to partitions. Which constraints depends on the version of fdisk. Older versions defaulted to cylinder alignment, for compatibility with older operating systems that were incompatible with LBA. When LBA was a little over two decades old, fdisk stopped catering for such ancient systems by default, and instead switched to 1MB alignment, which gives better performance on modern storage media.

In current versions of fdisk, to create partitions with any sector (512B) alignment, you need to first create the partition with the desired end point, then go to the expert menu (x) and use the command b to adjust the beginning of the partition (this changes the partition size, not where it ends). It does seem rather clumsy.

Source

Elmo
  • 1,052
  • 7
  • 13
  • Source: https://unix.stackexchange.com/questions/320201/how-to-extend-logical-extended-partition-with-fdisk/320378#320378 – tomer zeitune Jul 17 '19 at 10:09
  • 1
    No instructions given just irrelevant off-topic information, answer is a copy paste from another question without giving credit to the original author – tomer zeitune Jul 17 '19 at 10:23
  • @tomerzeitune I did mention the source ...didn't I ?? – Elmo Jul 17 '19 at 10:26
  • @Kamil Maciorowski Thankyou...I don't know how to make the link go directly to the answer instead of the page ....how to do it ?? – Elmo Jul 17 '19 at 10:31
  • I edited the answer so it's clear you're *quoting* from elsewhere. Still this is not useful here. It *might* be *somewhat* useful if the OP was trying to extend to the *left*, but in the current situation it's not. – Kamil Maciorowski Jul 17 '19 at 10:31
  • @Emiley no you did not. – tomer zeitune Jul 17 '19 at 10:33
  • Click "edit" under the post (or here: [edit]) and see how it's done. You can do this with any question or answer. You can practice without saving changes. – Kamil Maciorowski Jul 17 '19 at 10:33
  • Oh, the link itself is from the "share" link. Each question/answer has its own "share" button under it. – Kamil Maciorowski Jul 17 '19 at 10:37