public EndpointResult <bool> CheckAutoMount(string uuid, Partition partition) { try { var result = new EndpointResult <bool>(); var kebabDisplayName = partition.DisplayName.ToKebabCase(); var res = _cron.Check("@reboot", $"sudo mount -t auto /dev/disk/by-uuid/{uuid} /mnt/armnas/{kebabDisplayName}"); result.Succeed = true; result.Result = res; return(result); } catch (Exception) // details are logged in OSCommander's ILogger { return(new EndpointResult <bool>() { Succeed = false, ErrorMessage = "http.autoMountCheckError", StatusCode = 461 }); } }