Skip to content

No space left on device for UEFI image with large kernel image, fixed by increasing FAT padding #438

Open
@fmckeogh

Description

@fmckeogh

When I try to create a UEFI image with a 600MiB+ kernel image, I sometimes get a No space left on device error.

This can be fixed by altering fat.rs:29:

---    let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 1) * MB + MB;
+++    let fat_size_padded_and_rounded = ((needed_size + 1024 * 64 - 1) / MB + 2) * MB + MB;

to increase the size by 1MiB. I believe this is an issue with clusters and/or fragmentation, but I don't want to just increase a constant and potentially waste that megabyte if I don't need to.

Is there an improved heuristic for the necessary padding and rounding?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions