Forums

Resolved
0 votes
Hey Everyone!

I am attempting to set up a ClearOS box for use in my house for use as a gateway and to facilitate other services. I am new to ClearOS(and Linux) but I have managed the following:

1. Installed, set up routing function, configured content filtering and firewall.
2. Initialized built in directory, added several users and groups.
3. Configured a software RAID 1 via SSH with two disks post install.

This is where I have run in to some trouble. I am not that versed in the Linux lingo. I work in IT and have a degree in CS, am willing to fail my way through just about anything, which is what I have been doing thus far. However, I have sort of reached the limit of persistent googling if I want to get this sorted any time soon :)

Basically, I want to change the location of(or the directory) that Plex and individual users file shares reside in. As of right now I have two 3TB drives in RAID1, formatted as NTFS. I know this is not the ideal file system, but I wanted to ensure that both Windows and Mac machines would have access, since we have both in my household.

My RAID1 is mounted by UUID. It is otherwise /dev/md0 as seen by fdisk. I mounted by UUID for extra stability and changed /cat/fstab for a permanent mount. My OS is on a different drive, and this is where it seems to have placed all of my user accounts. I tried following the instructions in a few other threads -- these advised (best I could tell) editing fstab so that my array (we will just call it md0) was mounted at /home instead of the original mount. I tried this, but the only result was the presence of a "home" folder alongside my user folder when I navigated to 10.0.0.1 from File Explorer. I could copy files to the drive, but I had no way of confirming that this new "home" folder was actually on md0. I have a user account called "Plex" and want to be able to log on, copy data to the user file -- with that file residing on md0.

My OS drive is far too small for storing media/user folders. Is there a concrete solution? Do I need to mkdir "Home" on md0 before I mount it at /home? Am I missing something?

Happy to provide screenshots as needed!
Monday, March 16 2020, 02:09 AM
Share this post:
Responses (3)
  • Accepted Answer

    Monday, March 16 2020, 09:13 AM - #Permalink
    Resolved
    0 votes
    I don't know why you need NTFS. I would have used a regular Linux file system, either ext4 (my preference) or xfs, then use samba shares which both Windows and Mac's should be able to use
    I would probably create a folder /mnt/raid (call it what you like) and mount /dev/md0 into it. The ClearOS way of doing it is to mount it into a logical volume but that introduces more complexity.
    On md0, it is probably best to create a folder "plex" or "myshares" something like it. Storage Manager may do it for you when you make a bind mount. Then, if you want to put all your flexshares on to it, in the Stoarge Manager, create a "Bind Mount" from /mnt/raid/myshares to /var/flexshare/shares.

    If you wanted just one share on the RAID, bind the individual share folder rather than the whole flexshare folder.

    Before doing the bindmount, you should move (not copy) all folders under your mount target point to the folder you are going to bind into it, or they will all disappear. They will still be there, consuming file space, but totally hidden and inaccessible unless you unbind the the bind.

    As a test I always put a dummy file into the the folder /mnt/raid/myshares before doing the bind. Then when you do the bind mount, if you can see the file under /var/flexshare/shares, you know your bind mount has worked.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 17 2020, 01:36 AM - #Permalink
    Resolved
    0 votes
    Thanks for the response! I was a little confused about how the "mount point" function of storage manager worked. As for the NTFS, I will just go ahead and reformat EXT4. I was unsure as to how Samba worked as far as file systems playing nice, but I suppose I should have guessed it worked since my Windows server uses ReFS with macs just fine.

    I definitely want to bind all of the flexshares/user folders to the RAID array. Not enough space on the boot drive.

    Where should I create that folder /mnt/raid?

    Thankfully there are no files to lose at the moment -- I have learned the hard way -- get your array figured out first ;)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 17 2020, 08:38 AM - #Permalink
    Resolved
    0 votes
    Now you've had your second post approved, all your posts should appear immediately. I am deleting your duplicate post.

    There is no right answer about where to mount your RAID. In a pre-supplied ClearBOX, Clearcenter use something way below /store. I mount my data partition into /shares but, when I did that, I was not aware of bind mounting. I don't use it for flexshares as my shares are mainly outside the flexshare system but still done by samba.
    The reply is currently minimized Show
Your Reply