> > The problem here doesn't happen once after disabling NCQ by > > "hw.wd2.use_ncq=0" in /etc/sysctl.conf. > > Excerpt from Simon Burge: > > > For now, I'm running with this in /etc/rc.d/sysctl0 (should be run > > before fsck of /): > > Maybe this sysctl has to be in place from the outset, before user gets to the > login prompt?
sysctl.conf(5) is handled by /etc/rc.d/sysctl, after /etc/rc.d/fsck is done. If the SSD firmware NCQ bugs are triggered during fsck(8), sysctl.conf setting doesn't help. That's all. > So I appended to /etc/sysctl.conf for NetBSD 8.99.51 amd64 and i386 > hw.wd1.use_ncq=0 > and rebooted to make the change take effect. > > Even so, it can take many hours to several days for the hard drive > crash to occur, so it is too early to see if this will work on a > Western Digital Green hard drive. I'm not sure if there is any evidence that says certain WD drives have bugs around NCQ functions. --- Izumi Tsutsui