A higher file system commit interval can help to decrease the amount of writes. In tests, a commit interval of higher than 30s seems not to help much in practice. Settle with 30s for now.
19 lines
464 B
SYSTEMD
19 lines
464 B
SYSTEMD
[Unit]
|
|
Description=HassOS data partition
|
|
Wants=hassos-expand.service
|
|
DefaultDependencies=no
|
|
After=hassos-expand.service
|
|
Before=umount.target local-fs.target
|
|
Conflicts=umount.target
|
|
After=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service
|
|
Wants=systemd-fsck@dev-disk-by\x2dlabel-hassos\x2ddata.service systemd-growfs@mnt-data.service
|
|
|
|
[Mount]
|
|
What=/dev/disk/by-label/hassos-data
|
|
Where=/mnt/data
|
|
Type=ext4
|
|
Options=commit=30
|
|
|
|
[Install]
|
|
WantedBy=local-fs.target
|