Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Units can be other than sectors, like size, see the reduce example here. I don't know if you define the end sector or sectors from the start, I guess the latter. Commented May 6, 2022 at 12:38
  • @thanasisp have a look at the man page (man7.org/linux/man-pages/man8/sfdisk.8.html), the unit option is deprecated and states that only sector is accepted. I don't think it's clear, if is just the unit option that is deprecated or the whole usage of the size inside the commands. Anyway I was not able to resize correctly until i moved to the sector size. For the end sector yes, it's the number of sectors from the start (i'll modify the answer) Commented May 6, 2022 at 12:46
  • If that worked for you, then it seems good (also there was a trailing comma into the question, I am sure you tried some size without it). Commented May 6, 2022 at 13:07