User Tools

Site Tools


mergerfs:combine_multiple_hard_drives_into_a_single_mountpoint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mergerfs:combine_multiple_hard_drives_into_a_single_mountpoint [2025/04/29 08:11] – [Download MergerFS] petermergerfs:combine_multiple_hard_drives_into_a_single_mountpoint [2025/06/06 21:00] (current) – [Check] peter
Line 31: Line 31:
 **NOTE:** It is preferred to use the GitHub version, rather than from APT repository, as the APT one may not be the most up-to-date version. **NOTE:** It is preferred to use the GitHub version, rather than from APT repository, as the APT one may not be the most up-to-date version.
  
-<code bash>+  * If the APT repository were to be used, install it via: <code bash>
 sudo apt install mergerfs sudo apt install mergerfs
 </code> </code>
- 
-  * **/srv/media**:  The unified mount point. 
  
 </WRAP> </WRAP>
Line 50: Line 48:
  
 ===== Try to Manually Mount ===== ===== Try to Manually Mount =====
 +
 +==== Mount the individual disks to be included into mergerfs ====
  
 <code bash> <code bash>
-mergerfs -o defaults,allow_other,use_ino,category.create=mfs,moveonenospc=true /drive1:/drive2:/drive3 /srv/media+sudo mkdir /mnt/disk01 
 +sudo mkdir /mnt/disk02 
 +sudo mkdir /mnt/disk03 
 + 
 +sudo mount /dev/sdb1 /mnt/disk01 
 +sudo mount /dev/sdc1 /mnt/disk02 
 +sudo mount /dev/sdd1 /mnt/disk03
 </code> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:**  The mount point is /srv/media+**NOTE:** These locations and devices are just examples.
  
 +  * Use the actual devices in the system.
 +
 +</WRAP>
 +
 +----
 +
 +==== Mount mergerfs from the individual mounted disks ====
 +
 +<code bash>
 +sudo mergerfs -o defaults,allow_other,use_ino,category.create=mfs,moveonenospc=true /mnt/disk01:/mnt/disk02:/mnt/disk03 /mnt/media
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The mount point for mergerfs, in this example, is **/mnt/media**.
  
-If after mounting, there are problems with the permissions,  +  * If after mounting, there are problems with the permissions,  
-Set user_allow_other in /etc/fuse.conf+    Set **user_allow_other** in /etc/fuse.conf
 </WRAP> </WRAP>
  
Line 68: Line 88:
  
 <code bash> <code bash>
-cd /srv +cd /mnt 
-/srv$ ls -l  +/mnt$ ls -l  
 ls: cannot access 'virt': No such file or directory   ls: cannot access 'virt': No such file or directory  
 total 0   total 0  
Line 90: Line 110:
 <file bash /etc/fstab> <file bash /etc/fstab>
 ... ...
-UUID=b8548ed6-a3e9-44b2-845c-648892491c2d   /mnt/media1   ext4    errors=remount-ro     0 +UUID=b8548ed6-a3e9-44b2-845c-648892491c2d   /mnt/disk01   ext4    errors=remount-ro     0 
-UUID=c09544b8-0dc3-4532-a1c7-31fd63c8c97e   /mnt/media2   ext4    errors=remount-ro     0 +UUID=c09544b8-0dc3-4532-a1c7-31fd63c8c97e   /mnt/disk02   ext4    errors=remount-ro     0 
-UUID=347f34a3-b4b1-47c9-bec9-3ea0c4aa3715   /mnt/media3   ext4    errors=remount-ro     0 +UUID=347f34a3-b4b1-47c9-bec9-3ea0c4aa3715   /mnt/disk03   ext4    errors=remount-ro     0 
-/mnt/media* /srv/media fuse.mergerfs defaults,allow_other,nonempty,moveonenospc=true,dropcacheonclose=true,category.create=epmfs,fsname=mergerfs 0 0+/mnt/disk* /mnt/media fuse.mergerfs defaults,allow_other,nonempty,moveonenospc=true,dropcacheonclose=true,category.create=epmfs,fsname=mergerfs 0 0
  
-#OLD /mnt/media* /srv/media fuse.mergerfs defaults,allow_other,nonempty,use_ino,moveonenospc=true,dropcacheonclose=true,category.create=mspmfs,fsname=mergerfs 0 0+Another way. 
 +#/mnt/disk01:/mnt/disk02:/mnt/disk03 /mnt/media fuse.mergerfs defaults,allow_other,nonempty,moveonenospc=true,dropcacheonclose=true,category.create=epmfs,fsname=mergerfs 0 0 
 + 
 +#OLD /mnt/disk* /mnt/media fuse.mergerfs defaults,allow_other,nonempty,use_ino,moveonenospc=true,dropcacheonclose=true,category.create=mspmfs,fsname=mergerfs 0 0
  
 </file> </file>
  
 <WRAP info> <WRAP info>
-**NOTE:**  It is recommended to have the mount points for each drive to be /mnt/media1, /mnt/media2, and /mnt/media3, and so on.+**NOTE:**  It is recommended to have the mount points for each drive to be /mnt/disk01, /mnt/disk02, and /mnt/disk03, and so on.
  
-  * This way by using /mnt/media* for the new mergerfs entry in fstab, it will pick up all the drives and any future ones added that uses the same naming scheme. +  * This way by using /mnt/disk* for the new mergerfs entry in fstab, it will pick up all the drives and any future ones added that uses the same naming scheme. 
-  * The new unified single mount point will be in **/srv/media**. +  * The new unified single mount point will be in **/mnt/media**. 
-  * To get the UUID values for the disks, use <code bash>lsblk -d -o NAME,PATH,SIZE,SERIAL,UUID</code>+  * To get the UUID values for the disks, use <code bash>lsblk -d -o NAME,PATH,SIZE,SERIAL,UUID,LABEL</code>
  
 </WRAP> </WRAP>
Line 143: Line 166:
 ---- ----
  
-===== Created the new mount points =====+===== Create the new mount points =====
  
 <code bash> <code bash>
Line 169: Line 192:
  
 <code bash> <code bash>
-ls /srv/media+ls /mnt/media
 </code> </code>
  
Line 179: Line 202:
  
 <WRAP info> <WRAP info>
-**NOTE:**  The nified mount point should show all the data.+**NOTE:**  The unified mount point should show all the data
 + 
 +  * This example assumes the original disks included into the mergerfs had those directories or files that are returned.
 </WRAP> </WRAP>
  
mergerfs/combine_multiple_hard_drives_into_a_single_mountpoint.1745914279.txt.gz · Last modified: 2025/04/29 08:11 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki