Difference between revisions of "Alx9r's Network Attached Storage Setup"

From LinuxMCE
Jump to: navigation, search
(New page: Category:Alx9r's Sample Setup {{Alx9rSampleSetup}} I opted to use a built-in (sata connected) secondary media storage drive. This scheme has two qualities: *The media drive can be fo...)
 
(Symlink and Permissions)
Line 24: Line 24:
 
I wanted the drive to be accessible as <tt>/media/bi</tt> (<tt>bi</tt> short for built-in).  I created a symlink accordingly using this command:
 
I wanted the drive to be accessible as <tt>/media/bi</tt> (<tt>bi</tt> short for built-in).  I created a symlink accordingly using this command:
 
  ln -s /mnt/device/XX /media/bi
 
  ln -s /mnt/device/XX /media/bi
Where <tt>XX</tt> is a number that seems to change each time I install LinuxMCE.
+
Where <tt>XX</tt> is some sort of ID number for the media drive that seems to change each time I install LinuxMCE.
  
 
I wanted the default user, <tt>linuxmce</tt> to be able to do things at will on that drive, so I made that user the owner:
 
I wanted the default user, <tt>linuxmce</tt> to be able to do things at will on that drive, so I made that user the owner:

Revision as of 07:23, 28 May 2008

Alx9r's Sample Setup
System Diagram

I opted to use a built-in (sata connected) secondary media storage drive. This scheme has two qualities:

  • The media drive can be formatted XFS so that LinuxMCE can "listen" for new media files that are copied to the drive. Other filesystems don't allow for this.
  • Fresh installations of LinuxMCE can be put on the primary drive without losing media. If you have only a single drive, this is not possible without going through a less-supported multi-partition installation.

Folder Structure and Media (Pre-Installation)

Before installing LinuxMCE, I formatted my secondary media drive to the XFS filesystem using the gparted LiveCD. Then I created the standard LinuxMCE media drive folder structure on that drive. The structure looks like this:

public

|-data
   |-videos
   |-music
   |-pictures

Also before installation, I moved all of my media to the appropriate folder on the media drive.

Symlink and Permissions

Once LinuxMCE is installed, there are steps that I performed to prepare the media drive: Create a symlink to the drive and set appropriate permissions to it.

I wanted the drive to be accessible as /media/bi (bi short for built-in). I created a symlink accordingly using this command:

ln -s /mnt/device/XX /media/bi

Where XX is some sort of ID number for the media drive that seems to change each time I install LinuxMCE.

I wanted the default user, linuxmce to be able to do things at will on that drive, so I made that user the owner:

sudo chown -R linuxmce /media/bi

Everyone should be able to delete, rename, and copy stuff to the public folder, so I changed the permissions accordingly:

chmod a+w -R /media/bi/public

These permissions pass through on the samba shares, which means that I can put stuff on the media drive folders from a Windows computer by browsing to \\mce\public and logging in as my user.