Hugo Martins

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Hugo Martins

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Workaround for "swapon failed: invalid argument" #!/bin/bash # ##################################### # Script: Swap Creator v1.1 # Description: Creates swap file on cache to reduce RAM usage # Author: Marc Gutt # edited by: Hugo Martins # ######### Settings ################## swapfile='/mnt/cache/swapfile' swapfile_size=6G # ##################################### # # ######### Script #################### # make script race condition safe if [[ -d "/tmp/${0///}" ]] || ! mkdir "/tmp/${0///}"; then exit 1; fi; trap 'rmdir "/tmp/${0///}"' EXIT; # create swap file https://lin