sata NCQ errors (Re: [Nottingham] Missing CF drive with libata...)

Martin martin at ml1.co.uk
Sat May 24 23:33:05 BST 2008


Martin wrote:
> For anyone similarly afflicted:
[---]
> The NCQ appears to fail under heavy loading, which is exactly when you
> want it to be working!
> 
> OK, so to change NCQ to be effectively disabled, you can use:
> 
> echo 1 >/sys/block/sdX/device/queue_depth
> 
> where X is your offending device.

You can add:


for s in /sys/block/sd*
do
        s="$s/device/queue_depth"
        [ -e "$s" ] && echo 1 >"$s"
done


onto the end of "/etc/rc.d/rc.local" to disable NCQ for all your sata
(and any other sd*) drives.


> Is there a better way of setting this for boot rather than doing the
> hack of adding that line onto the end of "/etc/rc.d/rc.local" (or
> whatever other startup script)?

Anyone?

That fix is a fix that is made a long way after the boot process starts...


> See also:
> 
> http://linux-ata.org/faq.html


Good luck,
Martin

-- 
----------------
Martin Lomas
martin at ml1.co.uk
----------------



More information about the Nottingham mailing list