[Eisfair] SATA-Modus auf 1.5GBit/s festlegen - wie?

Stefan Puschek stefan.puschek at t-online.de
Fr Dez 29 10:54:37 CET 2017


Hallo Tom,
...
>> Ich habe nach Anleitung im wiki die initrd ausgepackt, im init-Skript 
>> die Zeile die libata lädt um force="1.5G" ergänzt, die initrd neu 
>> gebaut, lilo nicht vergessen - reboot
>> Nun wird die HDD nur noch mit 1.5G angebunden - also stimmt mein 
>> Parameter, Schreib- und lese-test läuft gerade...
>> Wie und wo muss ich nun meinen Parameter (force=1.5G) einbauen (im 
>> rootfs oder in die initrd?), damit er auch bei einem zukünftigen 
>> Kernel-Update erhalten bleibt?
> 
> Das funktioniert so nicht. Dem eiskernel-Paket ist es egal, welche 
> Parameter in einer initramfs mitgegeben werden. Das Einzige, was 
> erhalten bleibt, ist die lilo-Kommandozeile mit ihren Parametern. Hier 
> die Dokumentation für libata.force in unserem Kernel:
> 
> 
>      libata.force=    [LIBATA] Force configurations.  The format is comma
>              separated list of "[ID:]VAL" where ID is
>              PORT[.DEVICE].  PORT and DEVICE are decimal numbers
>              matching port, link or device.  Basically, it matches
>              the ATA ID string printed on console by libata.  If
>              the whole ID part is omitted, the last PORT and DEVICE
>              values are used.  If ID hasn't been specified yet, the
>              configuration applies to all ports, links and devices.
> 
>              If only DEVICE is omitted, the parameter applies to
>              the port and all links and devices behind it.  DEVICE
>              number of 0 either selects the first device or the
>              first fan-out link behind PMP device.  It does not
>              select the host link.  DEVICE number of 15 selects the
>              host link and device attached to it.
> 
>              The VAL specifies the configuration to force.  As long
>              as there's no ambiguity shortcut notation is allowed.
>              For example, both 1.5 and 1.5G would work for 1.5Gbps.
>              The following configurations can be forced.
> 
>              * Cable type: 40c, 80c, short40c, unk, ign or sata.
>                Any ID with matching PORT is used.
> 
>              * SATA link speed limit: 1.5Gbps or 3.0Gbps.
> 
>              * Transfer mode: pio[0-7], mwdma[0-4] and udma[0-7].
>                udma[/][16,25,33,44,66,100,133] notation is also
>                allowed.
> 
>              * [no]ncq: Turn on or off NCQ.
> 
>              * nohrst, nosrst, norst: suppress hard, soft
>                            and both resets.
> 
>              * rstonce: only attempt one reset during
>                hot-unplug link recovery
> 
>              * dump_id: dump IDENTIFY data.
> 
>              * atapi_dmadir: Enable ATAPI DMADIR bridge support
> 
>              * disable: Disable this device.
> 
>              If there are multiple matching configurations changing
>              the same attribute, the last one is used.
> 
genau das hatte ich schon probiert: in /etc/lilo.conf an die Zeile
append = "raid=noautodetect net.ifnames=0"
den Parameter "libata.force=1.5G" angehängt, lilo aufgerufen, reboot

nun finde ich in /proc/cmdline den neuen Parameter - aber er bewirkt 
leider GARNICHTS - laut smartctl -a <device> immernoch 3.0G

hast Du eine Idee warum das so nicht geht - oder was mache ich dabei falsch?

Groetjes
Stefan


Mehr Informationen über die Mailingliste Eisfair