Skip to content

Support creating images for native 4K sector harddrives (--4kn)? #20

@ermo

Description

@ermo

When partitioning GPT disks, in the recent GPT-support commit we leave room for one default stride (64KiB) at the end of the disk. However, we do so with the assumption that one sector is always 512 bytes and that, hence, 128 sectors will equal 64KiB.

Would it make sense to be able to support creating images for modern high-capacity hard drives with native 4K sectors (firmware and physical media both use 4K sectors) by supplying a --4kn argument (implying that 512 byte sectors is the default)?

For 512e drives (firmware reports 512 bytes per sector, physical media uses 4K sectors), we already do the right thing.

See http://en.wikipedia.org/wiki/Advanced_Format for the nitty gritty details and references

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions