Where do I make persistent GRUB setting changes?

Hello,

I tried to edit GRUB settings to get my caddie HDD SATA speed reduced.

For testing first, I found this file

/etc/default/grub.d/truenas.cfg

which has the GRUB menu timeout value but when I changed that, it reset the value and the file after restart.

So how can I raise the timeout and add a kernel value to GRUB persistantly?

I have SCALE 24.04.2.2.

I am trying to add libata.force kernel parameter to GRUB setting so certain HDDs will negotiate a lower SATA spped when used.

In some documentation it is added to /etc/default/grub as for example

GRUB_CMDLINE_LINUX=“libata.force=2:3.0Gbps”

but there is no such file in TrueNAS…