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

32GB / 28.9 GiB Flash Drive rejected by installer as too small #5345

Closed
ginto37 opened this issue Sep 26, 2019 · 6 comments
Closed

32GB / 28.9 GiB Flash Drive rejected by installer as too small #5345

ginto37 opened this issue Sep 26, 2019 · 6 comments
Labels
C: installer eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.

Comments

@ginto37
Copy link

ginto37 commented Sep 26, 2019

Qubes OS version
The version of Qubes OS you're using (e.g., R4.0), available via the command cat /etc/qubes-release in a dom0 terminal.

R4.0.1 Installer (checksums and signature confirmed, installer verified via Grub menu tool)

Affected component(s) or functionality
The component or functionality of Qubes OS that is not working as expected.

Installation Destination dialogue

Brief summary
A clear and concise summary of the bug.

The installer for R4.0.1 rejects my 32GB / 28.9 GiB flash drive as too small, saying it needs an extra 1.55 GiB of space. This is at default settings and after reclaiming all possible drive space to produce a completely empty drive. All the official documentation indicates that 32GB should be sufficient.

To Reproduce
Steps to reproduce the behavior:

All options were left at their defaults unless specified

  1. Boot Installer, click Done to confirm default language and location
    options and reach the Installation Summary screen.

  2. Enter the "Installation Destination" screen by following the
    on-screen prompts.

  3. Select the 32GB flash drive and de-select all others. This screen
    reports the drive space in Base-2, so 28.9 GiB for the 32GB flash drive.

  4. Click Done to reach the Installation Options window. It reports:

Your current Qubes software selection requires 22.91GiB, including
19.39GiB for software and 3.52 GiB for swap space.

  1. On the Reclaim Disk Space screen, re-claim all drive
    space with the Delete All button, then click Done.

Expected behavior
A clear and concise description of what you expected to happen.

  1. This should bring us back to the Installation Summary screen, where we can now begin the installation to the flash drive

Actual behavior
What actually happened (instead of what you expected to happen).

It all goes wrong at the following steps:

  1. On the Reclaim Disk Space screen, it now reports:

Installation requires a total of 24.23GiB for system data.

Now we need 24.32 GiB instead of 22.91 GiB - an increase
of 1.41 GiB. We still have enough space though, so we re-claim all drive
space with the Delete All button, then click Done.

  1. This brings us back to the Installation Summary screen, where a
    warning banner at the foot of the screen reports:

Not enough space in file systems for the current software selection.
An additional 1.55 GiB is needed.

Now we're 1.55 GiB short, so the total install is 30.45 GiB (32.7GB) -
an increase of 6.13 GiB from the Reclaim Disk Space Screen, and now we
can't install to the 32GB flash drive.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

I've just noticed that 28.9 GiB translates to 31 GB, not 32 GB (29.8 GiB is 32GB), and further checking shows that each of the identical branded 32GB drives I own are reported as 31 GB, not 32 GB, in various OSes. However, I'm not sure this matters in this context because the reported shortfall of 1.55 GiB translates to 1.66 GB, so 32 GB would still prove too small. This also doesn't explain the ever-increasing storage demands from one step to the next.

Solutions you've tried
If applicable, any solutions or workarounds you've already tried.

I repeated the process over several boots of the installer with no change.
I tried disabling Encryption on the Installation Destination screen, but
the error remains.
I tried using the "I will configure partitioning" option to reach the
Manual Partitioning screen. I used the "click here to create
[partitions] automatically" option, and it successfully creates the
root, swap and EFI partitions with 21.26 GiB, 2.89 GiB and 500 MiB
respectively. On completion, it reports remaining space as 1.97MiB, so
that looks positive. But when I save the settings and return to the
Installation Summary screen, the error message appears, and I'm
1.55 GiB short again.

Relevant documentation you've consulted
A list of links to the Qubes documentation (or other relevant software documentation) pages you have already consulted.

Related, non-duplicate issues
A list of links to other bug reports, feature requests, or tasks in the qubes-issues tracker (or "none" if you didn't find any). Do not describe any other unreported bugs, features, or tasks here.

None

@ginto37 ginto37 added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug labels Sep 26, 2019
@andrewdavidwong andrewdavidwong added this to the Release 4.0 updates milestone Sep 26, 2019
@andrewdavidwong
Copy link
Member

@marmarek, if this is now expected, should we update the documentation to increase the required storage size?

@marmarek
Copy link
Member

marmarek commented Sep 26, 2019

Looks like a bug in disk space calculation. I've just tried test install with 30GB and I see in the log:

anaconda: fs space: 18.42 GiB  needed: 19.58 GiB

Then, I've deselected Whonix and it was enough to fit.

Strange thing is, the final partition layout is:

  • 1GB for /boot
  • 28GB for LUKS+LVM

Looks fine for now, but when looking into LVM, there is:

  • 3GB swap (wanted to be ~6GB, but installer capped it at 10% of disk size)
  • 21.66GB for thin pool, including root
  • 4.3GB unallocated

I think the last point is manifestation of those differences, but I have no idea (yet) why it happened. Maybe it's related to space reclaim wizard? Have you tried erasing target flash drive first and the starting the installation?

@ginto37
Copy link
Author

ginto37 commented Sep 28, 2019 via email

@marmarek
Copy link
Member

I've found out the installer (blivet library to be specific) try to reserve 20% of thin pool size for data/metadata grow later. Here is commit adding this functionality. If I understand correctly, this is to mitigate issues like #3243 .
If that's the case and indeed the space is correctly reserved, we may want to use this, instead of increasing default metadata size.
But the wrong free space reporting is an issue anyway.

@marmarek
Copy link
Member

Besides the size reporting issue, it does appear that the default qubes installation require more space than early 4.0 release candidates, specifically at least 32GiB, not 32GB. This isn't really practical for 32 drivemaker's GB usb sticks that aren't even 32GB, but we should clear this in the requirements anyway.

marmarek added a commit to QubesOS/qubes-doc that referenced this issue Oct 25, 2019
marmarek added a commit to marmarek/qubes-installer-qubes-os that referenced this issue Oct 25, 2019
Blivet (storage library) reserve 20% of volume group space if there is
thin pool created. Include it in required space reporting.

QubesOS/qubes-issues#5345
@andrewdavidwong andrewdavidwong added the eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) label Aug 5, 2023
@github-actions
Copy link

github-actions bot commented Aug 5, 2023

This issue is being closed because:

If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment.
(For example, if a bug still affects Qubes OS 4.1, then the comment "Affects 4.1" will suffice.)

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: installer eol-4.0 Closed because Qubes 4.0 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information.
Projects
None yet
Development

No branches or pull requests

3 participants