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.
- Regarding using of "hdparm --set-sector-size..." - is this permanent setting? I mean is it enough to do this only once and even after the reboot the logical sector size will be as I set before reboot?user2699113– user26991132020-01-25 07:39:59 +00:00Commented Jan 25, 2020 at 7:39
- 1I haven't personally tested this, but I would very much expect changing the logical sector size to be a persistent setting, as it makes a pretty fundamental change to how the data is accessed. But that is one of the reasons why I'd recommend using a vendor-specific tool for that job, if one is available: if a particular disk model needs something special to make the setting persist, a vendor-specific tool would "know" for sure how to do it right.telcoM– telcoM2020-01-25 09:21:37 +00:00Commented Jan 25, 2020 at 9:21
- Finally someone that answers how to do this in a NVMe disk! THANKS A LOT!TanisDLJ– TanisDLJ2020-07-22 10:50:46 +00:00Commented Jul 22, 2020 at 10:50
- I wonder if it's such a good thing to switch to 4Kn sectors. Wikipedia states that individual applications may also have to be able to handle a drives sector size (see picture at en.wikipedia.org/wiki/Advanced_Format#512e). The linux kernel supports 4Kn since ca. 2010, but how can we be sure that there's no application left that's relying on 512e ? I just opened another post for this (unix.stackexchange.com/questions/761398/…). Trying to weight the pros and the cons of switching to 4Kn.ChennyStar– ChennyStar2023-11-17 10:00:36 +00:00Commented Nov 17, 2023 at 10:00
- @ChennyStar Most normal applications read files instead of raw disk blocks, and in such cases, the disk cache within the operating system can and will easily act as an "adapter". Applications that access raw disk blocks would be e.g. disk cloning and partitioning tools, or database engines with their own disk formats. The picture you referred to is oversimplified anyway: most modern OSs will entirely bypass the BIOS except during the boot process.telcoM– telcoM2023-11-17 11:20:03 +00:00Commented Nov 17, 2023 at 11:20
| Show 4 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. shell-script), 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