![]() Just as a sanity check, I just tried it in the Mac's USB port again, and although the driver is different now (AppleT8103USBXHCI) I see the same behavior with my looping on pmset -g script, where the ports go from USEABLE to None briefly, then back to USEABLE, exactly when the drive spins down and back up. A hard drive that has stopped spinning could be down to a multitude of reasons, but the most common are a faulty PCB board, head crash or motor failure. I had been running this with the drive plugged into a Thunderbolt dock, but I saw the same behavior with it plugged directly into a USB-C port on the MacBook. Hence me constantly hearing the drive spin down then back up almost immediately. This group is a place to post questions and bug reports regarding Keep Drive Spinning, a Mac app to prevent hard drives from going into low-power mode. Within seconds though, they return to normal. So for whatever reason, those USB ports go from "USEABLE" to "None" state, causing the drive to spin down. And even if I could, it would return /dev/sdX2, where X is whatever letter it happens to be and 2 is the only usable partition. I'm not sure if this is the correct usage of skip=$RANDOM to read from a random block to prevent reading from cache.Īlso, how can I make sure I target the correct drive persistently across several boot-ups or other orders of plugging in other devices, rather than targeting whatever ends up being /dev/sdc? I'm thinking something like dd if=(findmnt -rn -S UUID=number_from_blkid -o SOURCE) of/dev/null count=1 skip=$RANDOMīut I don't know how to nest the return of the parenthetical statement into the outer statement. ![]() I don't know if this info is relevant, but I've edited the crontab several times, and in each time, it suggested to save in a different file by default, which I followed. Normally this can be controlled using the Energy Saver preference pane in System Preferences, and that should be your first resort in dealing with the problem, rather than this or any other third party software. Yes, I did check whether the drive is at /dev/sdc. Keep Drive Spinning ensures that a connected drive never goes into low-power mode. This spins up the drive: sudo dd if=/dev/sdc of=/dev/null count=1 skip=$RANDOMīut when I put the same thing in crontab via sudo crontab -eĪnd * * * * * dd if=/dev/sdc of=/dev/null count=1 skip=$RANDOM I don't see any way to adjust APM through hdparm, so I'm assuming it's limited by the firmware of the dock. I want to prevent my hard drive, an internal drive externally attached via USB dock, from spinning down.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |