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

FreeNAS-11.2 BETA2 causes Blue Screen on Windows 7 when plugging/refreshing the USB drive #1188

Closed
9 of 10 tasks
WeatherWX opened this issue Aug 5, 2018 · 19 comments
Closed
9 of 10 tasks
Assignees

Comments

@WeatherWX
Copy link

WeatherWX commented Aug 5, 2018

Checklist

  • I looked at https://github.com/pbatard/rufus/wiki/FAQ to see if my question has already been answered.
  • I performed a search in the issue tracker for similar issues using keywords relevant to my problem, such as the error message I got from the log.
  • I clicked the "Log" button in Rufus (last small blue button before START) and copy/pasted the log into the line that says <FULL LOG> below.
  • The log I am copying is the FULL log, starting with the line Rufus version: x.y.z - I have NOT removed any part of it.

Additionally (if applicable):

  • I ran a bad blocks check, by clicking Show advanced format options then Check device for bad blocks, and confirmed that my USB is not defective.
  • I also tried one or more of the following:
    • Using a different USB drive.
    • Plugging the USB into a different port.
    • Running Rufus on a different computer.
  • If using an image, I clicked on the (✓) button to compute the MD5, SHA1 and SHA256 checksums, which are therefore present in the log I copied. I confirmed, by performing an internet search, that these values match the ones from the official image.

Issue description

While trying to put FreeNAS 11.2 BETA 2 on a SanDisk Cruzer Blad 8GB Flash Drive gives me a Blue Screen error called APC_INDEX_MISMATCH, while I have factory reset my system, the problem still persists on ONLY this iso. I've tested CentOS and XCP-ng on the same USB Drive. Below is a log tested on a different computer and the log has the following output. Note I couldn't retrive the log for the system it crashed. I've also taken the issue to Microsoft Community which can be found here to see if this issue can be resolved.

Any Thoughts?

Log

Rufus version: 3.1.1320 (Portable)
Windows version: Windows 10 64-bit (Build 14393)
Syslinux versions: 4.07/2013-07-25, 6.03/2014-10-06
Grub versions: 0.4.6a, 2.02
System locale ID: 0x0409
Will use default UI locale 0x0409
SetLGP: Successfully set NoDriveTypeAutorun policy to 0x0000009E
Localization set to 'en-US'
Found USB 2.0 device 'SanDisk Cruzer Blade USB Device' (0781:5567)
1 device found
No volume information for drive 0x81
Disk type: Removable, Disk size: 7.8GB, Sector size: 512 bytes
Cylinders: 954, Tracks per cylinder: 255, Sectors per track: 63
Partition type: MBR, NB Partitions: 1
Disk ID: 0x00000000
Drive has an unknown Master Boot Record
Partition 1:
  Type: GPT Protective MBR (0xee)
  Size: 639.7 MB (670780928 bytes)
  Start Sector: 1, Boot: No
Scanning image...
ISO analysis:
  Image is an ISO9660 image
Disk image analysis:
  Image has an unknown Master Boot Record
  Image is a bootable disk image
ISO label: 'FREENAS'
  Size: 636.2 MB (Projected)
  Note: File on disk is larger than reported ISO size by 300 KB...
  Has a >64 chars filename
This ISOHybrid is not compatible with any of the ISO boot methods we support
Using image: FreeNAS-11.2-BETA2.iso (639.7 MB)

Format operation started
Requesting disk access...
Opened \\.\PHYSICALDRIVE1 for exclusive write access
Requesting lock...
Will use 'D:' as volume mountpoint
Requesting lock...
Bad Blocks: Checking from block 0 to 15330303
Bad Blocks: Using offset 443 for fake device check
Bad Blocks: Writing test pattern 0xAA
Bad Blocks: Reading and comparing
Bad Blocks: Check completed, 0 bad blocks found. (0/0/0 errors)
Clearing MBR/PBR/GPT structures...
Erasing 128 sectors
Writing Image...
Drive has an unknown Master Boot Record

Found USB 2.0 device 'SanDisk Cruzer Blade USB Device' (0781:5567)
1 device found
No volume information for drive 0x81
Disk type: Removable, Disk size: 7.8GB, Sector size: 512 bytes
Cylinders: 954, Tracks per cylinder: 255, Sectors per track: 63
Partition type: MBR, NB Partitions: 1
Disk ID: 0x00000000
Drive has an unknown Master Boot Record
Partition 1:
  Type: GPT Protective MBR (0xee)
  Size: 639.7 MB (670780928 bytes)
  Start Sector: 1, Boot: No
@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

I'll try to test this when I get a chance, but can you please test what happens when you win32diskimager on Windows to write that image?

I strongly doubt this has anything to do with Rufus and even less with something that we can fix as, as the image writing process is exceedingly basic and straightforward: write every block of data as is.

If Windows parses the data we send to the drive (could be a Windows Defender issue), and then crashes, whereas all we are doing, really, is send it sequentially, there really doesn't exist much of anything to fix.

Also, is there a reason why you used the .iso (which, because it has to be crafted as a hack of 2 incompatible file systems to work as an image can be problematic) instead of the .txz (which I assume is a proper DD image)? I think the .txz should be supported by Rufus, but I haven't tested it yet. What happens if you try with the .txz?

I'll see whether I can replicate the issue once I have downloaded that image.
For good measure, can you please confirm that the SHA-256 of that image is b7a628801541c111f1e56a7810bb180479d9c156540e053db2b7f8cba797d43c?

@pbatard pbatard self-assigned this Aug 5, 2018
@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

Tested on Windows 10 x64, and saw no issue:

Rufus version: 3.1.1320
Windows version: Windows 10 64-bit (Build 17134)
Syslinux versions: 4.07/2013-07-25, 6.03/2014-10-06
Grub versions: 0.4.6a, 2.02
System locale ID: 0x0809
Will use default UI locale 0x0809
SetLGP: Successfully set NoDriveTypeAutorun policy to 0x0000009E
Localization set to 'en-US'
Found USB 3.0 device 'SanDisk Extreme USB Device' (0781:5580)
1 device found
No volume information for drive 0x85
Disk type: Removable, Disk size: 32GB, Sector size: 512 bytes
Cylinders: 3818, Tracks per cylinder: 255, Sectors per track: 63
Partition type: MBR, NB Partitions: 1
Disk ID: 0xC765BBD0
Drive has an unknown Master Boot Record
Partition 1:
  Type: GPT Protective MBR (0xee)
  Size: 639.7 MB (670780928 bytes)
  Start Sector: 1, Boot: No
Scanning image...
ISO analysis:
  Image is an ISO9660 image
Disk image analysis:
  Image has an unknown Master Boot Record
  Image is a bootable disk image
ISO label: 'FREENAS'
  Size: 636.2 MB (Projected)
  Note: File on disk is larger than reported ISO size by 300 KB...
  Has a >64 chars filename
This ISOHybrid is not compatible with any of the ISO boot methods we support
Using image: FreeNAS-11.2-BETA2.iso (639.7 MB)

Computing checksum for 'D:\ISOs\FreeNAS-11.2-BETA2.iso'...
  MD5:	 d042eec458f92bfe325905ecccecc3eb
  SHA1:	 328553b26761012ebd2fcf87a607c33fc03d43c9
  SHA256: b7a628801541c111f1e56a7810bb180479d9c156540e053db2b7f8cba797d43c

Format operation started
Requesting disk access...
Opened \\.\PHYSICALDRIVE5 for exclusive write access
Requesting lock...
No drive letter was assigned...
Will use 'G:' as volume mountpoint
Requesting lock...
Writing Image...
Drive has an unknown Master Boot Record

Found USB 3.0 device 'SanDisk Extreme USB Device' (0781:5580)
1 device found
No volume information for drive 0x85
Disk type: Removable, Disk size: 32GB, Sector size: 512 bytes
Cylinders: 3818, Tracks per cylinder: 255, Sectors per track: 63
Partition type: MBR, NB Partitions: 1
Disk ID: 0xC765B81D
Drive has an unknown Master Boot Record
Partition 1:
  Type: GPT Protective MBR (0xee)
  Size: 639.7 MB (670780928 bytes)
  Start Sector: 1, Boot: No

I'm not sure I have a build 14393 of Windows 10 64-bit anywhere to test. Possibly this was an OS bug that Microsoft fixed in subsequent Windows 10 updates...

@WeatherWX
Copy link
Author

Hello thank you for your reply,

I forgot to mention the system affected is a Windows 7 Pro x64. I also tested on Windows 10 x64 on a laptop and got the same if not very similar result as you.

I just did the standard "find the download and flash the iso" and frankly did not find out about a ".txz" file. So ill try it when I get a chance.

And Yes I already confirmed the sha256 hash using rufus.

@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

Please try win32diskimager or any other dd-like application on that Windows 7 system, so that we can confirm that this is not related to using Rufus. I'll try to test on a Windows 7 machine too when I get a chance.

@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

Also, another thing you can try: Can you try writing to a VHD? See here for how you can create a VHD to use with Rufus. This would tell us if your issue has anything to do with sending data over the USB bus.

@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

Aha, looks like this is a pure Windows 7 issue with how it parses the USB data when you plug the drive.
I managed to get the bluescreen too on a Windows 7 32-bit machine as soon as I plugged a flash drive with that image (i.e. I didn't even have to run Rufus on that machine to make it crash, just plugging the drive did).

And the kicker is, the same behaviour happened even when using dd on Linux to create the flash drive:

dd if=/share/FreeNAS-11.2-BETA2.iso of=/dev/sdb bs=8k
81882+1 records in
81882+1 records out
670781440 bytes (671 MB, 640 MiB) copied, 32.617 s, 20.6 MB/s

As soon as I plug the drive created under Linux using dd, my Windows 7 will crash.

Isn't that nice? You have found a way to make any Windows 7 instantly bluescreen, just by plugging a USB Flash drive... 😅

Now, to be fair, I was aware of a similar issue affecting Windows XP and Windows Vista with some *BSD images (on which FreeNAS is based). But I had yet to see a similar problem for Windows 7.

So:

  1. This is a pure Microsoft issue
  2. I suspect Microsoft is aware of that issue (which is rather major) and has fixed it in later version of Windows. But they did not bother doing the same for Windows 7 (maybe because this requires underlying changes to enumeration that are difficult to retrofit there).

@pbatard pbatard changed the title RUFUS causes Blue Screen Error APC_INDEX_MISMATCH while trying to install FreeNAS FreeNAS-11.2 BETA2 causes Blue Screen on Windows 7 when plugging/refreshing the USB drive Aug 5, 2018
@Ibuprophen
Copy link

It's been quite a while since I ever saw the BSOD...

Did you see if Refreshing the USB Stack Drivers resolves your BSOD issue?

If your interested, I attached a txt file (to print as well if needed) with some simple (hopefully understandable) steps on how to do this.

Refreshing-USB-Stack-Driver.txt

Good Luck!

~Ibuprophen

@WeatherWX
Copy link
Author

Well isn't that interesting...? Anyways, thank y'all for the replies however, the Refreshing USB Stack Driver did not help, I think I may have done it wrong but i proceed to step 2 and still didn't work. I also tried using Win32Disk and a crash happened with that software too.

I also contacted Microsoft Support, of course they were clueless and I have no way of reporting this besides the forum.

Thanks for the help but I'm not sure if there's anything more to do. Thoughts appreciated though! =)

@Ibuprophen
Copy link

Do you have any driver conflicts within your Device Manager (via your Control Panel)?

~Ibuprophen

@WeatherWX
Copy link
Author

WeatherWX commented Aug 5, 2018

Not seeing any at the moment.

@Ibuprophen
Copy link

Did you try to obtain any updated drivers from the manufacturer of the USB/Chipset?

~Ibuprophen

@pbatard
Copy link
Owner

pbatard commented Aug 5, 2018

@ibuprophen1, I'd like to remind you that I too am seeing the BSOD on a vanilla Windows 7 system, with only USB 2.0 (hence using native Microsoft USB drivers), and, from what I suspect, the issue most likely has to do with Windows trying to parse a partition table that it doesn't know how to properly process, during a kernel-mode operation. This is unlikely to have anything to do with the USB stack.

I've seen Windows (10 for that matter) declare an USB Flash Drive as completely inaccessible, no matter what you try (reboot, etc.) on account of a GPT table being set in a manner that Microsoft probably didn't expect (whereas Linux had no issue with the same drive, and, unlike Windows, could repartition/reformat it without any issue), so I have some doubts about the ability of Windows to properly handle all cases of partitioning. Instead, it would seem to me like Microsoft are patching their poor handling of partition tables as they go along, which would explain why Windows 7 crashes.

At any rate, if you want to take the matter further up, and considering that we have established that this has nothing to do with Rufus, I will encourage you to do so on a Microsoft forum, as this is a pure Windows problem.

As such, I will close this issue.

@pbatard pbatard closed this as completed Aug 5, 2018
@Ibuprophen
Copy link

@pbatard, understood!

I too had seen this about a year ago +/- on the same Windows 7 build and had cleared it up within a few days involving both the GPT and MBR as well as an incompatible driver that Windows had defaulted to.

My apologies for this and no further comments regarding this issue will be made.

~Ibuprophen

@WeatherWX
Copy link
Author

@ibuprophen1 @pbatard Thank you for the help though. Really appreciate it!

@WeatherWX
Copy link
Author

I just wanted to update @pbatard and @ibuprophen1 that after downgrading to FreeNAS' "STORAGE ONLY CONFIGURATIONS" or FreeNAS 11.1 works using Rufus. Sorry I didn't test this out earlier but that doesn't crash the system.

@Jubliano
Copy link

I have the same issue and now when I put the usb stick into any windows 7 devices I get the BSOD and a win auto reboot. If I try to boot from the USB it flashes op something (too quick to read) and reboots!! Probably I have given up on Free NAS (I'll set up the PC on a Lan and use team viewer for remote access) BUT how the hell do I recover my USB stick since every time I insert it in win 7 device I get the BSOD??

@Jubliano
Copy link

ok so I have now partially answered my own question. USB recovered as follows: loaded old copy of Zorin (linux derivative) from another mem stick and the original stick was then readable (which tends to suggest it is a win 7 issue)
and I could format it and recover the drive. Out of interest could someone tell me what is wrong (or what I did wrong) with the way the memory stick is configured (see attachment). Maybe that's why it would not boot from it anyway
20180813_134124

@pbatard
Copy link
Owner

pbatard commented Aug 13, 2018

could someone tell me what is wrong with the way the memory stick is configured

Sorry if that sounds a bit harsh, but you shouldn't piggyback on an issue opened with regards to a specific application (Rufus) to ask support for software that is unrelated to that application (FreeNAS), especially if that issue is closed.

If you have a query on how to configure a bootable thumb drive for FreeNAS, then please ask that question on the FreeNAS forums, as it will be A LOT more helpful for others who may have the same question if you do so there (as very few FreeNAS people are expected to check closed issues on unrelated software to find out if their bootable drive is configured properly).

Thanks.

@lock
Copy link

lock bot commented Apr 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@lock lock bot locked and limited conversation to collaborators Apr 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants