Securifi Community Forum

Securifi Products => Almond+ => Topic started by: Takachsin on July 12, 2014, 11:20:34 am

Title: DLNA, Mount Points, FTP
Post by: Takachsin on July 12, 2014, 11:20:34 am
Are these options to enable NAS like functionality?  I've setup a NAS server using NAS4FREE in the past and these options seem very similar.

Can I just plug an external hard drive into the Almond and have it share the media on the hard drive?  If so the media directory for DLNA is listed as /mnt as default.  Would I just create a mnt directory on the hard drive to share it?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on July 12, 2014, 11:26:06 am
NAS, well, maybe not quite, as at the moment we don't have any kind of user or share management.
What it does enable is network drive sharing.

Yes, you can just plug in an external drive, as long as it's FAT32 or NTFS formatted and then share what's on the drive.
The drive will auto mount, so you'll see something like /mnt/drive_name if the drive has a label, if not it'll appear as /mnt/1_usb_2 or something similar.

Both the FTP server and SAMBA will go directly to the /mnt/ directory and you'll be able to see any drives there.

You can change the password, but currently not the username.

We'll be adding more functionality to this in the future, but everything is working.
Title: Re: DLNA, Mount Points, FTP
Post by: cavemanghost on July 14, 2014, 01:49:44 pm
I'm running OSX and the share isn't automatically appearing. If I try to connect to the router address using the samba protocol, it asks me whether I want to log in as a guest or using a username/password. Guest doesn't work, root/root doesn't work and I have no idea what I should be trying. This may be the complete wrong way to do this, but it's the furthest I've gotten so far.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on July 15, 2014, 05:19:46 am
Please see http://wiki.securifi.com/index.php?title=Network_storage_-_Almond%2B_2014 for the first set of instructions, more to follow.
Title: Re: DLNA, Mount Points, FTP
Post by: robh5791 on July 26, 2014, 10:14:58 pm
I am having a slightly different issue. I am using my MacBook Air to access the shared drive on my Almond+ which is set as read/write in the Samba settings and if I try to transfer a file to it, it returns a message that says not enough space. The problem is that there is nearly a gig of free space on this drive so I am not sure why it is giving this error. I am able to view the contents and open files remotely but cannot save to that drive or copy files to that drive. Any help would be great.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on July 26, 2014, 10:25:24 pm
It's a known issue and we already have a fix in place for this which will be in the next firmware.
Title: Re: DLNA, Mount Points, FTP
Post by: robh5791 on July 26, 2014, 10:26:39 pm
Great to hear. Thanks.
Title: Re: DLNA, Mount Points, FTP
Post by: cavemanghost on July 30, 2014, 08:42:54 pm
Will future updates enable Mac OS Extended and ExFAT?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on July 30, 2014, 09:58:39 pm
We're considering HFS for Mac support, but as far as exFAT goes, we have to pay a royalty fee to Microsoft, so this is pretty much a no go at this point in time. On top of that, we'd also have to pay a licensing fee to whoever we work with on the drivers and it ends up being a fair bit of money at the end of the day.
Title: Re: DLNA, Mount Points, FTP
Post by: Andy on July 31, 2014, 11:52:03 am
Question!

I attached an external USB drive (NTFS formatted) with read/write access to almondplus user.  I can access the drive from my devices at home using wireless and wired connections. 

What does it take to be able to access it over the internet?

Thanks,
Andy
Title: Re: DLNA, Mount Points, FTP
Post by: robh5791 on August 09, 2014, 12:36:45 pm
I just noticed that I am able to copy a file to the mounted drive from a Windows PC but not from my OS X PC. I am not sure if that is the known issue or not but I figured I would add that bit that I have found. The Windows PC is running 7 and the OS X machine is running Yosemite beta but also did not work on Mavericks on the same machine.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 10, 2014, 11:45:21 pm
At the moment we don't have a simple way for accessing your drives over the internet. You'd have to set up a VPN connection, but we want to add support for this in the future. It's a rather large project though and I can't make any suggestions with regards to a timeline when we think this will be done.

As for OS X, we got some issues in the current firmware, but it'll be addressed as it's a minor problem with the configuration files for Samba.
Title: Re: DLNA, Mount Points, FTP
Post by: whtvrrob on August 13, 2014, 08:26:47 pm
At the moment we don't have a simple way for accessing your drives over the internet. You'd have to set up a VPN connection, but we want to add support for this in the future. It's a rather large project though and I can't make any suggestions with regards to a timeline when we think this will be done.

As for OS X, we got some issues in the current firmware, but it'll be addressed as it's a minor problem with the configuration files for Samba.

Any chance you could give the updated smb.conf (or a list of edits to be made) to those of us who can make the changes ourselves? I'm wanting to get this all set up and working but can't without write access over SMB.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 14, 2014, 02:25:33 am
It's not that simple, but the OS X issues should hopefully be resolved in the new firmware that we're releasing tomorrow.
Title: Re: DLNA, Mount Points, FTP
Post by: robh5791 on August 15, 2014, 10:08:54 am
I installed the new firmware and the functionality is still not working with my Mac osx desktop PC. I can read but when I try to write, it states no available space.
Title: Re: DLNA, Mount Points, FTP
Post by: whtvrrob on August 16, 2014, 03:08:42 pm
I too am still having the same issues with samba with the new firmware on mac os x. Any ETA on a fix or any workarounds (for smb, not the FTP workaround).
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 16, 2014, 09:30:22 pm
Yeah, FTP is hardly the same as Samba so that's not a work around.
I was told this had been fixed in R065, but apparently not.
I'll find out tomorrow what's going on.
Title: Re: DLNA, Mount Points, FTP
Post by: Lectoid on August 19, 2014, 04:19:55 pm
I know that OSX can't write to an NTFS drive directly. Like if you plug a NTFS formatted USB drive in to a Mac, it cannot write to it. I didn't think this carried over to Samba, but that might be something to look at.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 20, 2014, 12:08:04 am
No, that's not related as we have an NTFS driver on the Almond+ that handles the drive, so the OS on the device trying to write to the drive is sort of taken out of the equation due to this.
Title: Re: DLNA, Mount Points, FTP
Post by: knilob on August 20, 2014, 10:09:26 pm
Jumping on the bandwagon for not being able to write to a Samba mounted NTFS drive from Mac OS X 10.9.4. I just purchased a new 4TB USB3 to use as an SMB drive, and this it what I bump into after getting everything connected. :-(

Any word on why this didn't make it into R065?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 21, 2014, 03:54:37 am
Hopefully we'll have a fix for this in the next firmware release.
As mentioned though, we'll be upgrading to a more recent build of Samba, but that'll take some time.
Title: Re: DLNA, Mount Points, FTP
Post by: atrueresistance on August 21, 2014, 08:54:00 am
Are you planning support for AFP in the future?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 21, 2014, 11:17:33 am
No, Apple is moving to Samba so it doesn't make any sense for us to spend resources on something Apple is dropping support for slowly.
That said, we are planning much better Samba support though and we have a couple of new software engineers joining that will help with this among other things.
Title: Re: DLNA, Mount Points, FTP
Post by: obmd1 on August 25, 2014, 09:53:19 pm
Any instructions on getting this functionality for Mac would be appreciated. I see the instructions you link for an NAS device for windows, but we need the analog for mac, and what file formats should be used. Thanks!
Title: Re: DLNA, Mount Points, FTP
Post by: illie on August 26, 2014, 04:49:44 am
The writing with OS X issue is caused because OS X tries to check how much free space exists before writing a file. On the Almond+ it is sharing the directory /mnt which is part of the root filesystem and the root shows up as 100% full (due to the way the rom & overlay combining works.) To get around this, Samba needs to share the specific mount points for each USB device that is plugged in. Windows doesn't verify the amount of free space before writing a file, so it isn't impacted by this issue.

I modified a hotplug.d script to add/remove uci sambashare entries when a USB storage device is inserted/removed, and cause the smb.conf to be regenerated with a share specific to that mount. The (easier) alternative until Securifi releases their own implementation of this is to modify /tmp/smb.conf and add another entry similar to [share] but with a different name and the correct /mnt/usb/devicename path.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 26, 2014, 06:47:41 am
We've worked out the problem and hopefully we'll be able to release a fix for this in the next firmware release.
Title: Re: DLNA, Mount Points, FTP
Post by: Rhynri on August 27, 2014, 09:29:10 pm
We're considering HFS for Mac support, but as far as exFAT goes, we have to pay a royalty fee to Microsoft, so this is pretty much a no go at this point in time. On top of that, we'd also have to pay a licensing fee to whoever we work with on the drivers and it ends up being a fair bit of money at the end of the day.

How about EXT3 support?  It seems to have mounted alright for me, but since I can't remember the folder structure, I haven't attempted setting things up yet.
Title: Re: DLNA, Mount Points, FTP
Post by: joltdude on August 28, 2014, 07:06:55 pm
NAS, well, maybe not quite, as at the moment we don't have any kind of user or share management.
What it does enable is network drive sharing.

Yes, you can just plug in an external drive, as long as it's FAT32 or NTFS formatted and then share what's on the drive.
The drive will auto mount, so you'll see something like /mnt/drive_name if the drive has a label, if not it'll appear as /mnt/1_usb_2 or something similar.

Both the FTP server and SAMBA will go directly to the /mnt/ directory and you'll be able to see any drives there.

You can change the password, but currently not the username.

We'll be adding more functionality to this in the future, but everything is working.

So whose the NTFS driver from? Paragon or Tuxera?
The Paragon driver is flakey at best...

Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on August 29, 2014, 10:33:36 am
Yes, EXT3 works.

Currently we're using Paragon as the license was included with the SoC, but this might change in the future.
Title: Re: DLNA, Mount Points, FTP
Post by: habeatgenmoint on September 14, 2014, 01:37:57 am
Is there any plan on replacing ufsd with ntfs-3g? I've just learned the hard way that the Paragon driver has very poor support regarding symlinks and hardlinks  :(

Also, it would be nice to have openssh, which supports sftp.
Title: Re: DLNA, Mount Points, FTP
Post by: sorphin on September 14, 2014, 02:52:12 am
Is there any plan on replacing ufsd with ntfs-3g? I've just learned the hard way that the Paragon driver has very poor support regarding symlinks and hardlinks  :(

Also, it would be nice to have openssh, which supports sftp.

It appears the router wants to be able to do sftp, but the binary isn't included... that said, most embedded platforms don't use openssh, they use dropbear, because it's more lightweight than openssh is.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on September 14, 2014, 03:05:37 am
Is there any plan on replacing ufsd with ntfs-3g? I've just learned the hard way that the Paragon driver has very poor support regarding symlinks and hardlinks  :(

Also, it would be nice to have openssh, which supports sftp.

Afraid not, but we're looking at another option, it's just not the highest priority right now, as we have a lot more pressing issues to fix first.
Title: Re: DLNA, Mount Points, FTP
Post by: agiannot on December 09, 2014, 07:12:48 am
Has there been any updates on this?  I updated to R069 firmware and still have the problem where my MacBook Pro can not copy files to an attached hard drive.  I am getting a "no available space" error (even though the USB harddrive is empty and a windows 7 PC can add files with no problems). 

One other user on the blog mentioned creating new mount points within the samba.conf file will fix the problem.  Using the web api, I believe you can add custom mount points, but that doesn't seem to cure the problem.  One thing to note, when adding new mount points using the web api, you need to reboot the Almond+ for the mount point to be created.

Can someone from the development team possibly provide instructions on how to use the "mount" feature in the webAPI?  Also is there a workaround that can be applied to get this to work?  Lastly, when do you think this will be fixed?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on December 10, 2014, 12:25:25 am
Afraid not  :-\ :-[
Title: Re: DLNA, Mount Points, FTP
Post by: cff on January 06, 2015, 04:52:07 pm
Any updates on progress for OSX writes? This has been a "soon to be fixed" issue since July ; )
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on January 06, 2015, 11:34:17 pm
It'll be fixed in this weeks beta release that we'll give everyone access to.
Apologies in the delay of getting this fixed, but it has been properly addressed now.
Title: Re: DLNA, Mount Points, FTP
Post by: cff on January 07, 2015, 05:26:31 pm
Thanks for the update. Does this mean this issue was resolved in R09cb? I didn't see it listed in the release notes.

Thanks again.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on January 08, 2015, 12:15:49 am
Yes, my bad, I forgot to add it. Had too many release notes for various internal releases to go over and I missed in the rush this morning, as I posted it from the show floor.
Title: Re: DLNA, Mount Points, FTP
Post by: lashanw on April 11, 2015, 08:07:59 pm
Hi,

I connected a USB drive (WD passport 1 TB) to my almond plus and follow the instructions in the link below. However, when trying to add the network location it cannot find the "share" folder. If I do a \\almondplus from win explorer I don't see any folders. I am on win 8.1 and USB drive is NTFS. Is there anything else I need to do besides the FTP/SAMBA settings?
http://wiki.securifi.com/index.php?title=Network_storage_-_Almond%2B_2014
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on April 12, 2015, 11:49:33 pm
Things changed in R072 and I haven't had a chance to update the instructions yet.
I'll try to get that done today.
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on April 13, 2015, 05:35:12 am
Instructions have been updated, as it was only a minor change from the the default of share to whatever the volume name of the drive is.
Title: Re: DLNA, Mount Points, FTP
Post by: tristin on April 18, 2015, 07:38:16 pm
I just attempted to mount an external drive and I'm getting the same issue that lashanw reported. I am updated to the newest firmware and I've followed the instructions as best as I can understand them, but I get the error stating, "The folder you entered does not appear to be valid."

My drive shows the following address: "/mnt/usb/Backup2TB"
I have tried entering the network path as the following:

"\\ALMONDPLUS\Backup2TB"
"\\ALMONDPLUS\usb\Backup2TB"
"\\ALMONDPLUS\mnt\usb\Backup2TB"
"\\ALMONDPLUS\mnt\Backup2TB"
"\\ALMONDPLUS\share"

None of them worked. I've triple-checked that I'm using the correct password. Any advice?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on April 19, 2015, 11:39:51 pm
If you click on Mount Points in the Advanced settings in the local web UI you should see what the mount point is.
For example - /mnt/usb/test
That would end up being "\\ALMONDPLUS\test" when you mount the drive.

I'm not sure why it's not working for you though, as it should as long as you've enabled Samba under Advanced FTP/SAMBA in the local web UI, as it's disabled by default.
Title: Re: DLNA, Mount Points, FTP
Post by: dentaro16 on April 20, 2015, 01:51:20 am
same issue as tristin.

as soon as I updated the firmware, it was rejecting my NTFS drive because it was too big. wouldnt even mount it.

got it mounted with UFSD but now it wont connect in SAMBA

tried all the naming conventions as tristin. no dice.

here is my relevant syslog?

Apr 20 05:42:18 AlmondPlus kern.notice kernel: ufsd:uni2char (iso8859-1) failed:

maybe this means something? or maybe there is another way to use a volume larger than 2TB+?

This was working in the firmware that was shipped with it, no problem... what changed?
Title: Re: DLNA, Mount Points, FTP
Post by: LGNilsson on April 20, 2015, 02:05:01 am
We had reports of some mounting issues and made some change, I don't know exactly what was changed though.
The next firmware will have an updated version of Samba that will hopefully solve all the issues once and for all.