Format with ext4.
Mount using the fstab.
Make the top level directory owned by your userid.
Add your userid to the plex group.
Change the group on the mounted directory to be plex. Set the setgid on the directory so all subdirectories are forced to be in the "plex" group.
Change the permissions so the user and group members have write access. You want 770 permissions on this directory - as stated above. If you don't understand what that means or the other stuff above - LEARN. After trying to learn, ask, but use specific questions with exact examples.
Sudo is needed for everything above this line.
Sudo is **NOT** needed for everything below this line.
Create TV, Movies, Music, Photos, and Home_Video sub directories.
Put your content into the correct sub-directories. A new folder will be needed for each movie, each TV series. How you organize Music and Photos is up to you. I use Genre/Artist/Album/ for Music and YYYY/MM/dd-Event/ for photos.
Whatever you do, don't allow more than 500 files in a single directory. That's asking for corruption and data loss.
Here's 1 disk in my media:
Code:
$ ll /d/D1/
total 152
drwxrwx--- 11 thefu thefu 4096 Jan 30 11:15 ./
drwxr-x--- 10 root root 4096 Jan 19 19:00 ../
drwx------ 2 root root 16384 Feb 16 2014 lost+found/
drwxrws--- 1286 thefu plex 61440 May 6 18:08 M/
drwxrws--- 17 thefu plex 4096 Jun 1 17:51 R/
drwxrws--- 99 thefu plex 4096 May 26 09:58 T/
drwxrws--- 4 thefu plex 4096 Aug 23 2017 V/
drwxrwx--- 5 thefu plex 4096 Mar 27 2014 Photos/
drwxrwx--- 6 thefu plex 4096 May 10 12:56 ebooks/
Note the permissions for the different directories.
The Photos and ebooks aren't really managed by Plex. I use Calibre for ebooks and a custom perl photo web-app for photos.
Here's what the mount looks like for this single partition (I use LVM, so it isn't really a partition, but that's close enough for here):
Code:
$ df -Th /d/D1
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/istar--vg-lv_media ext4 3.5T 3.5T 17G 100% /d/D1
When you make backups, 50% is the data and 50% are the permissions, ACLs, xattrs, owner and group membership. You'll likely want to change your backup method to ensure all those are included.
All the subdirectories need similar group permissions - group write and group setgid, as shown above. Mess that up and things will become painful.
Bookmarks