`No space left on device` for UEFI image with large kernel image, fixed by increasing FAT padding
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- operating-systems
Research direction
Start at fat.rs:29 and reproduce UEFI image creation with a 600MiB+ kernel image. Investigate how FAT clusters or fragmentation affect the required padding and rounding, then verify that the heuristic avoids the No space left on device failure without always wasting an extra MiB.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 241
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/bootloader
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rust-osdev/bootloader#587 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rust-osdev/bootloader#583 · 3 comments ·
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 67/100
rust-osdev/bootloader#581 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rust-osdev/bootloader#573 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
rust-osdev/bootloader#555 · 2 comments ·
All issues in rust-osdev/bootloader
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·