-
Notifications
You must be signed in to change notification settings - Fork 46
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
Booster does not work with drives formatted with 4K sectors #119
Comments
Here is the GPT detection logic Line 66 in f542415
|
I'll duplicate here.
This script works on all my UEFI machines. |
So I have a unit test for GPT detection Line 79 in f542415
that creates a partition table as
The test/code works fine and detects the disk correctly as GPT. The main difference I see is that your sector size is |
GPT header information is located at the first sector. But the sector might be different at different systems. How does software expect to figure out the sector size? I am looking at https://wiki.osdev.org/GPT "Protective Master Boot Record" section but it does not tell what is the size of the sector. |
and then operates with GPT sectors at logical size. It is what booster should do as well. |
ah yes, I changed sector size to 4096b by |
GPT header is located at the 1st logical sector of the disk. Up until now we assumed that a sector size is 512 bytes. But this can be changed by user [1]. Read sector size from kernel and use it to calculate the GPT header location. [1] https://wiki.archlinux.org/title/Solid_state_drive#Native_sector_size Closes #119
GPT header is located at the 1st logical sector of the disk. Up until now we assumed that a sector size is 512 bytes. But this can be changed by user [1]. Read sector size from kernel and use it to calculate the GPT header location. [1] https://wiki.archlinux.org/title/Solid_state_drive#Native_sector_size Closes #119
I was able to make a test that shows the problem with 4K logical sectors. And made a fix for this problem, it has been pushed to Please try branch |
It works! And booster realy loads system 20% faster(from button press to cursor draw). Thank you for fast fix! Unfortunately, booster does not really support the |
Thanks for the confirmation. The numbers actually say that booster is 8 times faster (initrd stage 1350 ms vs 155 ms). For the amd gpu please file a separate github issue and let's debug it there. |
Yeah, its 8 times and loader 3 times faster on paper. But I also checks real load time from power button press to cursor display with stopwatch. I tested many mkinitcpio configurations and tried to move/disable systemd services - its all gives different results in reports, but real time for mkinitcpio is always 9.6-9.8s. Where 4.1s is constant for UEFI load. |
Forking discussion off this reddit thread https://www.reddit.com/r/archlinux/comments/reqxkn/comment/hohidou/?utm_source=share&utm_medium=web2x&context=3
A user has following GPT table
For some reason it does not detect it as GPT.
cc @xshhhh
The text was updated successfully, but these errors were encountered: