-
Notifications
You must be signed in to change notification settings - Fork 188
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
SMART responses hanging *BOOT drives? #50
Comments
Ran some more tests in the PyPortal thread with SMART tools; they definitely lock up PORTALBOOT and not CIRCUITPY. |
Trying a few USB sticks. Most respond like this:
I'll attempt to emulate the above. A high-quality Samsung stick I have does this:
|
By the way, CIRCUITPY does this (which may not be the best):
|
@vitorio Here's a test bootloader that makes Could you try this and see if it works for you even with SMART sensing on? update-bootloader-pyportal_m4-v3.3.0-adafruit.10-1-g93c961b.uf2.zip |
For Windows users, test with Hard Disk Sentinel. It causes big issues when detecting the USB key emulation. Telling HDS to ignore USB devices fixed my issues. Related? |
Hi, @dhalbert, updated with your test bootloader, but under Linux, running On whatever is peculiar about my Windows 10 installation, the device now shows up under Disk drives in Device Manager (it didn't before), but Windows still won't mount the PORTALBOOT drive. After reinstalling the SMART driver for OSX, the PORTALBOOT drive does not appear. |
@vitorio Here's another version to try: This times out on @Ve2mrx Is the trial version of Hard Disk Sentinel good enough to provoke this problem? I can try that. |
@dhalbert Yes, but you might have to allow USB scanning in HDS. HDS will attempt to get SMART info if you plug and invoke the bootloader. I use both Metro M0 and the Feather M0 RFM69 with the same results. IIRC, the computer almost freezes. I'll try to reproduce later today. Note: The software AnyDesk (a remote control software like TeamViewer) might have an influence, too. At least, it messes with Virtual Box's USB capture. |
@dhalbert I reproduced the issue with HDS 5.40 Pro, HDS freezes until I get out of bootloader mode. UF2 bootloaders where v2.0.0 for both the Metro M0 and the Feather M0. (v3.3.0-adafruit.10 now tested, same HDS freeze) |
@Ve2mrx Would you be able to try the new trial version? Here is a Metro M0 Express version of the new trial bootloader I posted above: |
Free today: HDS Standard : https://sharewareonsale.com/s/hard-disk-sentinel-standard-sale |
@dhalbert I'll try it probably tomorrow. |
@vitorio I tried the trial version of DriveDX (v1.8.2) on both High Sierra (2010 MacBook Air) and Mojave 10.14.4 (2018 MacBook). In both cases, the program did not interfere with showing a BOOT drive on a number of versions of the UF2 bootloader, including v1.22 and v3.3.0-adafruit.10. I did a rescan from the DriveDX window after plugging the boards in. They did not show up for SMART diagnosis, but neither were they blocked. Hmm. |
@Ve2mrx I tried HDS 5.30 and 5.40 with the test bootloader above: it still hangs. I'll need to take a USB trace to see what's going on. All these tools seem to get drive info and test for SMART capability in different ways. Various drives give bad responses to these requests in different ways: USB sticks fail in a certain way that seems tolerated by the utilities. I did something else that makes |
@dhalbert At this point, it might be useful to ping the HDS Author to this thread. In my memory, he's pretty responsive. |
@dhalbert tried your updated Sorry for being unclear. The test with $ sudo mount /dev/sdd p
$ ls p
CURRENT.UF2 INDEX.HTM INFO_UF2.TXT
$ sudo skdump /dev/sdd
Device: sat12:/dev/sdd
Type: 12 Byte SCSI ATA SAT Passthru
Size: 7 MiB
Awake: Operation not supported
ATA SMART not supported.
$ md5sum p/INFO_UF2.TXT
(no response until I unplug and replug the device) I can do this from the CIRCUITPY drive. On my Mac, I don't get the PORTALBOOT drive still. If you installed DriveDx, you also have to install the third-party USB driver to get it to query for SMART on external disks. It should prompt you for it within the app once you plug in an external USB disk. If it doesn't, it's also available on their site here: https://binaryfruit.com/drivedx/usb-drive-support Just FYI, there's also another fork of the same driver available here, although it's not the one I'm using: https://github.com/RJVB/OS-X-SAT-SMART-Driver |
@vitorio I was able to read from the drive after |
Not sure if this is the right place to put this, but:
There seems to be some evidence that querying the *BOOT drives (and however that's exposed by firmware) for SMART responses hangs them up?
I dunno if that's something that gets fixed by Adafruit or upstream, but there's two data points for it.
Thanks!
The text was updated successfully, but these errors were encountered: