Hi ,
I'm running LibreElec on Odroid hardware and want to create a 50MB Ramdisk. I have other mount scripts for Samba mounts that work. But this one for RAMDISK fails - Here is a copy of the script I've tried. Please advice on how to resolve this:
The mount script is named per LE requirements - script is named 'storage-.tmp-RAMDISK.mount' and located under /storage/.config/system.d
Here is what I did and the error I get:
systemctl enable storage-.tmp-RAMDISK.mount
systemctl start storage-.tmp-RAMDISK.mount
systemctl status storage-.tmp-RAMDISK.mount. results in:
storage-.tmp-RAMDISK.mount - RAMDISK mount script
Loaded: loaded (/storage/.config/system.d/storage-.tmp-RAMDISK.mount; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-11-27 12:25:48 EST; 24s ago
Where: /storage/.tmp/RAMDISK
What: tmpfs
CPU: 4ms
Nov 27 12:25:48 librelec systemd[1]: Mounting RAMDISK mount script...
Nov 27 12:25:48 librelec systemd[1]: storage-.tmp-RAMDISK.mount: Mount process exited, code=exited status=255
Nov 27 12:25:48 librelec systemd[1]: Failed to mount RAMDISK mount script.
Nov 27 12:25:48 librelec systemd[1]: storage-.tmp-RAMDISK.mount: Unit entered failed state.
[Unit]
# Here we will mount a RAMDISK
Description=RAMDISK mount script
# if we do network mounts like here we *require* 'network-online.service'
# which checks if the network is online
Requires=network-online.service
# our scripts must start *after* 'network-online.service', on timeout and if
# 'network-online.service' fails we can not mount and this scripts fails too
After=network-online.service
# usually we mount networks shares because we want they avaible *before* XBMC starts.
# so XBMC has access to this mounts from beginning. Note: this slows down the boot!
Before=kodi.service
[Mount]
# The share we want mount
What=tmpfs
# Where we want mount this share
Where=/storage/.tmp/RAMDISK
# Any options you usually use with the "-o" parameter in the mount command
Options=size=50m
# I've tried with "size=50m" and that didn't help either
# filesystem type
Type=tmpfs
[Install]
WantedBy=multi-user.target
Display More