User Tools

Site Tools


systems:media_server:create_the_basic_directory_structure_of_the_media_library

Differences

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

Link to this comparison view

systems:media_server:create_the_basic_directory_structure_of_the_media_library [2025/05/30 16:15] – created petersystems:media_server:create_the_basic_directory_structure_of_the_media_library [2025/05/30 16:42] (current) peter
Line 1: Line 1:
 ====== Systems - Media Server - Create the Basic Directory Structure of the Media Library ====== ====== Systems - Media Server - Create the Basic Directory Structure of the Media Library ======
 +
 +The directory structure should look like this:
 +
 +<code>
 +mnt/media/
 +├── movies/
 +├── tv/
 +├── music/
 +├── books/
 +└── photos/
 +</code>    
 +
 +----
 +
 +===== Create the Media Directories =====
 +
 +<code bash>
 +sudo mkdir -p /mnt/media/movies /mnt/media/tv /mnt/media/music /mnt/media/books /mnt/media/photos
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  All the media directories fall under the centralized **/mnt/media** directory.
 +</WRAP>
 +
 +----
 +
 +===== Verify the Media Directories =====
 +
 +<code bash>
 +ls -l /mnt/media
 +</code>
 +
 +returns:
 +
 +<code>
 +drwxr-xr-x 2 root root 4096 May 30 16:36 books/
 +drwxr-xr-x 2 root root 4096 May 30 16:36 movies/
 +drwxr-xr-x 2 root root 4096 May 30 16:36 music/
 +drwxr-xr-x 2 root root 4096 May 30 16:36 photos/
 +drwxr-xr-x 2 root root 4096 May 30 16:36 tv/
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The permissions of the media directories are **root:root**.
 +</WRAP>
 +
 +----
 +
 +===== Change ownership of the directories =====
 +
 +<code bash>
 +sudo chown -R peter:peter /mnt/media
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This ensures that the user has access to these directories.
 +</WRAP>
 +
 +----
 +
 +===== Verify the ownership change worked =====
 +
 +<code bash>
 +ls -l /mnt/media
 +</code>
 +
 +returns:
 +
 +<code>
 +drwxr-xr-x 2 peter peter 4096 May 30 16:36 books
 +drwxr-xr-x 2 peter peter 4096 May 30 16:36 movies
 +drwxr-xr-x 2 peter peter 4096 May 30 16:36 music
 +drwxr-xr-x 2 peter peter 4096 May 30 16:36 photos
 +drwxr-xr-x 2 peter peter 4096 May 30 16:36 tv
 +</code>
 +
 +----
 +
 +===== Grant Read, Write, and Execute to this user =====
 +
 +<code bash>
 +sudo chmod -R 770 /mnt/media/
 +</code>
 +
 +----
 +
 +===== Verify the permission change worked =====
 +
 +<code bash>
 +ls -l /mnt/media
 +</code>
 +
 +returns:
 +
 +<code>
 +drwxrwx--- 2 peter peter 4096 May 30 16:36 books
 +drwxrwx--- 2 peter peter 4096 May 30 16:36 movies
 +drwxrwx--- 2 peter peter 4096 May 30 16:36 music
 +drwxrwx--- 2 peter peter 4096 May 30 16:36 photos
 +drwxrwx--- 2 peter peter 4096 May 30 16:36 tv
 +</code>
 +
 +----
 +
  
systems/media_server/create_the_basic_directory_structure_of_the_media_library.txt · Last modified: 2025/05/30 16:42 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki