Wiki > mergerfs
mergerfs is a union filesystem geared towards simplifying storage and management of files across numerous commodity storage devices.
Installation
mergerfs is installed by default.
You can optionally install mergerfs to your home directory if code changes are desired:
-
Connect to your slot through SSH
-
Download and extract the latest working version of mergerfs
wget https://github.com/trapexit/mergerfs/releases/download/2.34.1/mergerfs-2.34.1.tar.gz; tar xf mergerfs-2.34.1.tar.gz; cd mergerfs-2.34.1
-
Edit both
Makefile
andlibfuse/Makefile
to change/usr/local
to/home/user
. The following command will make the appropriate edits for you:sed -i 's|/usr/local|/home/user|g' Makefile
You can make any optional code changes you need as well.
-
Compile and install mergerfs.
make; make install; rm ~/bin/mergerfs-fusermount
-
(Optional) Add ~/bin to your PATH so that you can run binaries in ~/bin without specifying the path. Ignore this step if you have performed it for a different program.
echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
You can now run ~/bin/mergerfs
(or mergerfs
if the optional step is completed) to use the program.