Skip to content

Consider relaxing installation medium validation check to accommodate Windows #2051

Closed as not planned

Description

@andrewdavidwong

From the developer of Rufus:

By the way, since that extra directory seems to throw off your disc validation, which is probably why people did report that images created with dd tools (not just Rufus) on Windows "failed", whereas it was just the disc validation being thrown off, I would suggest that you relax your validation check for this specific Windows behaviour on the ESP, else the only solution you'll be able to advise for Windows people to create Qubes bootable media that pass the check will be to use something else than Windows, so that the ESP is not automatically re-mounted in an OS that is designed to create an extra directory there.

Full message

Activity

  1. added
    C: installer
    P: major
    on Jun 6, 2016
  2. added a commit that references this issue on Jun 6, 2016
  3. pbatard commented on Jun 7, 2016

    @pbatard

    Just for clarification, as per the full message, the core of the issue is that the default modern Windows behaviour is that, whenever you plug a disk with a file system that Windows can recognize, it creates a System Volume Information\ directory on that file system, that contains a single file called IndexerVolumeGuid.

    So the problem is that, after a Windows user writes the Qubes image in dd mode, the FAT32 ESP gets mounted by Windows, which results in the creation of the directory and file above.

    Of course, this means that the FAT32 index gets modified and fails the byte comparison...

    Possible solutions include:

    • Relaxing the check for the ESP, so that it doesn't complain about extra files/directories there
    • Creating the System Volume Information\IndexerVolumeGuid when mastering the image. IndexerVolumeGuid basically contains a single GUID, in little endian Unicode (e.g. {DADDB26C-2DB4-420B-A5FE-2D9F955E5799}), which I believe is randomly generated by Windows and doesn't get modified once set. You may have to watch out for the file attributes, as the System Volume Information\ directory must be set as hidden (and both the directory and the Guid file also have the archive attribute)

    Note that there also exists a way to disable the policy that creates System Volume Information\, which is something I could try to enforce in Rufus. But I decided not to do that as changing system policies behind users' backs is bad practice (even temporarily), and of course, even if I were to do that, as soon as the user plugs their drive on a computer where the policy is not disabled, the directory will be created and the check will fail.

  4. marmarek commented on Jun 7, 2016

    @marmarek
    Member

    I think relaxing the check is really bad idea. The verification is based on byte comparison (not filesystem structure), so it isn't possible to tell whether such difference is harmless or not at this level.

    But adding that directory with a file by default sounds like a reasonable choice. Could you generate one and attach here? Just to make sure it have proper format (newlines etc). I'm not sure if I can force specific fat attribute at ISO generation time, but hope Windows will not change them when the directory+file already exists...

    Will it be enough? Or maybe just mounting the partition make some modification (like last mount time or so)?

  5. pbatard commented on Jun 7, 2016

    @pbatard

    Could you generate one and attach here?

    Sure. Here you go:
    System Volume Information.zip

    The attributes should be preserved in the archive, and I empirically confirmed that none of directory or files seemed to be updated when plugging the drive on a different computer.

    Will it be enough?

    I would think so. I'll be happy to test if you have an image that you want to check.

  6. marmarek commented on Jun 7, 2016

    @marmarek
    Member

    What WPSettings.dat does?

  7. added a commit that references this issue on Jun 7, 2016
    923bf7f
  8. pbatard commented on Jun 7, 2016

    @pbatard

    Ah shoot. That's an extra file that Windows 10 seems to create. But it isn't created right after the drive is mounted, which is why I didn't notice it.

    From what I can find, this seems to be related to Windows Phone support in Windows 10 and may be used by Microsoft to tie a removable card to a phone (or pseudo-phone since I'm not using any Windows Phone in any way shape or form, and I have no idea why the £$%^&* Microsoft thought it needed to create even more unwanted content on removable devices). Of course, its content and the reason for its creation are undocumented by Microsoft... 😠

    If you look at the timestamps, you'll see that it was created long after the Guid file was, so I'm a bit two minds about it: Either ignore it altogether, with the expectation that users will have unplugged their drive before that file gets a chance to get written. But of course, that's taking a bit of a chance, and won't help if the user replug their drive after a while. Or just duplicate the WPSettings.dat that you got from the .zip, which is what I'd advocate.

    Looking at the actual content of the file, we see that we have:
    0C 00 00 00 1C BC C9 5B 3A 57 50 23

    It's pretty clear that 0x0000000C (little endian) is the size of the payload, and with 3A 57 50 23 spelling :WP# which is probably an ASCII marker for "Windows Phone", the only actual data we may be concerned about is: 1C BC C9 5B

    So I tried to see if this could be tied to a disk or FAT32 partition serial number, but the one reported for that partition is 7D21-B357 and the disk ID is 78285DAE so they don't seem to be linked.

    For good measure I also searched the ISOHybrid for occurrences of 1C BC C9 5B as well as 5B C9 BC 1C, and while I found a couple, those were way past the ESP, so they're unlikely to be what WPSettings.dat is referencing.

    Right now, I have recreated a Qubes USB drive, and am waiting for the WPSettings.dat to be created on that drive again, to see if there is a difference in payload. I'll keep you posted.

  9. pbatard commented on Jun 7, 2016

    @pbatard

    Well, I waited more than one hour, and tried to replicate what I did before by plugging the USB on a different computer, but still no WPSettings.dat. I suggest you ignore the file then.

  10. added a commit that references this issue on Jun 7, 2016
    c9a1072
  11. added a commit that references this issue on Jun 8, 2016
  12. marmarek commented on Jun 8, 2016

    @marmarek
    Member
  13. 14 remaining items

  14. pbatard commented on Aug 15, 2016

    @pbatard

    I'd think that creating a WPSettings.dat file with 0C 00 00 00 00 00 00 00 00 00 00 00 as content would do.

    However, looking at FAT Directory Entry specs, which is the other change we're dealing with, I'm pretty sure that those two bytes are the 'Last access date' (offset 0x12).

    0x490F = 100100 1000 01111 = (1980+36=2016)/08/15 which is the date of when I created the drive.

    And indeed I can see that, when I look at the properties for IndexerVolumeGuid (even as I didn't look at its content), the access date is set to the current date.

    My guess is that Windows does access IndexerVolumeGuid as soon as the partition is mounted, and updates the access time accordingly.

    So, short of specifically designing your checksum test to ignore those specific 2 bytes, I don't think there's an easy solution for Windows users...

  15. marmarek commented on Aug 15, 2016

    @marmarek
    Member

    Is it possible to mark that FAT as read only (in some metadata)?

  16. marmarek commented on Aug 16, 2016

    @marmarek
    Member

    Alternative, crazy idea - patch checksum checker to restore original value in those 2 bytes before. Something like touch -a -r /boot/efi/EFI /boot/efi/System*/IndexerVolumeGuid.

  17. pbatard commented on Aug 16, 2016

    @pbatard

    I don't think there's a way to make FAT read-only (and, as a possible follow up in that direction, I'm pretty sure that setting a FAT file to read-only doesn't prevent the access time from being altered).

    The touch idea might work...

  18. added this to the milestone on Dec 24, 2016
  19. added
    help wanted
    on Dec 24, 2016
  20. removed this from the milestone on Aug 13, 2023
  21. added
    R: upstream issue
    affects-4.3
    on Jan 16, 2026
  22. github-actions commented on Jan 16, 2026

    @github-actions

    This issue has been closed as an "upstream issue." This means that the issue pertains to software that does not belong to the Qubes OS Project and that we do not develop or control. We suggest that you file this issue in the appropriate project's issue tracker instead. For more information, see Why don't you fix upstream bugs that affect Qubes OS?

    We respect the time and effort you have taken to file this issue, and we understand that this outcome may be unsatisfying. Please accept our sincere apologies and know that we greatly value your participation and membership in the Qubes community.

    If anyone reading this believes that this issue was closed in error or that the resolution of "upstream issue" is not accurate, please leave a comment below saying so, and we will review this issue again. For more information, see How issues get closed.

  23. ben-grande commented on Jan 16, 2026

    @ben-grande

    Relaxing validation was no done, instead, it was documented:

    https://doc.qubes-os.org/en/latest/user/downloading-installing-upgrading/installation-guide.html#windows-iso-to-usb

    Note
    Using Rufus to create the installation medium means that you won’t be able to choose the “Test this media and install Qubes OS” option mentioned in the example below. Instead, choose the “Install Qubes OS” option.

    I don't think this is actionable on Qubes side.


    pbatard/rufus#1168

    Upstream issue closed due to inactivity.

  24. removed
    help wanted
    on Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: installerP: majorR: upstream issueaffects-4.3r3.2-dom0-stable

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions