Difference between revisions of "Configuration/music-library"
|Line 100:||Line 100:|
Latest revision as of 08:31, 30 July 2020
There are different ways to organise your music collection, here are some common suggestions:
|Store music on the same SSD/HDD as your Snakeoil OS||
|Snakeoil OS one a smaller SSD/HDD and music on a high capacity SSD/HDD||
|Store music on a Network Attached Storage (NAS), or another computer||
Which solution you adopt depends more on preference than reference. There is certainly no right or wrong, however, be aware different solutions may impart different audio characteristics.
In this "Music Library" page, you are configuring your system to tell Snakeoil OS where all your music files are. All music will be loaded from a common folder so that it's consistent across all music players.
In Snakeoil OS, the folder is "/media/music" for music files, and "/media/playlists" for playlists.
A quick primer on how disks are defined in Linux. The naming convention Linux used is cryptic. All media interfaces are done via SCSI now, and storage devices can be Disk, or ROM (i.e. DVD or CD-ROM). So adding the initials together, we have sd for hard disks, and sr for ROM drives.
Anything device that begins with sd and followed by a alphabet denote a hard disk - e.g. sda, sdb and sdc. Numbers at the end of these labels represent partitions within the hard disk (e.g. sda1, sda2 or sda5).
sr0 denotes the first optical ROM drive.
At the end of the day, you do not really need to know all this. To get a better understanding of this weird naming convention, you can refer to to this site for a more in depth explanation.
There are two ways of adding more local storage. Format the drive on another computer, and then connect it to the machine. Or connect the bare drive to the machine, and have Snakeoil format the media for you. To format any bare drive, simply select all the HDD labels in the "Uninitialised" table you want formatted, and then click the "Save Changes" button from the command panel.
This panel gives you a quick summary of all storage (including removable media such as SDHC cards or USB HDD) that are connected and used by your Snakeoil OS machine. This is an example of a one disk setup. With one disk, no further configuration is necessary as everything will be stored on sda. You can monitor your disk usage by looking at column marked "Avail" to estimate how much free space you have on this device.
The next example shows a multiple media setup, note they are all mounted in the "/media/music" folder. In this example, The device in the first row (/dev/sda1) is the drive where Snakeoil OS is installed. The second drive (/dev/sdb1) is a second SSD and is mounted under "/media/music/wave". The third and fourth are network shares from two different NAS boxes (using the NFS and CIFS protocol respectively).
This panel only shows up if you have any unformatted or free device that is available for use. In the following example, "/dev/sdc1" can be mounted.
The following is an example of a brand new SDD, ready to be used in Snakeoil OS.
Once you click on any device in the "Uninitialised Device" panel, you should expect to see a corresponding entry show up in the "Mount Points Configurations" panel. Make any changes if necessary, and click the "Save" button to submit the changes. If things work as expected you should see the device show up in the "Mounted Partitions" panel at the top.
Mount Points Configuration
In this panel you can add or remove mounts for your Snakeoil OS. Click on the "Add Mount Point" button to create a new entry. Note that you can only have 1 entry if you are using an un-activated edition of Snakeoil OS.
The fields of the entry are described as such:
- Media: This is your storage device. This can be hard disk on your system or network shares (CIFS or NFS protocols). Refer to the next section for info.
- Mount Point: All media are mounded in /media/music. Therefore when you enter something like library, the device will be mounted under /media/music/library.
- Mount Type: Specify the file system of your medium. Supported formats are - CIFS, EXT4, NFS, NTFS and VFAT (FAT32)
- Mount Options: Tweak options you can use. This is still experimental and may not do anything.
- Delete: This is a red button with a picture of the trash can icon. Click on this button to delete the entry. The medium will be unmounted when you click "Save".
The media field is where you specify the medium to mount. This can be hard disk on your system or network shares (CIFS or NFS protocols). The format for specifying hard disks are as follows:
/dev/sdXY (where X is an alphabet from b to z, and Y is the partition number).
e.g. to mount partition 1 of your second hard disk, it is /dev/sdb1.
For NFS v3, specify the full path of the mount, i.e.:
and with NFS v4, just the share name:
For CIFS network shares, the format is:
If you have ACL setup for your Windows shares, you'd need to put in your windows login details. Be warned that the password is stored in plaintext on your Snakeoil OS computer, so please use guest shares whenever possible.
Remember to click the "Save" button to commit all your changes.
Copying Files Over Network
Snakeoil OS can function as a NAS! If you are using Windows, start Windows Explorer, in the search box enter the the Snakeoil OS hostname or IP with two slashes before the name (e.g. machine_name or ip_address). You should now see two network shares - music and playlists. Copy all your music files to the music share, and any supported playlists (e.g. m3u) to the playlists share.
For playlists, please use use relative path whenever possible to ensure maximum compatibility with the software players.
Copying music over the network will take a while (that's why I recommend E1000e cards as I find them to have a higher transfer speed compared to Realtek and Broadcom). If you have a big media library to transfer it's well worth the effort to disconnect the drive from the machine, and connect it to your primary machine to do the actual file transfer.
Running Snakeoil OS as a NAS consume more resources than necessary. In activated Snakeoil OS machines, you have the option to enable/disable this as needed.