You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider relaxing installation medium validation check to accommodate Windows #2051
C: installerThis issue pertains to the Qubes OS installer.P: majorPriority: major. Between "default" and "critical" in severity.R: upstream issueResolution: This issue pertains to software that the Qubes OS Project does not develop or control.affects-4.3This issue affects Qubes OS 4.3.r3.2-dom0-stable
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.
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.
Reacted by Navin Francis Shajan, fredgido, Vlastimil Ovčáčík and Nathan Fish
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)?
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.
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: 0C0000001CBCC95B3A575023
It's pretty clear that 0x0000000C (little endian) is the size of the payload, and with 3A575023 spelling :WP# which is probably an ASCII marker for "Windows Phone", the only actual data we may be concerned about is: 1CBCC95B
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 1CBCC95B as well as 5BC9BC1C, 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.
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.
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...
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.
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).
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.
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.
C: installerThis issue pertains to the Qubes OS installer.P: majorPriority: major. Between "default" and "critical" in severity.R: upstream issueResolution: This issue pertains to software that the Qubes OS Project does not develop or control.affects-4.3This issue affects Qubes OS 4.3.r3.2-dom0-stable
Activity
Track #2051
pbatard commentedon Jun 7, 2016
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 calledIndexerVolumeGuid.So the problem is that, after a Windows user writes the Qubes image in
ddmode, 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:
System Volume Information\IndexerVolumeGuidwhen mastering the image.IndexerVolumeGuidbasically 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 theSystem 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.marmarek commentedon Jun 7, 2016
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)?
pbatard commentedon Jun 7, 2016
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.
I would think so. I'll be happy to test if you have an image that you want to check.
marmarek commentedon Jun 7, 2016
What
WPSettings.datdoes?lorax: add "System Volume Information" to ESP image
pbatard commentedon Jun 7, 2016
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.datthat you got from the.zip, which is what I'd advocate.Looking at the actual content of the file, we see that we have:
0C0000001CBCC95B3A575023It's pretty clear that
0x0000000C(little endian) is the size of the payload, and with3A575023spelling:WP#which is probably an ASCII marker for "Windows Phone", the only actual data we may be concerned about is:1CBCC95BSo 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-B357and the disk ID is78285DAEso they don't seem to be linked.For good measure I also searched the ISOHybrid for occurrences of
1CBCC95Bas well as5BC9BC1C, and while I found a couple, those were way past the ESP, so they're unlikely to be whatWPSettings.datis referencing.Right now, I have recreated a Qubes USB drive, and am waiting for the
WPSettings.datto be created on that drive again, to see if there is a difference in payload. I'll keep you posted.pbatard commentedon Jun 7, 2016
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.lorax: add "System Volume Information" to ESP image
Untrack #2051 (completed)
marmarek commentedon Jun 8, 2016
@pbatard take a look at https://ftp.qubes-os.org/~marmarek/Qubes-DVD-x86_64-20160607.iso (signature)
14 remaining items
pbatard commentedon Aug 15, 2016
I'd think that creating a
WPSettings.datfile with0C 00 00 00 00 00 00 00 00 00 00 00as 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
IndexerVolumeGuidas 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...
marmarek commentedon Aug 15, 2016
Is it possible to mark that FAT as read only (in some metadata)?
marmarek commentedon Aug 16, 2016
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.pbatard commentedon Aug 16, 2016
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
touchidea might work...github-actions commentedon Jan 16, 2026
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.
ben-grande commentedon Jan 16, 2026
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
I don't think this is actionable on Qubes side.
pbatard/rufus#1168
Upstream issue closed due to inactivity.