He/him.

Linux and FLOSS enthusiast, trying to unplug myself from the net by selfhosting. Enfasis on trying.

  • 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle


  • I’ve searched for it and xz also doesn’t use multithreading by default, you can change the program tar uses to compress by passing the -I option. For xz using all possible CPU threads:

    tar -cv -I 'xz -6 -T0' -f archive.tar.xz [list of directories]

    The number indicates the compression ratio, the higher the number, the more compressed the archive will be but it will cost more in terms of memory and processing time




  • This script will unmount the problematic drive and try to mount it to another place /tmp/myprecious, a temporary place. Then, as it says, will attempt to read and then write to the drive. Finally, it removes the file it wrote to test writeability, unmounts the drive again and removes the temporary mount place. The scripts needs root access to mount and unmount and possibly to write and read.

    Please don’t run a script you found on the internet with root access without knowing what it does.