Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4 MB is the new 1 MB is the new 64 sectors #38

Merged
merged 1 commit into from Apr 24, 2015
Merged

4 MB is the new 1 MB is the new 64 sectors #38

merged 1 commit into from Apr 24, 2015

Conversation

bconway
Copy link
Contributor

@bconway bconway commented Apr 17, 2015

  • Align disk/image to 4 MiB for mkboot and growimg, taking into account sector size. This is especially important for cheap flash (see background).
  • Ramdisk and openbsd.vnd remain untouched with 0 and 64 offsets, respectively.
  • Tested mkboot on i386 and amd64.
  • Personal note: I've been using this on manually-configured OpenBSD and Linux for years without issue.

Background:

- Align disk/image to 4 MiB for mkboot and growimg, taking into account sector size. This is especially important for cheap flash (see background).
- Ramdisk and openbsd.vnd remain untouched with 0 and 64 offsets, respectively.
- Tested mkboot on i386 and amd64.
- Personal note: I've been using this on manually-configured OpenBSD and Linux for years without issue.

Background:
- https://lwn.net/Articles/428584/ (see Partitioning, Future work, and comments re: alignment)
- https://lists.gnu.org/archive/html/bug-parted/2013-01/msg00000.html
@bconway
Copy link
Contributor Author

bconway commented Apr 24, 2015

Respun for mkboot and growimg. I don't use growimg and don't have available hardware to test it right now, but it seems likely to be correct.

yellowman added a commit that referenced this pull request Apr 24, 2015
4 MB is the new 1 MB is the new 64 sectors
@yellowman yellowman merged commit bed87c6 into yellowman:master Apr 24, 2015
@bconway bconway deleted the align_4mb_for_cheap_flash branch April 25, 2015 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants