User Tools

Site Tools


systems:media_server:create_the_basic_folder_structure_of_the_media_library

This is an old revision of the document!


Systems - Media Server - Create the Basic Directory Structure of the Media Library

The directory structure should look like this:

mnt/media/
├── Movies/
├── TV/
├── Music/
├── Books/
└── Photos/

Create the Media Directories

sudo mkdir -p /mnt/media/Movies /mnt/media/Shows /mnt/media/Music /mnt/media/Books /mnt/media/Photos

NOTE: All the media

To verify this worked:

ls -l /mnt/media

It should look something like this:

drwxr-xr-x 2 root root 4096 Jan 17 13:47 Movies drwxr-xr-x 2 root root 4096 Jan 17 13:47 Music drwxr-xr-x 2 root root 4096 Jan 17 13:47 Shows

The permissions of root:root will not work let’s make sure your user has access to these folders.

Change ownership of the folders:

sudo chown -R <username>:<username> /mnt/media

Example:

sudo chown -R kryptikwurm:kryptikwurm /mnt/media

To verify the ownership change worked:

ls -l /mnt/media

It should now look like this:

drwxr-xr-x 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Movies drwxr-xr-x 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Music drwxr-xr-x 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Shows

Now grant Read, Write, and Execute to this user:

sudo chmod -R 770 /mnt/media/

To verify the permission change worked:

ls -l /mnt/media

It should now look like this:

drwxrwx— 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Movies drwxrwx— 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Music drwxrwx— 2 kryptikwurm kryptikwurm 4096 Jan 17 13:47 Shows

systems/media_server/create_the_basic_folder_structure_of_the_media_library.1748621669.txt.gz · Last modified: 2025/05/30 16:14 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki