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.
-
On an AF disk with a 4096 byte physical sector size, partitions should start aligned to this size. I.e. the starting 512-byte sector number should be a multiple of eight. It's as simple as that.– Johan MyréenCommented Feb 2, 2018 at 18:00
-
Right, and as I pointed out when a multiple of 8 gets used, like a starting point of 2048s (like what I got with gParted), then the parted utility sees the disk as not optimal aligned, but only minimum aligned, and mkswap complains that my swap volume within the LVM is misaligned whether I stick with the 2048s or conform to parted's bizarre demand for a 65535s interval for optimal alignment. Just look at the sector parameters that the system drew. How can I even trust that those parameters are being correctly reported in the first place?– gluonmanCommented Feb 2, 2018 at 18:20
-
My internal drive is an identically sized AF drive. The only difference is that it doesn't have a weird optimal IO size that warrants a sector interval outside the discrete space. It's optimal IO size is the same as it's minimum IO size of 4096, and it starts at 2048s, and parted thinks its partitions are optimal aligned. Hence, I'm wondering if the only reason my utilities are complaining about misalignments, and that parted wants me to use 65535, is because the optimal IO size is a wrong number. I think that's my best hypothesis atm. But I just want to be sure I'm actually optimized.– gluonmanCommented Feb 2, 2018 at 18:25
-
1The "optimal IO size" is just a hint of some sort, and 65535 is definitely not optimal to use as the number of 512 byte sectors to start a partition on. The GParted manual says: "Use MiB alignment for modern operating systems."– Johan MyréenCommented Feb 2, 2018 at 18:38
-
Okay. It's becoming established in my head that parted is just plain wrong in what it thinks is optimal (on both my Fedora and my Lubuntu), because the optimal IO size "hint" coming from this particular drive is throwing it off. Would you agree? I mean, I knew the numbers were weird, but I've trusted parted for years, and this is honestly the first time I've ever seen it throw alignment issues at me. So I should probably just go ahead and stick with 2048s intervals and ignore parted's complaints (and mkswap's, for that matter), right?– gluonmanCommented Feb 2, 2018 at 18:45
|
Show 5 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_`
- quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>
[example](https://example.com)
<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. windows-7), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you