Score:1

I want to know how to format and mount a drive with UnionFS

im flag

I'm having trouble figuring out how to partition and mount my drive using UnionFs as my filesystem. I think I'm missing something basic but can't make sense of it. I see some posts stating they are installing Unionfs so I may be thinking about this all wrong. May just need an explanation I understand.

ru flag
OnionFS is not a default filesystem in Ubuntu, nor does it have support bundled within Ubuntu or the repositories. Do you have a reference to "OnionFs" specifically, namingly how to install OnionFS support into your system? (If your system doesn't support OnionFS, you can't format your drive with it)
Terrance avatar
id flag
Do you mean "UnionFS"? If so, then you probably need to install `sudo apt install union-fuse`
DCcrypto avatar
im flag
Im sorry I think I do mean unionFS my buddy told me it was called onionfs which may be why I was having such a hard time finding out how to use it. I will try the above and see how it works out. Again sorry. semi new to linux but that was a rookie mistake there. Thanks for the info. So the next part of my question would be is UnionFS a file system on the Hard drives or does it take each Hard drive with the file systems on it and make it one over the top of them.
Nmath avatar
ng flag
If you are new to using Linux, why would you choose to use this file system? It seems that you are setting yourself up for failure as a new user. If you are trying to learn how to use Ubuntu, don't try to reinvent the wheel.
Raffa avatar
jp flag
Does this answer your question? [How do I get unionfs installed?](https://askubuntu.com/questions/10487/how-do-i-get-unionfs-installed)
DCcrypto avatar
im flag
The reason Im looking into this filesystem is I currently have 60 , 14TB hds setup using unraid for chia farming, my friend told me using unionfs file system with ubuntu would be a better solution for the long run as I have 3 more 45 bay JBOD's to fill with drives little by little. Not trying to reinvent the wheel just trying to plan for the future growth of this chia farm. I'm new to ubuntu but not afraid to get my hands dirty. Have a test server up with this in the middle of my living room taking notes and googling. Came here for a little more help to add in.
Raffa avatar
jp flag
This is not a real file system like the kinds used to format partitions on hard disks… It is a utility to merge multiple directories under one mount point … It can be installed from repositories like any other package.
ru flag
I wouldn't advise trying to use unionfs here, instead I"d look to set up LVM and use the drives as physical volumes to run the LVM, which will span the various disks instead as a logical volume (sort of a fake RAID0). Provided you don't intend to backup each drive or have redundancy, the LVM solution may work better.
Raffa avatar
jp flag
Information here: http://manpages.ubuntu.com/manpages/bionic/man8/unionfs.8.html and here: https://en.m.wikipedia.org/wiki/UnionFS
Raffa avatar
jp flag
Please see [this answer](https://askubuntu.com/a/1222054) on aufs an implementation of UnionFS.
Score:0
jp flag

unionfs-fuse is not a real file system like the kinds used to format partitions on hard disks… It is a virtual file system ... i.e. a utility to merge multiple mount points / directories under one mount point / directory … It can be installed from repositories like any other package. Therefore, it is not something to sort out during the installation of Ubuntu ... you should install Ubuntu as usual and once the system is up and running comes the part of installing support for UnionFS and merging directories / mount points with it.

However, unionfs-fuse is not the only or most robust tool of its kind ... aufs is a recommended newer implementation of UnionFS and is fairly simple to install and use.

You can install aufs support like so:

sudo apt install aufs-tools

You can use it like so:

sudo mount -t aufs -o br=/FirstDirectory=rw:/SecondDrectory=rw:/ThirdDirectory=rw none /UnifiedMountPoint/

Where /FirstDirectory, /SecondDrectory and /ThirdDirectory ... etc. are multiple directories / mount points (AKA branches) that needed to be unified under one directory / mount point ... they are separated by a colon : and =rw right after the directories paths is an option to set read and write permissions for those directories.

And where /UnifiedMountPoint/ is the directory / mount point under which all the branch directories are unified and accessed. This Directory /mount point must exist / be created beforehand.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.