Ottimizzare SSD su un Mini PC

Ho preso questo minipc che consuma quasi nulla direttamente dalla Cina. Aggiunto un SS rimosso la scheda wireless e montato il vecchio disco fisso criptato con LUKS. Prima sorpresa: la tastiera usb non viene riconosciuto nel momento del passwd per il disco, risolto con un keyfile.
Altro problemino: si riavvia quando entra in sospensione, colpa della tastiera.
Attivato rc-local.service:
$ cat /etc/rc.local
#!/bin/bash
echo XHC > /proc/acpi/wakeup
exit 0
Molti modifiche per ottimizzare il SSD ho preso da qui.
$ cat /etc/fstab
LABEL=sistemassd / ext4 rw,noatime 0 1
/dev/mapper/main-var /var ext4 rw,relatime,data=ordered 0 2
/dev/mapper/main-home /home ext4 rw,relatime,data=ordered 0 2
/dev/mapper/main-swap none swap defaults 0 0
LABEL=ssd /home/stef/musica ext4 rw,noatime 0 2
##RAMDISK##
tmpfs /home/stef/.local/tmp tmpfs mode=1777,noatime 0 0
/var e swap e /home sul disco fisso /dev/sdb, il sistema (e la musica) sul SSD /dev/sda.
$ cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
Installato profile-sync-daemon che carica i profili di browser in RAM:
$ psd p
Profile-sync-daemon v6.10 on Arch LinuxSystemd service is currently active.
Systemd resync-timer is currently active.
Overlayfs technology is currently inactive.Psd will manage the following per /home/stef/.config/psd/psd.conf:
browser/psname: chromium/chromium
owner/group id: stef/100
sync target: /home/stef/.config/chromium
tmpfs dir: /run/user/1000/stef-chromium
profile size: 27M
recovery dirs: nonebrowser/psname: firefox/firefox
owner/group id: stef/100
sync target: /home/stef/.mozilla/firefox/uj5ht294.linux
tmpfs dir: /run/user/1000/stef-firefox-uj5ht294.linux
profile size: 95M
recovery dirs: 1 <- delete with the c option dir path/size: /home/stef/.mozilla/firefox/uj5ht294.linux-backup-crashrecovery-20150922_170004 (213M) browser/psname: firefox/firefox owner/group id: stef/100 sync target: /home/stef/.mozilla/firefox/dz787k24.dev-edition-default tmpfs dir: /run/user/1000/stef-firefox-dz787k24.dev-edition-default profile size: 0 recovery dirs: 1 <- delete with the c option dir path/size: /home/stef/.mozilla/firefox/dz787k24.dev-edition-default-backup-crashrecovery-20150922_170017 (15M) browser/psname: icecat/icecat owner/group id: stef/100 sync target: /home/stef/.mozilla/icecat/52l6x0ss.ste tmpfs dir: /run/user/1000/stef-icecat-52l6x0ss.ste profile size: 18M recovery dirs: none browser/psname: otter-browser/otter-browser owner/group id: stef/100 sync target: /home/stef/.config/otter tmpfs dir: /run/user/1000/stef-otter-browser profile size: 88K recovery dirs: none browser/psname: qupzilla/qupzilla owner/group id: stef/100 sync target: /home/stef/.config/qupzilla tmpfs dir: /run/user/1000/stef-qupzilla profile size: 209M recovery dirs: 1 <- delete with the c option dir path/size: /home/stef/.config/qupzilla-backup-crashrecovery-20150929_131440 (122M)
Per montare la /home,/var e swap rimasti sul disco criptato con LUKS e LVM (viene chiesto il passw durante il boot):
# cat /etc/crypttab
main /dev/sdb2