Snakeoil Forums

Full Version: Issue seeing full capacity when mounting NAS in OSX El Capitan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a NAS running SnakeoilOS 1.1.3 that has three drives configured thusly:
[Image: Nd0efez.png]

The problem is when I mount the NAS to my mac it only recognizes the 20GB Boot/OS partition, which obviously causes a complaint when I try to drop my Music folder into it. I'm mounting using

"cifs://<NAS_IP_Address>"

which brings up a dialog box asking for a username/password to log in as Registered User, or no user/pw to log in as guest. It auto-fills the username box with a name I'm not using, and no password works. Even the user/pw I specified when installing Snakeoil doesn't work. So I choose "Guest" and proceed.
It next brings up a window asking me to choose "Music" or "Playlists". I choose "Music". It then opens a window showing this:

[Image: uX7h7xg.png]

(Ignore the file "Unknown". That's a Beth Orton album I was using as a test.) No matter what directory I choose it only recognizes 17GB available out of 20. Even though it sees sda5, sdb1, and sdc1, it doesn't see the ~1.5TB of available drive space.

I received this suggestion from you via another user on another forum:

"That is a known issue with how samba calculates disk space. e.g. if the mount is like so:

sda1:/media/music
sdb1:/media/music/disk_1
sdc1:/media/music/disk_2

When you look at the free space of /media/music (and any folders under it, e.g. disk_1 or disk_2). It will be the freespace of sda1 (and not sda1+sdb1+sdc1).
The only workaround is to mount sdb1 as /media/music, copy the files over, then mount sdbc1 as /media/music, and copy the files over. Then when everything is done, re-mount it."

First of all, is there a way to change the mounts/partitions without reinstalling Snakeoil? The Ubiquity software contained in the install is the only way I can see to do it. So I reinstalled Snakeoil with the following configuration:
[Image: UjHwdzN.png]

and tried again. It still only sees the space available under "/" while ignoring the rest. I tried mounting 

"cifs://<NAS_IP_Address>/media/music "

it asks for a password for the same non-existent username as before, I select guest, it thinks for a moment, and then I get an error message, "The share does not exist on the server. Please check the share name, and then try again."

shrug

Any ideas?
(11-Mar-2019, 05:39 AM)markiteight Wrote: [ -> ]First of all, is there a way to change the mounts/partitions without reinstalling Snakeoil? The Ubiquity software contained in the install is the only way I can see to do it. So I reinstalled Snakeoil with the following configuration:
[Image: UjHwdzN.png]
Yes, you can SSH into the Snakeoil PC, and modify this file /etc/fstab to customise your partitions the way you like it.

However, right now, all your music are supposed to be under /media/music, and all your playlists are under /media/playlists.

If you have multiple disks, you should consider setting up a LVM, this will "join" all your SSD/HDD into one big volume that you can mount under /media/music.

Right now you can only do this via the SSH. Doing the same thing via a few clicks will be added into the Snakeoil GUI WebApp eventually.

(11-Mar-2019, 05:39 AM)markiteight Wrote: [ -> ]and tried again. It still only sees the space available under "/" while ignoring the rest. I tried mounting 

"cifs://<NAS_IP_Address>/media/music "

it asks for a password for the same non-existent username as before, I select guest, it thinks for a moment, and then I get an error message, "The share does not exist on the server. Please check the share name, and then try again."

shrug

Any ideas?
Snakeoil OS uses SMBv1, which is a very old version of Windows sharing. I suspect this is the reason why you're having problems with mounting the share. Can you upgrade to this Filesystems kernel here in this thread and see if it works?

I am unfamiliar with how MacOS handle UNC, in Windows this share path should be "//<NAS_IP_Address>/music", so try cifs://snakeoil_ip/music. Windows share only share the name of the folder, not the full path from root. Thus the music share would be //<NAS_IP_Address>/music, and the playlists share would be //<NAS_IP_Address>/playlists.

For both shares, login in as anonymous (i.e. no user and no password). Let me know how it goes.
(11-Mar-2019, 08:04 AM)agent_kith Wrote: [ -> ]If you have multiple disks, you should consider setting up a LVM, this will "join" all your SSD/HDD into one big volume that you can mount under /media/music.

Thank you for that link. I remember seeing LVM as an option while installing Snakeoil but, knowing nothing about it, I left it blank. Based on your recommendation I've enabled it and also remounted the drives as such:
[Image: 8hIWnIl.png]

So now when I mount the NAS to my mac it sees the space available under /media/music, which is now the entirety of /dev/sdb1. Based on this result it looks like you're correct about building a single volume that I can mount under /media/music. Problem is I know not how to go about that! My knowledge of Linux is effectively zero...I'm not even sure I understand what you mean with reference to SSH, let alone manipulating things successfully via the command line.

But for now 600GB is enough to let me get a taste of what your software can do. 

I started this response 3 albums ago.  Smile
 
(11-Mar-2019, 08:04 AM)agent_kith Wrote: [ -> ]Snakeoil OS uses SMBv1, which is a very old version of Windows sharing. I suspect this is the reason why you're having problems with mounting the share. Can you upgrade to this Filesystems kernel here in this thread and see if it works?
I installed the Filesystems kernel and I was able to mount the NAS to my mac using SMB. Sadly that didn't seem to make a difference. It wasn't until I changed the mount point for one of the drives as above did anything change. Furthermore under the Filesystems kernel the "Audio State" under Music Player would not load, and while my control point (Linn Kazoo) could see music on the NAS it wouldn't play. Switching back to the stock kernel resolved this.
(11-Mar-2019, 08:04 AM)agent_kith Wrote: [ -> ]I am unfamiliar with how MacOS handle UNC, in Windows this share path should be "//<NAS_IP_Address>/music", so try cifs://snakeoil_ip/music. Windows share only share the name of the folder, not the full path from root. Thus the music share would be //<NAS_IP_Address>/music, and the playlists share would be //<NAS_IP_Address>/playlists.

For both shares, login in as anonymous (i.e. no user and no password). Let me know how it goes. 

This merely eliminates the additional step of selecting "Music" or "Playlists" from a dialog box and just mounts directly to one or the other. Nothing else changes.

So I've managed to get it working...for the most part. I came into this project with fairly high expectations and I'm still floored by how good it sounds.

But unfortunately there's still a problem. Songs play one-at-a-time and they won't start without a little "nudge." In other words, I can load an album, hit play, and nothing happens. If I slide the progress slider and arbitrary distance and let go, the music plays fine. I can then drag the slider back to the beginning of the song and it'll play through to the end of the track, give me a split second burst of the next track, then stop. I have to go back in and repeat the trick with the slider for every song. As you might imagine, this is a PITA. What could be causing this?
(12-Mar-2019, 10:11 AM)markiteight Wrote: [ -> ]So I've managed to get it working...for the most part. I came into this project with fairly high expectations and I'm still floored by how good it sounds.
Reading your comments, i think I still need to work hard on making this page more user friendly. A new UI overhaul with a more logical and intuitive flow should make things easier.

I'd think of the best approach to improve this.

(12-Mar-2019, 10:11 AM)markiteight Wrote: [ -> ]But unfortunately there's still a problem. Songs play one-at-a-time and they won't start without a little "nudge." In other words, I can load an album, hit play, and nothing happens. If I slide the progress slider and arbitrary distance and let go, the music plays fine. I can then drag the slider back to the beginning of the song and it'll play through to the end of the track, give me a split second burst of the next track, then stop. I have to go back in and repeat the trick with the slider for every song. As you might imagine, this is a PITA. What could be causing this? 
Which music software are you using? Perhaps you've set the play mode to "play this song only" or something equivalent?